Casey,

I asked the same question on August 20th an received the below answer from
David Graham.  I believe the bug was with reloading (stop/start) of Tomcat
apps not fully releasing properties.  I was developing and seeing this
problem after about 20 or so stop/start actions.  I still haven't deployed
to production so I can't answer how it works in production.  Perhaps you can
make a cron/scheduled job to stop/restart tomcat at some off-peak time
(midnight for 30 seconds?)

Regards,
David

***************************************************
-----Original Message-----
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 1:20 PM
To: Struts Users Mailing List
Subject: Re: Out of Memory Error on Struts 1.1, Tomcat 4.1.27, Linux JDK
1.4.2?


There's a bug report on this issue:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14042

This only happens when reloading the app and will be fine in production.

David
***************************************************
-----Original Message-----
From: Casey Forbes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 8:21 AM
To: [EMAIL PROTECTED]
Subject: [OT] OutOfMemoryError when I have plenty of heap


Hi everyone,

There are many smart people on this list and I haven't been
able to get anywhere with this problem, so...

I'm running 12 Struts-based apps under Resin 2 on a Linux box.
(I don't believe that this is a Struts problem - this is
just some background for you)

Every few days (sometimes this will happen after 2 days, sometimes
5 or 6) I get an OutOfMemory error which stops the JVM...
I have plenty of room in the heap (the machine has 1 GB or
RAM and I have the max heap size -Xmx set to 896 MB) Just before
it dies there are a few attempts to free more memory.
>From the GC log:

Full GC 227765K->132728K(274140K), 3.2615930 secs
Full GC 132729K->132728K(274140K), 2.5218730 secs
Full GC 132803K->120231K(274140K), 3.1998370 secs
OutOfMemoryError

As you can see - I'm only using 132 MB after the first
GC which leaves plenty.... Runtime.freeMemory()
etc. returns similar results..

Does anybody have any ideas? I don't even know where to look
next... It doesn't look like a profiler would help me here
since I don't have tons of objects filling up my memory.....

Thanks,
Casey



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to