I'm using 1.4.1_01 Sun's JVM which is all right. 1.3.1 had a memory leak. I'm not quite sure about 1.4.0, I would upgrade it, it's easy to do.
Also, try the following which works for me: 1. I use the environment variable CATALINA_OPTS. 2. I noticed that you didn't use quotes, this may be a problem if it's not a typo. I have the following: CATALINA_OPTS="-server -Xss128k -Xincgc -Xms256m -Xmx256m" I believe quotes are important. Two last parameters give a large heap for your JVM. Good luck, Igor TN On Wed, 22 Jan 2003, Nate wrote: > 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" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > 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:[EMAIL PROTECTED]] > > 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" <[EMAIL PROTECTED]> > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]> > > 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:[EMAIL PROTECTED]] > > > 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: > > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > > <mailto:[EMAIL PROTECTED]> > > > > > > -- > > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
