20030326 Wednesday March 26, 2003

Tomcat 4.1.24: No More OutOfMemory Errors I know I'm probably jinxing myself, but I'm going to say it anyway. I just checked my catalina.out file (a.k.a. Tomcat's log file) and I haven't had an OutOfMemory error since I upgraded to Tomcat 4.1.24. I was getting them all the time with Tomcat 4.1.18. Hopefully you've seen the same stability increase. I'm sure this site will crash with an OutOfMemory error as soon as I finish this post! ;0)

Update: I send a message to Keith to verify that Tomcat hasn't crashed since Saturday night. Here is his response.

The cron job hasn't had to restart it, and there are no out 
of memory errors in the log.  I can't find any sign that it
failed since then.

Keith

Sweeeeeettt!! Posted in Java at Mar 26 2003, 07:41:57 AM MST 6 Comments

Comments:

Is this on Win2K? How do you specify the JVM mem settings and have them actually work when firing up Tomcat. I put them in my catalina.bat file as the CATALINA_OPTS variable, but they don't seem to work. Linux it works fine for me.

Posted by dsuspense on March 26, 2003 at 09:20 AM MST #

Nope, it's on a Linux box where this site is hosted. I haven't had to change any memory settings when running on Windows.

Posted by Matt on March 26, 2003 at 10:20 AM MST #

Wait... I use tomcat-4.1.24-LE-jdk1.4 and jdk1.4.2 , but Tomcat will throw a java.lang.OutOfMemoryException. WhetherI edit my catalina.bat or not, it still doesn't work. I set CATALINA_OPTS=-server -Xms256m -Xmx512m -Xincgc but failed. I run in win2K OS. The same configuration in Tomcat4.1.18 will work. Please help me , thanks very much!

Posted by Edward on July 28, 2003 at 05:00 AM MDT #

When I was having OutOfMemory errors, it was because I was running on a hosted Linux box, and some other users were using up all the memory. If 4.1.18 works fine, I don't know what to tell you.

Posted by Matt Raible on July 28, 2003 at 06:08 AM MDT #

i had one doubt " how can i solve the out of memory problem in tomcat4.0".pls send reply for me.....

Posted by baskar on July 29, 2005 at 01:45 AM MDT #

ghgg

Posted by 201.7.97.22 on October 14, 2005 at 01:22 PM MDT #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architecture Consultant specializing in open source frameworks.
« May 2012
SunMonTueWedThuFriSat
  
1
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
23
24
25
26
27
28
29
30
31
  
       
Today

Recent Entries

Tag Cloud