tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Problem with memory management useing tomcat
Date Thu, 06 Feb 2003 14:21:14 GMT
A couple of notes:

1. Could it possibly be that your application requires more than 64MB of
RAM?  30000 visits is a lot in some contexts.  Profile your application
and run some stress tests (hopefully on a test server, not the
production one ;)) to determine the real memory needs.  Look for memory
leaks while you're at it.

2. There have been some discussions on this (and other) mailing lists
regarding the inaccuracy of Linux memory usage reporting mechanisms when
it comes to Java.  Most of the issues stem from the fact separate JVM
threads are represented as separate OS-level processes in Linux, though
that's not really the case, resulting in misleading reports from top,
vmstat, meminfo, etc.  Search the list archives for more information.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Piotr Stanek []
>Sent: Thursday, February 06, 2003 6:07 AM
>Subject: Problem with memory management useing tomcat
>I have a problem with memory managament. I have an application (content
>management of art portal) running on tomcat 4.1.18 and useing mysql
>The application is running on a linux server (Redhat 7.1, RAM 512 Mb).
>I run tomcat with options -Xmx64 -Xms32 and after one day of running
>application (30,000 visits) the system is going slower and slower.
>Finally I have some exceptions "Out of memory".
>Tomact use about 128 Mb, mysql about 64 Mb and the rest of memory is
>in "cached memory".
>The meminfo file:
>        total:    used:    free:  shared: buffers:  cached:
>Mem:  525697024 452603904 73093120        0 41660416 193277952
>Swap: 542826496   172032 542654464
>MemTotal:       513376 kB
>MemFree:         71380 kB
>MemShared:           0 kB
>Buffers:         40684 kB
>Cached:         188708 kB
>SwapCached:         40 kB
>Active:         318668 kB
>Inact_dirty:     18444 kB
>Inact_clean:     75728 kB
>Inact_target:    82568 kB
>HighTotal:           0 kB
>HighFree:            0 kB
>LowTotal:       513376 kB
>LowFree:         71380 kB
>SwapTotal:      530104 kB
>SwapFree:       529936 kB
>Any ideas what may cause this problem?

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

View raw message