Spring ApplicationContext grabs grotesque amounts of memory

I have numerous Spring Framework based applications running on Tomcat 5.5 server. Some of them have their own instances, some use the server with other applications. The only thing they have in common is that they require a huge amount of memory, more than I think they should really require. Are there any tools for profiling Tomcat servers?

To continue development, they run on Ubuntu 9.04, fully patched, with access to 3GB of memory (about half of which it actually takes up).

+2


source to share


2 answers


Take a look at JConsole . Tomcat itself provides a lot of information via JMX .



That said, 1.5GB for an app might not be grotesque. Depending on the application, of course, if it is "Hello World" then you have problems :-)

+1


source


There are several Java profiling tools out there:

You just need to attach the profiler to the JVM at startup.

You can also take a look at the Lamba probe, but this is more for monitoring:



http://www.lambdaprobe.org/d/index.htm

Also see:

Open Source Java Profiles

+1


source







All Articles