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
Post a Comment