Hi,
I don't have any idea about the Linux environment. But, I got a OutOfMemoryError due to permgen space on windows/Tomcat5.0.30 environment and this is what I have done. set CATALINA_OPTS in catalina.bat if Tomcat is started using startup.bat set CATALINA_OPTS=-Xms128m -Xmx512m -XX:MaxPermSize=256m and if Tomcat is started as a service then JVMOptions is set in service.bat "%EXECUTABLE%" //US//%SERVICE_NAME% ++JvmOptions "-Djava.io.tmpdir=%CATALINA_BASE%\temp;" --JvmMs 128 --JvmMx 512 Hope this helps. Thank you. "Leon Rosenberg" <[EMAIL PROTECTED]> 01/26/2006 09:25 AM Please respond to "Tomcat Users List" <users@tomcat.apache.org> To "Tomcat Users List" <users@tomcat.apache.org>, [EMAIL PROTECTED] cc Subject Re: help to solve 'OutOfMemoryError' Could you please provide a little more details, on what kind of program you are doing, how you are starting it right now, and how is tomcat involved? generally -Xmx128m -Xmx256m, are parameters to java call, besides you can't have two different values for the same parameter! (I think the first one is ms, right?) java -Xms128m -Xmx256m -cp bla:blub:blib your.package.YourClass For tomcat you need to alter JAVA_OPTS in catalina.sh/bat to even those values: set JAVA_OPTS=-Dms128M -Dmx256M ... under windows and export JAVA_OPTS="-mx256M -ms128M ... under *nix. regards Leon On 1/26/06, Aparna Ramakrishnan <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for the link. > When i start my program, the Runtime Maximum Heap Size is 66650112 bytes ~=64MB. I believe I should increase this value to atleast 256 MB. But how do I go about doing this? I understand that I need to add an option -Xmx128m -Xmx256m, but to what and how! > Kindly guide me through.. since I am completely new to this ground. > > Thanks in advance > Aparna > > "Caldarale, Charles R" <[EMAIL PROTECTED]> wrote: > > From: Aparna Ramakrishnan [mailto:[EMAIL PROTECTED] > > Subject: help to solve 'OutOfMemoryError' > > > > What changes do I need to make to avoid this > > OutOfMemoryError? > > The question is too generic for anyone to provide a concrete answer. > Start here: > http://tomcat.apache.org/faq/memory.html > > Do some reading on how JVM heap management works - Sun's Java web site > has some pretty decent tutorials and tech papers. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------- > Do you Yahoo!? > With a free 1 GB, there's more in store with Yahoo! Mail. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]