heap - Execute jmap inside java program to generate dumps for the same process -


is possible execute 'jmap' @ different spots inside java-programm generate dump files. guess 1 must own process id , execute command via runtime().exec() or similar. didn't succeed though.

chris

try:

string name = managementfactory.getruntimemxbean().getname(); string[] str = name.split("@"); runtime.getruntime().exec("jmap -dump:file=yourfilename " + str[0]); 

Comments

Popular posts from this blog

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

ruby on rails - Authlogic - how to make a registration and don't log in the new account? -