Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 59100 invoked from network); 21 Mar 2011 11:59:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Mar 2011 11:59:05 -0000 Received: (qmail 92497 invoked by uid 500); 21 Mar 2011 11:59:02 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 92439 invoked by uid 500); 21 Mar 2011 11:59:01 -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 92430 invoked by uid 99); 21 Mar 2011 11:59:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Mar 2011 11:59:01 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of icicimov@gmail.com designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qy0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Mar 2011 11:58:55 +0000 Received: by qyk10 with SMTP id 10so5578275qyk.18 for ; Mon, 21 Mar 2011 04:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=NoD91zvVEg/Xt6XgzfYnf2kbWKPga4hGh5KGwSRwi0Q=; b=hEuQPBE754lI1PVuTkCmOpwMVploFc0DGxMe5EKcPV35r1IcHWz8m3kxEE/93CutOg a2PwaXEwcXtb7hjcCGhwi2Kw7qJdfkcLnavOXgK3w1VzF0JyO+ua562NnO9eEuHB09ZP VfiZa7nAsenbw1yIxgoWvvMr/I3RB8vOnqGbw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=EQzTcsGewNMqDmUTgv2GPdTcmvIIMhhu89KzwZJRhw8t5L/oF5+dIiDTnhpKQbY2Qo NfopWr230ydwd7QUpaq+8WOpmTle8UNVKR4ka0NQ2Njwe/IAjHLSsgBXOcAoUMACmDid 84QP71LtL8Ex/buRIJGxW/7We7WYns2suIsp0= MIME-Version: 1.0 Received: by 10.229.246.73 with SMTP id lx9mr3074440qcb.198.1300708714505; Mon, 21 Mar 2011 04:58:34 -0700 (PDT) Received: by 10.229.85.1 with HTTP; Mon, 21 Mar 2011 04:58:34 -0700 (PDT) In-Reply-To: References: <4D871615.60208@apache.org> Date: Mon, 21 Mar 2011 22:58:34 +1100 Message-ID: Subject: Re: Max value of MaxPermSize From: Igor Cicimov To: Tomcat Users List Content-Type: multipart/alternative; boundary=0016e64653ace267bc049efcd8be X-Virus-Checked: Checked by ClamAV on apache.org --0016e64653ace267bc049efcd8be Content-Type: text/plain; charset=ISO-8859-1 What kind of memory errors do you have? I have never seen application that uses 2GB of permanent memory. Usually if you have "out of memory" errors you need to increase the -Xmx1024M and not the permanent memory size. In your setting you have given the JVM heap only 1GB and the permanent memory 2GB which doesn't make sense to me. The perm size shouldn't be more than 500MB or 1GB in the worst case and I'm talking from my experience with huge production applications. How much memory? I think you have answered that question your self - if you have 3.5GB and it's free than give it all to the JVM, especially if it is the only process running on the box. Basically any 32 bit process can grow up to 4GB. But over 3GB can create some problem in troubleshooting big core files so I would say start with -Xmx2048M and -XX:MaxPermSize=512M and see how you go. On Mon, Mar 21, 2011 at 9:14 PM, abhishek jain wrote: > > > also am i writing these values in the correct location, > > > > With the tomcat base startup scripts, this should be in > > $CATALINA_BASE/setenv.sh. This file will be sourced by catalina.sh if > > it exists. > > > Hi > I have a feeling that i am writing in wrong place, > setenv.sh dont exist in my system, do i need to create that or can i write > directly in catalina.sh, if yes where to place this configuration. > > > -- > Thanks and kind Regards, > Abhishek jain > --0016e64653ace267bc049efcd8be--