Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

profiling with mulitplie SIGQUIT signals

843811Jul 7 2003 — edited Jul 30 2003
Hello,

To get multiple snapshots during one run of my application, I send n
SIGQUIT signals to the VM.

The result is one big profile dump file with mulitple profile sections
(each for one SIGQUIT instance).

I wrote a script that cuts up this big dump file and reassables it
into n smaller profile files, where each of this profile files
contains the cummulation of traces and threads sections but only one
SITES, SAMPLES etc. section.

When I try to read these files into HPjmeter, HPjmeter rejects some of
those files because of an illegal "syntax" in the CPU SAMPLE section.

For example the following CPU SAMPLE section is rejected by HPjmeter:

CPU SAMPLES BEGIN (total = 6495) Mon Jul 7 16:27:31 2003
rank self accum count trace method
1 24.99% 24.99% 9706 25084 java.net.PlainSocketImpl.socketAccept
2 24.99% 49.98% 9713 24504 java.net.PlainSocketImpl.socketAccept
3 24.99% 74.97% 9706 25085 java.net.PlainSocketImpl.socketAccept
4 24.99% 99.95% 9726 23682 java.net.PlainSocketImpl.socketAccept
5 0.03% 99.98% 3 21475 java.lang.StringBuffer.<init>
6 0.02% 100.00% 4 21474 java.io.UnixFileSystem.resolve
CPU SAMPLES END

The reason for this rejection is that the lines are not sorted by the
"counts" column (If I reorder it accordingly HPJemeter reads in the
file witouht complaining).

My question:

1. Is the CPU SAMPLE section really corrupt, because cpu sampling
conflicts with the multiple SIGQUIT signals I send to the VM

or

2. Has the "hprof" file format changed (it says: "JAVA PROFILE 1.0.1")
and HPJemeter assumes an older file format.

Thanks for your help in advance

Kind regards

Victor Novoloni
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 27 2003
Added on Jul 7 2003
1 comment
114 views