1833576 Members
3509 Online
110061 Solutions
New Discussion

Re: Profiling option

 
Kshitij Shah
New Member

Profiling option

Hi,
Can you somebody pl tell me how to get profile data using time slice? I would like to know state of heap after particular time for specified duration.

I know the using runhprof we can get heap profile data, can we add time slice parameter to it?

-Xrunhprof:heap=all,cpu=samples,file=myfile.txt

I tried using -Xeprof with time slice but that doesn't give head metric.

Thanks in advance.
Kshitij
2 REPLIES 2
NIck Sellas_1
New Member

Re: Profiling option

Try with

Xrunhprof:heap=dump,thread=y,cutoff=0,format=a,doe=n

Send a signal after objects have beed created:

kill -s SIGQUT

to dump out the java.hprof.txt file with the data and use hpjmeter for analysis.

hope this heps,
Cheers,
nick

Kshitij Shah
New Member

Re: Profiling option

Hi Nick,
Thanks for your response. My problem is that the application is of Enterprise class. If I start profiling during startup then the application takes long time to initialize, even after 40 mins my application didn't start. I have set heap size to 512 and memory used during startup is 200mb. If would like to know if there is any setting wherein I can get heap profile data based on time slice. For e.g. after start up I would like to get heap profile from 30th min to 31st min.

Regards,
Kshitij