Do you mean you run an ssh command within your shell build action? If so, can you add -v flags?
There is already a good plugin to debug those java memory stacktraces and You can see those java processes, threads: https://wiki.jenkins-ci.org/display/JENKINS/Monitoring -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/8f46d342-a2d3-491f-aeaf-ae1ee8be37be%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
