This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Profiling parameters with Tomcat  RSS feed

 
Renato Veneroso
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,

We have a J2EE application running with Tomcat 5.0.16 on both Windows (development) and Linux (production) environments. Over the last two weeks the application has halted a couple of times a day with 'out of memory' errors so we want to 'profile' the application to spot the problems. I downloaded HP JMeter and will use it as soon as I have a profiling file. Here is my problem: I am not able to start the JVM correctly so that it generates the profiling file. So far I have included a like such as

set JAVA_OPTS= -Xrunhprof cpu=samples,depth=6,file=my_profiling_file.txt ...(other parameters)

in my catalina.bat file (I am working on the development environment) but this does not yield the expected result. I mean, the JVM starts without any error messages but it does not generate any profiling file.

Does anybody know why this happens? Am I doing something wrong? Is there a better way to generate the profiling file?

Thanks in advance.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!