tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Crowther <>
Subject Re: java.lang.OutOfMemoryError: Java heap space
Date Tue, 06 Oct 2009 22:08:18 GMT
2009/10/6 Joe Hansen <>:
> Andre, you are right. Memory is cheap. However, the machine has 8GB of
> memory already. I am thinking that it should be sufficient.

You might wish to dedicate more of that 8 Gbyte to Java, though.  It
depends on the performance characteristics of your application - looks
to me like MySQL is grabbing a load of your RAM for its cache.  top
(or similar) would confirm that overall usage, and I assume MySQL has
some performance monitoring available that'll tell you the
effectiveness of its caches.  If you're *just* tipping into using
swap, it's almost certainly the case that MySQL is grabbing memory
that would otherwise be called "free".

This may well be the best use for the RAM, but there's a possibility
that more RAM dedicated to Java would improve your performance
overall.  I'm not willing to make that guess without data on the
effectiveness of MySQL's cache, though :-).

- Peter

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message