• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

hprof/prof Confusion

 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anybody have any answers on this??
I am really stuck.
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic