This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hprof/prof Confusion

 
Chinmay Bajikar
Ranch Hand
Posts: 159
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Chinmay Bajikar
Ranch Hand
Posts: 159
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody have any answers on this??
I am really stuck.
 
muthu muruges
Ranch Hand
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic