Operating System - HP-UX
1830937 Members
1915 Online
110017 Solutions
New Discussion

[Java] HPjmeter -> profile a servlet in Tomcat

 
Morgan Pyne
Advisor

[Java] HPjmeter -> profile a servlet in Tomcat

Hi,

Not sure if this is the correct forum but I hope this is where the Java experts hang out.

I'm attempting to profile a servlet in Tomcat 4.1.24 using HPjmeter. I'm brand new to HPjmeter, but I read whatever docs I could find and got it installed and running fairly quickly. I added the following options to the JVM in the tomcat startup script to enable profiling:

-Xeprof:inlining=disable,file=/tmp/myprofile.prof

I then start tomcat, and exercise my servlet a little. When I stop Tomcat, I get the message


eprof: terminating profiling
eprof: writing profile data to /tmp/myprofile.prof
eprof: done.

Sure enough, the profiling file gets created, and I can open and examine it inside HPjmeter

However, my problem lies in the fact that I can't seem to find any profiling information for my servlet in there. From my limited knowledge, it looks to me that has profiled all the Tomcat and Sun classes but there is no mention of my classes at all.

Am I missing something really obvious ? Is it possible to profile a servlet like this?
If yes, how do I do it?


Thanks in advance,
Morgan

FYI: my environment is as follows: HP-UX 11, JDK 1.4.1_01, Tomcat 4.1.24, HPjmeter 1.6