You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Bob Dushok <bd...@mac.com> on 2006/12/27 17:16:04 UTC
Geronimo Heap Error
Our Java web app has produced an java.lang.OutOfMemoryError error and
placed the following line multiple times in the Geronimo log. Can
anyone tell me how to correct this problem?
Thanks,
Bob
3317: 10:52:05,503 ERROR [ThreadPool] Caught exception
(java.lang.OutOfMemoryError: Java heap space) executing
org.apache.tomcat.util.net.LeaderFollowerWorkerThread@7faf9b87,
terminating thread
Re: Geronimo Heap Error
Posted by Peter Petersson <pe...@pmb.mine.nu>.
If you still have out of memory problems try adding
-XX:MaxPermSize=128m
(64m is the default in sun java sdk 1.5) to your JAVA_OPTS.
What java version are you using?
/Peter
Bob Dushok skrev:
> David,
>
> The app is a fairly simple web app consisting of several JSP
> apps. I can't be certain there isn't an infinite loop, but all of the
> pages appear to complete execution.
>
> It's odd, the server now starts with about 150mb of ram used.
> Shortly after launch the usage drops to about 80mb and stays around
> that amount. Prior to changing the heap size the server only had
> allocated about 70mb of ram with 50 or 60mb used at launch.
>
> Is this normal memory usage for Geronimo?
>
> Thanks,
> Bob
>
>
> On Dec 27, 2006, at 12:40 PM, David Jencks wrote:
>
>> If increasing the heap size doesn't work I'd think that perhaps your
>> app goes into a loop and uses up all the memory. You could probably
>> detect this by just looking :-), profiling, or adding some debug
>> logging statements at likely spots.
>>
>> hope this helps
>> david jencks
>>
>> On Dec 27, 2006, at 11:16 AM, Bob Dushok wrote:
>>
>>> Our Java web app has produced an java.lang.OutOfMemoryError error
>>> and placed the following line multiple times in the Geronimo log.
>>> Can anyone tell me how to correct this problem?
>>>
>>> Thanks,
>>> Bob
>>>
>>> 3317: 10:52:05,503 ERROR [ThreadPool] Caught exception
>>> (java.lang.OutOfMemoryError: Java heap space) executing
>>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread@7faf9b87,
>>> terminating thread
>>
>
Re: Geronimo Heap Error
Posted by Peter Petersson <pe...@pmb.mine.nu>.
I have set up a couple of machines with the following java options
JAVA_OPTS="-Djava.awt.headless=true -Xms64M -Xmx512M -server"
and a second one with the following java options
JAVA_OPTS="-Djava.awt.headless=true -Xms128M -Xmx1024M -server"
booth have several web apps running in it and the memory usage stays around
30-40MB (starting with a total of ~64MB memory allocated) in the first
one and
70-90MB (starting with a total of ~125MB memory allocated) in the second
one.
The start up memory allocation is inline with the "initial Java heap
size" -Xms option.
Having the initial java heap size (Xms) set to 1024M is probably not
needed and as your
Gserver stays around 70-80MB you should probably manage with -Xms128M
/Peter
Bob Dushok skrev:
> David,
>
> The app is a fairly simple web app consisting of several JSP
> apps. I can't be certain there isn't an infinite loop, but all of the
> pages appear to complete execution.
>
> It's odd, the server now starts with about 150mb of ram used.
> Shortly after launch the usage drops to about 80mb and stays around
> that amount. Prior to changing the heap size the server only had
> allocated about 70mb of ram with 50 or 60mb used at launch.
>
> Is this normal memory usage for Geronimo?
>
> Thanks,
> Bob
>
>
> On Dec 27, 2006, at 12:40 PM, David Jencks wrote:
>
>> If increasing the heap size doesn't work I'd think that perhaps your
>> app goes into a loop and uses up all the memory. You could probably
>> detect this by just looking :-), profiling, or adding some debug
>> logging statements at likely spots.
>>
>> hope this helps
>> david jencks
>>
>> On Dec 27, 2006, at 11:16 AM, Bob Dushok wrote:
>>
>>> Our Java web app has produced an java.lang.OutOfMemoryError error
>>> and placed the following line multiple times in the Geronimo log.
>>> Can anyone tell me how to correct this problem?
>>>
>>> Thanks,
>>> Bob
>>>
>>> 3317: 10:52:05,503 ERROR [ThreadPool] Caught exception
>>> (java.lang.OutOfMemoryError: Java heap space) executing
>>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread@7faf9b87,
>>> terminating thread
>>
>
Re: Geronimo Heap Error
Posted by Peter Petersson <pe...@pmb.mine.nu>.
Btw as you can read in <geronimo home>/bin/geronimo.sh (if you are using
a linux/unix system) a
good place to set environment variables used by geronimo is to create a
setenv.sh script file and
pace it in the geronomo/bin dir. it will be read by geronimo:s start up
script.
/Peter
Bob Dushok skrev:
> David,
>
> The app is a fairly simple web app consisting of several JSP
> apps. I can't be certain there isn't an infinite loop, but all of the
> pages appear to complete execution.
>
> It's odd, the server now starts with about 150mb of ram used.
> Shortly after launch the usage drops to about 80mb and stays around
> that amount. Prior to changing the heap size the server only had
> allocated about 70mb of ram with 50 or 60mb used at launch.
>
> Is this normal memory usage for Geronimo?
>
> Thanks,
> Bob
>
>
> On Dec 27, 2006, at 12:40 PM, David Jencks wrote:
>
>> If increasing the heap size doesn't work I'd think that perhaps your
>> app goes into a loop and uses up all the memory. You could probably
>> detect this by just looking :-), profiling, or adding some debug
>> logging statements at likely spots.
>>
>> hope this helps
>> david jencks
>>
>> On Dec 27, 2006, at 11:16 AM, Bob Dushok wrote:
>>
>>> Our Java web app has produced an java.lang.OutOfMemoryError error
>>> and placed the following line multiple times in the Geronimo log.
>>> Can anyone tell me how to correct this problem?
>>>
>>> Thanks,
>>> Bob
>>>
>>> 3317: 10:52:05,503 ERROR [ThreadPool] Caught exception
>>> (java.lang.OutOfMemoryError: Java heap space) executing
>>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread@7faf9b87,
>>> terminating thread
>>
>
Re: Geronimo Heap Error
Posted by Bob Dushok <bd...@mac.com>.
David,
The app is a fairly simple web app consisting of several JSP apps.
I can't be certain there isn't an infinite loop, but all of the pages
appear to complete execution.
It's odd, the server now starts with about 150mb of ram
used. Shortly after launch the usage drops to about 80mb and stays
around that amount. Prior to changing the heap size the server only
had allocated about 70mb of ram with 50 or 60mb used at launch.
Is this normal memory usage for Geronimo?
Thanks,
Bob
On Dec 27, 2006, at 12:40 PM, David Jencks wrote:
> If increasing the heap size doesn't work I'd think that perhaps
> your app goes into a loop and uses up all the memory. You could
> probably detect this by just looking :-), profiling, or adding some
> debug logging statements at likely spots.
>
> hope this helps
> david jencks
>
> On Dec 27, 2006, at 11:16 AM, Bob Dushok wrote:
>
>> Our Java web app has produced an java.lang.OutOfMemoryError error
>> and placed the following line multiple times in the Geronimo
>> log. Can anyone tell me how to correct this problem?
>>
>> Thanks,
>> Bob
>>
>> 3317: 10:52:05,503 ERROR [ThreadPool] Caught exception
>> (java.lang.OutOfMemoryError: Java heap space) executing
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread@7faf9b87,
>> terminating thread
>
Re: Geronimo Heap Error
Posted by David Jencks <da...@yahoo.com>.
If increasing the heap size doesn't work I'd think that perhaps your
app goes into a loop and uses up all the memory. You could probably
detect this by just looking :-), profiling, or adding some debug
logging statements at likely spots.
hope this helps
david jencks
On Dec 27, 2006, at 11:16 AM, Bob Dushok wrote:
> Our Java web app has produced an java.lang.OutOfMemoryError error
> and placed the following line multiple times in the Geronimo log.
> Can anyone tell me how to correct this problem?
>
> Thanks,
> Bob
>
> 3317: 10:52:05,503 ERROR [ThreadPool] Caught exception
> (java.lang.OutOfMemoryError: Java heap space) executing
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread@7faf9b87,
> terminating thread
Re: Geronimo Heap Error
Posted by Bob Dushok <bd...@mac.com>.
Thanks! That appears to have corrected the problem.
Bob
On Dec 27, 2006, at 12:10 PM, problems mail wrote:
>
> increase the heap size
>
> u need to set the JAVA_OPTS=-Xms1024M -Xmx1024M when u start
> geronimo. Hope that helps
>
>
> On 12/27/06, Bob Dushok <bd...@mac.com> wrote:
> Our Java web app has produced an java.lang.OutOfMemoryError error and
> placed the following line multiple times in the Geronimo log. Can
> anyone tell me how to correct this problem?
>
> Thanks,
> Bob
>
> 3317: 10:52:05,503 ERROR [ThreadPool] Caught exception
> (java.lang.OutOfMemoryError: Java heap space) executing
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread@7faf9b87 ,
> terminating thread
>
>
>
> --
> Regards,
> Simon
Re: Geronimo Heap Error
Posted by problems mail <pr...@gmail.com>.
increase the heap size
u need to set the JAVA_OPTS=-Xms1024M -Xmx1024M when u start geronimo. Hope
that helps
On 12/27/06, Bob Dushok <bd...@mac.com> wrote:
>
> Our Java web app has produced an java.lang.OutOfMemoryError error and
> placed the following line multiple times in the Geronimo log. Can
> anyone tell me how to correct this problem?
>
> Thanks,
> Bob
>
> 3317: 10:52:05,503 ERROR [ThreadPool] Caught exception
> (java.lang.OutOfMemoryError: Java heap space) executing
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread@7faf9b87,
> terminating thread
>
--
Regards,
Simon