Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 63851 invoked from network); 24 Jun 2002 21:19:17 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 24 Jun 2002 21:19:17 -0000 Received: (qmail 7621 invoked by uid 97); 24 Jun 2002 21:19:08 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 7602 invoked by uid 97); 24 Jun 2002 21:19:08 -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 7590 invoked by uid 98); 24 Jun 2002 21:19:07 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <3D178C9F.8050101@dotech.com> Date: Mon, 24 Jun 2002 17:18:23 -0400 From: David Kavanagh User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Tomcat Users List Subject: Re: -Xmx/-Xms Parameters, Where do they go??? References: <002301c21bc3$91279be0$8119fea9@INTERKNACK.LOCAL> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I've added a line in my tomcat.sh that sets the TOMCAT_OPTS variable. You should really set "-server" since I've seen noticeable improvements over the "-client" option (which is the default). "-server" must be the first option. Then, use -Xms and -Xmx to increase your memory allocation. If you are using 1.3.x, you should look at -XX:NewSize and -XX:MaxNewSize for much larger mx/ms values. You can find more information about these at http://java.sun.com/docs/hotspot/index.html David bob McLaughlin wrote: >The tomcat users guide states, that to improve performance, more memory can >be allocated to tomcat in: > >Modify your JVM memory configuration. Normally the JVM allocates an initial >size for the Java heap and that's it, if you need more then this amount of >memory you will not get it. >Nevertheless, in loaded sites, giving more memory to the JVM improves >Tomcat's performance. You should use command line parameters such >as -Xms/-Xmx/-ms/-mx to set the minimum/maximum size of the Java heap (and >check to see if the performance was improved). > >QUESTION: Where does this command go? I assume the tomcat.sh or the >startup.sh, but in which part of which one? Anyone doing this? > >Bob > > >-- >To unsubscribe, e-mail: >For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: