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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -