Does any one know the side effect of Solaris p series command(pstack, pmap)?

483 views Asked by At

I'm now investigating a prod issue and would expect my investigating wouldn't cause any side effect to the normal prod environment, so Would it result in the pause of the running program even for a short period? Thanks

1

There are 1 answers

0
jlliagre On

pmap is adding a transient thread to the target process and analyzing it in real time without interrupting it so there should be no risk using it.

pstack, pfiles and pldd are stopping the target process while inspecting them. Usually, this has no consequences as being stopped for a short period of time is something to be expected by any process in a time sharing system like Unix. However, in rare situations, stopping the affected process might be longer than expected and thus have unwanted side effects. This is explained in the p commands manual pages in the WARNING section.

With all the p commands, using the -F flag is not recommended in a production environment as chaos might occur.