sudo /etc/init.d/MarkLogic pstackWas 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}')
My notes on XML and web development - MarkLogic, xquery, xforms, xslt, xml schema, java, html, css, javascript, xssi and others.
sudo /etc/init.d/MarkLogic pstackWas 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}')
grep "Processing some-problem-query.xqy" ErrorLog.txt | sed "s/^.*.xqy: //g" | sort | uniq
bash-4.1$ grep "Starting MarkLogic" ErrorLog_2.txt -A50 -B260 > /dev/clipboard