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]