Wednesday 12 December 2012

MarkLogic: pstack not working?

I recently saw an issue where the usual trick of calling:
sudo /etc/init.d/MarkLogic pstack 
Was not dumping the output from pstack as expected. I put this together to work around this issue by doing the following instead:
sudo pstack $(ps -ef | grep MarkLogic | grep daemon | awk 'END {print $2}')