Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 34455 invoked from network); 23 Jan 2003 08:29:05 -0000 Received: from exchange.sun.com (192.18.33.10) by 208.185.179.12.available.above.net with SMTP; 23 Jan 2003 08:29:05 -0000 Received: (qmail 11313 invoked by uid 97); 23 Jan 2003 08:30:15 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 11277 invoked by uid 97); 23 Jan 2003 08:30:15 -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 11261 invoked by uid 98); 23 Jan 2003 08:30:14 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Reply-To: From: "Daniel Brown" To: "Tomcat Users List" Subject: RE: Tomcat Out of memory Date: Thu, 23 Jan 2003 08:29:07 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <00ab01c2c261$64b428e0$2801a8c0@Notebookdev> X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N Nate, When installing Tomcat as a service, you can specify extra options to the JVM using the 'jvm_option' flag. catalina.bat isn't used for this, as you rightly suspect. Try using tomcat.exe to uninstall the service, and then reinstalling it with your extra JVM options specified - hopefully that'll get you the extra memory you need. tomcat.exe options are as follows: C:\tomcat-4.0.6\bin>tomcat.exe -help To install a service: -install service_name jvm_library (jvm_option)* -start start_class [-method start_method] [-params (start_parameter)+] [-stop start_class [-method stop_method] [-params (stop_parameter)+]] [-out out_log_file] [-err err_log_file] [-current current_dir] [-path extra_path] To uninstall a service: -uninstall service_name service_name: The name of the service. jvm_library: The location of the JVM DLL under which to run the service. jvm_option: An option to use when starting the JVM, such as: "-Djava.class.path=c:\classes" or "-Xmx128m". start_class: The class to load when starting the service. start_method: The method to call in the start_class. default: main start_parameter:A parameter to pass in to the start_method. stop_class: The class to load when stopping the service. stop_method: The method to call in the stop_class. default: main stop_parameter: A parameter to pass in to the stop_method. out_log_file: A file to redirect System.out into. err_log_file: A file to redirect System.err into. current_dir: The current working directory for the service. Relative paths will be relative to this directory. extra_path: Path additions, for native DLLs etc. HTH, Dan. > -----Original Message----- > From: Nate [mailto:nmcminn@charter.net] > Sent: 22 January 2003 21:58 > To: Tomcat Users List; bcruz@norvax.com > Subject: Re: Tomcat Out of memory > > > We are using 1.4.0_01, this shouldn't suffer from any of the documented > issues that 1.3.1 had. Really my question just pertains to the proper > method of passing jvm startup parameters when tomcat is > configured to run as > a service. Anyone have any input? > > ----- Original Message ----- > From: "Brandon Cruz" > To: "Tomcat Users List" > Sent: Wednesday, January 22, 2003 4:08 PM > Subject: RE: Tomcat Out of memory > > > > we have the exact same configuration JDK 1.3.1, Tomcat 4.x, Linux. We > also > > have 512 allocated, but run out of memory just over 200 MB. I think JDK > > 1.3.1 from sun has a memory leak (according to a post yesterday), so we > are > > going to try to upgrade to IBM's 1.4 JDK and see what happens. > > > > Brandon > > > > -----Original Message----- > > From: Nate [mailto:nmcminn@charter.net] > > Sent: Wednesday, January 22, 2003 3:46 PM > > To: Tomcat Users List > > Subject: Re: Tomcat Out of memory > > > > > > Thanks for the info, but I think our problem is more related to > allocating > > the amount of memory we need than the -server option. Also, > I'm not even > > sure that I am setting these in the right place. > > > > ----- Original Message ----- > > From: "Claudio Pracilio" > > To: "'Tomcat Users List'" > > Sent: Wednesday, January 22, 2003 3:30 PM > > Subject: RE: Tomcat Out of memory > > > > > > > Hi There, > > > > > > We have had problems with our JVM running out-of-memory on Linux with > Suns > > > JDK 1.3.1. > > > > > > This was resolved by not using the "-server" option. > > > > > > Not sure what the JVM does differently internally, but using > the default > > > -client option had resolved our problems. > > > > > > Regards, > > > > > > Claudio > > > > > > -----Original Message----- > > > From: Nate [mailto:nmcminn@charter.net] > > > Sent: Wednesday, January 22, 2003 1:09 PM > > > To: Tomcat Users List > > > Subject: Tomcat Out of memory > > > > > > > > > We are running Tomcat 4.0.6 on Windows 2000 server using JDK 1.4.0_01. > > > Tomcat is set to run as a service. In our catalina.bat file we have > set: > > > > > > JAVA_OPTS= -server -Xms512m -Xmx512m > > > > > > If I am not mistaken, this should start the VM in server mode, and > > allocate > > > 512MB of memory for it to use. Our application gets an out of memory > > error > > > when the vm has used about 64MB of memory, well short of what we have > told > > > it to use. Am I setting the JVM parameters in the right > place, or is my > > > syntax perhaps incorrect? When tomcat is run as a service, is the > > > catalina.bat startup script even called? > > > > > > --Nate > > > > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > > > > For additional commands, e-mail: > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > > > For additional commands, e-mail: > > > > > > > > > > > > > > > > -- > > To unsubscribe, e-mail: > > > > For additional commands, e-mail: > > > > > > > > > > -- > > To unsubscribe, e-mail: > > > For additional commands, e-mail: > > > > > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: