Hi all, I am trying to ues the hprof option for evaluating my code. But on giving the command as "java -classic -Xrunhprof:..... classname" it tells me that classic JVM cannot be run. When i remove the -classic option and then run,the execution starts but gives a Windows "Application Error" and exits. The same runs properly when I give, "java -Xprof:..... classname" but does not generate any java.hprof.txt or any such file. I would like to know what is causing the "Application Error"(I am running Win 2000). My java -version command gives the foll o/p, D:\Profiling>java -version java version "1.4.0_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_02-b02) Java HotSpot(TM) Client VM (build 1.4.0_02-b02, mixed mode) Also I cannot find any details for the -Xprof profiling option for HotSpot. Please let me know of a link which lets me know the details. Thanks a lot, Chinmay.
The strength of the Wolf is the pack & the strength of the pack is the wolf....Rudyard Kipling
Joined: Dec 08, 2001
Does anybody have any answers on this?? I am really stuck.
It wont generate the prof.txt file automatically. you should interrupt the java process by giving signals to get the profiler menu. In solaris I use to give ^\ to get the menu, but I dont know what we should give in windows. After getting that menu you should select the dump option there. Hope this URL helps: http://tutorials.findtutorials.com/read/id/213