Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 33037 invoked from network); 7 Oct 2006 18:56:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Oct 2006 18:56:40 -0000 Received: (qmail 84695 invoked by uid 500); 7 Oct 2006 18:56:27 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 84671 invoked by uid 500); 7 Oct 2006 18:56:27 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 84660 invoked by uid 99); 7 Oct 2006 18:56:27 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Oct 2006 11:56:27 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [69.56.141.4] ([69.56.141.4:52307] helo=spooling.theplanet.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 9B/97-09076-858F7254 for ; Sat, 07 Oct 2006 11:56:25 -0700 Delivery-date: Sat, 07 Oct 2006 13:56:25 -0500 Received: from [172.16.214.113] (helo=mail.mail-server.com) by spooling.theplanet.com (envelope-from daniel@wordchamp.com) with smtp (Exim) id 1GWHLR-0000hj-VP for users@tomcat.apache.org; Sat, 07 Oct 2006 13:56:22 -0500 Received: (qmail 22297 invoked by uid 89); 7 Oct 2006 18:56:22 -0000 Received: from unknown (HELO dialect) (24.60.138.131) by mail.mail-server.com with SMTP; 7 Oct 2006 18:56:22 -0000 Reply-To: From: "Daniel Blumenthal" To: "'Tomcat Users List'" Subject: RE: Java heap space Date: Sat, 7 Oct 2006 14:56:10 -0400 Organization: GlobaLinguist, Inc. Message-ID: <07bc01c6ea42$4167f170$0201a8c0@dialect> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Thread-Index: AcbqQRFCbYh8PnsoTsymZPj51oKcTQAAMsdQ X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The problem has only occurred twice, so I can't reliably reproduce it. It's more that I wonder if I should bump the number up to -Xmx2048m. Is there a reason to choose 256m? What is the default? The maximum? > -----Original Message----- > From: Martin Gainty [mailto:mgainty@hotmail.com] > Sent: Saturday, October 07, 2006 2:48 PM > To: Tomcat Users List; daniel@wordchamp.com > Subject: Re: Java heap space > > Dan > What happens when you increase your JVM max memory parameter > (say to 256MB) with -Xmx256m in your > %java_home%\jre\lib\jvm.cfg restart tomcat? > Martin -- > > This e-mail communication and any attachments may contain > confidential and privileged information for the use of the > designated recipients named above. If you are not the > intended recipient, you are hereby notified that you have > received this communication in error and that any review, > disclosure, dissemination, distribution or copying of it or > its contents > ----- Original Message ----- > From: "Daniel Blumenthal" > To: "'Tomcat Users List'" > Sent: Saturday, October 07, 2006 12:21 PM > Subject: RE: Java heap space > > > > The quick answer is no - all of the code is non-reentrant, > and there > > aren't many places for a memory leak to hide from the garbage > > collector, but saying that there isn't a leak is like > saying your code > > is bug free. The one area that is suspect is the database > code - I'm > > fairly careful, but every once in a while I find a > PreparedStatement or ResultSet that isn't closed... > > > > Still, these are two different tracks. I'd like to get Java set up > > correctly to give maximum memory to Tomcat, while simultaneously > > trying to track down any leaks. > > > > Daniel > > > > > >> -----Original Message----- > >> From: Santosh Puranshettiwar [mailto:santosh@wirkle.com] > >> Sent: Saturday, October 07, 2006 6:00 AM > >> To: Tomcat Users List > >> Subject: Re: Java heap space > >> > >> Are you sure there isn't any memory leak? I mean it might happen > >> that you are increasing the heap size just to delay the > >> OutOfMemoryErrors. > >> > >> Santosh. > >> > >> Daniel Blumenthal wrote: > >> > I've been running a struts app on a plain vanilla > install of Tomcat > >> > (5.0.28), and recently I've been getting some > OutOfMemoryErrors. I > >> > did some looking, and found the -Xms and -Xmx flags, and > >> was hoping to > >> > get some advice regarding good values. > >> > > >> > I'm upgrading to a couple of RH Linux servers which will only be > >> > running apache and tomcat (the database will be on other > >> machines). > >> > Each server has 4GB of memory. What would reasonable > >> values be to get > >> > the best performance out of Tomcat? > >> > > >> > Thanks! > >> > > >> > > >> > > >> > > >> > > >> > --------------------------------------------------------------------- > >> > To start a new topic, e-mail: users@tomcat.apache.org To > >> unsubscribe, > >> > e-mail: users-unsubscribe@tomcat.apache.org > >> > For additional commands, e-mail: users-help@tomcat.apache.org > >> > > >> > > >> > > >> > >> > >> > --------------------------------------------------------------------- > >> To start a new topic, e-mail: users@tomcat.apache.org To > unsubscribe, > >> e-mail: users-unsubscribe@tomcat.apache.org > >> For additional commands, e-mail: users-help@tomcat.apache.org > >> > >> > > > > > > > > > --------------------------------------------------------------------- > > To start a new topic, e-mail: users@tomcat.apache.org To > unsubscribe, > > e-mail: users-unsubscribe@tomcat.apache.org > > For additional commands, e-mail: users-help@tomcat.apache.org > > > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org