Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 59739 invoked from network); 2 Apr 2004 17:32:15 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Apr 2004 17:32:15 -0000 Received: (qmail 48685 invoked by uid 500); 2 Apr 2004 17:31:45 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 48658 invoked by uid 500); 2 Apr 2004 17:31:44 -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 48645 invoked from network); 2 Apr 2004 17:31:44 -0000 Received: from unknown (HELO hotmail.com) (64.4.11.125) by daedalus.apache.org with SMTP; 2 Apr 2004 17:31:44 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 2 Apr 2004 09:31:48 -0800 Received: from 65.206.30.66 by by7fd.bay7.hotmail.msn.com with HTTP; Fri, 02 Apr 2004 17:31:47 GMT X-Originating-IP: [65.206.30.66] X-Originating-Email: [tomcat21117@hotmail.com] X-Sender: tomcat21117@hotmail.com From: "Mandy Joss" To: tomcat-user@jakarta.apache.org Bcc: Subject: Re: How to set up JAVA_OPTS while running tomcat as a service Date: Fri, 02 Apr 2004 17:31:47 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 02 Apr 2004 17:31:48.0177 (UTC) FILETIME=[605A9C10:01C418D8] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I have already tried this if I set up an environment variable called JAVA_OPTS as -Dmy.prop=myProp and then try to get it in my application thru System.getProperty("my.prop"); Its null. So I don't think it looks at the environment variables. If I specify the same thing in the startup.bat file, I am able to get System.getProperty("my.prop"); >From: Thomas Tang >Reply-To: "Tomcat Users List" >To: "Tomcat Users List" >Subject: Re: How to set up JAVA_OPTS while running tomcat as a service >Date: Fri, 2 Apr 2004 12:03:46 -0500 > >Hi, > >You would need to specify this prior to starting up Tomcat. >Just set your environment variables accordingly and fire up the tomcat >afterwards. > >Thomas > > > >"Mandy Joss" >04/02/2004 11:54 AM >Please respond to >"Tomcat Users List" > > >To >tomcat-user@jakarta.apache.org >cc > >Subject >How to set up JAVA_OPTS while running tomcat as a service > > > > > > >I am running Tomcat 4.1.24 as service but under stress I get >OutOfMemmoryError. To cure this I want to pass JAVA_OPTS=-server -Xms256m >-Xmx1000m -Xincgc to the Tomcat. Can somebody please tell me where should >I >specify JAVA_OPTS so that Tomcat running as service will look at them. > >_________________________________________________________________ >MSN Toolbar provides one-click access to Hotmail from any Web page ? FREE >download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > _________________________________________________________________ Persistent heartburn? Check out Digestive Health & Wellness for information and advice. http://gerd.msn.com/default.asp --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org