Hi,
I'm getting OutOfMemory errors randomly on a web application running
on Websphere 5.1.X.X. Increasing the heap size doesn't seem to make
any difference. From the garbage collection logs it appears as if the
heap size doesn't seem to running out so I'm wondering if there is
something else to adjust to stop out of memory errors. Any advice
would be appreciated.
thanks
Josh
amin.variava@gmail.com - 09 Sep 2007 21:42 GMT
On Sep 9, 4:37 pm, "josh....@gmail.com" <josh....@gmail.com> wrote:
> Hi,
>
[quoted text clipped - 7 lines]
> thanks
> Josh
Look at the permanent memory settings. By default its like 64mb which
is not enough for most application. You can increase the permanent
memory size and make sure that there is garbage colletion being done
on it....look into xnoclassgc param if you have that set. Hope this
helps.
Amin
Jacky - 10 Sep 2007 04:07 GMT
I think you should use profile tool to stakeout the runtime
environment and find out the cause .
Andrew Thompson - 09 Sep 2007 23:47 GMT
...
>I'm getting OutOfMemory errors ...
...
>>...I'm wondering if there is
>something else to adjust to stop out of memory errors.
If the OOME's are caused by memory leaks within the
application, the only thing will fix the problems is to fix
the mem. leaks - raising the available memory will only
delay the OOME's.
>...Any advice
>would be appreciated.
If you can, get a profiler running on the web app. and
find what is causing* memory to increase. * Does it
do anything with Images, for instance?

Signature
Andrew Thompson
http://www.athompson.info/andrew/
Roedy Green - 10 Sep 2007 06:46 GMT
On Sun, 09 Sep 2007 13:37:22 -0700, "josh.s17@gmail.com"
<josh.s17@gmail.com> wrote, quoted or indirectly quoted someone who
said :
>I'm getting OutOfMemory errors randomly on a web application running
>on Websphere 5.1.X.X. Increasing the heap size doesn't seem to make
>any difference. From the garbage collection logs it appears as if the
>heap size doesn't seem to running out so I'm wondering if there is
>something else to adjust to stop out of memory errors. Any advice
>would be appreciated.
See http://mindprod.com/jgloss/packratting.html
http://mindprod.com/jgloss/profiler.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com