This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Performance and the fly likes Memory Profiling Tomcat Running as Service Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Memory Profiling Tomcat Running as Service" Watch "Memory Profiling Tomcat Running as Service" New topic
Author

Memory Profiling Tomcat Running as Service

Lionel Port
Greenhorn

Joined: Sep 14, 2002
Posts: 19
Does anyone have any good experiences running a memory profiler with Tomcat running as a Windows Service.

We have a memory (leak) problem in production and are unable to reproduce it in our development environment.

I've tried a few profilers my latest being yourkit java profiler. They seem to run fine by adding the profiler agent as a jvm options in the batch file and running tomcat from there.
However, when I try it with a Tomcat installed as a service by adding the jvm option to the registry and restarting tomcat it seems to fail and I don't get an error messages in the log, so I have no idea how to fix it.

Help is appreciated.
Saulius Sinkunas
Greenhorn

Joined: May 18, 2005
Posts: 20
Hm, why couldn't you run your Tomcat as simple application (not as service) and profile? Anyway running Java applications as Windows services isn't a very good idea.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
Anyway running Java applications as Windows services isn't a very good idea.

Where did you get that idea? People do it all the time. I have a Win2003 server running IIS and Tomcat as a service for months with no trouble.
Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Memory Profiling Tomcat Running as Service
 
Similar Threads
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError: PermGen space
Out of Memory with high Free Memory
heap size in apache tomcat 5.x
Tomcat out of memory with some JREs