Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 40390 invoked from network); 6 Feb 2003 14:22:43 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 6 Feb 2003 14:22:43 -0000 Received: (qmail 28418 invoked by uid 97); 6 Feb 2003 14:24:11 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 28411 invoked from network); 6 Feb 2003 14:24:10 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 6 Feb 2003 14:24:10 -0000 Received: (qmail 36287 invoked by uid 500); 6 Feb 2003 14:21:18 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 36234 invoked from network); 6 Feb 2003 14:21:17 -0000 Received: from unknown (HELO warhawk.mpi.com) (63.244.250.133) by daedalus.apache.org with SMTP; 6 Feb 2003 14:21:17 -0000 Received: from thunderbolt.mpi.com (thunderbolt.mpi.com [199.93.192.55]) by warhawk.mpi.com (Switch-2.2.2/Switch-2.2.0) with ESMTP id h16ELG525670 for ; Thu, 6 Feb 2003 09:21:16 -0500 (EST) Received: from US-VS1.corp.mpi.com (us-be2.corp.mpi.com [199.93.195.21]) by thunderbolt.mpi.com (Switch-3.0.1/Switch-3.0.0) with ESMTP id h16ELEg9008401 for ; Thu, 6 Feb 2003 09:21:15 -0500 (EST) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Problem with memory management useing tomcat Date: Thu, 6 Feb 2003 09:21:14 -0500 Message-ID: <9C5166762F311146951505C6790A9CF831E675@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem with memory management useing tomcat Thread-Index: AcLNz+mqe902yTMxTTyp8AiFdqELNQAGs6ow From: "Shapira, Yoav" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Howdy, 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 [mailto:piotr.stanek@icsolutions.com.pl] >Sent: Thursday, February 06, 2003 6:07 AM >To: tomcat-user@jakarta.apache.org >Subject: Problem with memory management useing tomcat > >Hi! > >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 3.23. >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 the >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 used >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? > > >Thanks, > >Peter --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org