Out of Memory PermGen. After increasing heap/perm size, get slow connect

Hi

I ran my webapp on tomcat 5.0.28. After a while, I got an java.lang.OutOfMemoryError: PermGen space error when I tried to redeploy my application so I tried to redeploy again and still got errors. So I looked for some clues and found that setting Heap size or PermGen Size might help. I did that but I have a problem now. It takes so long to connect to the server. (Actuallly i couldn't connect to it yet, it still running) I couln't try to redeploy any application since I only how to do it on www.localhost:8080/manager.html and I cannot even go to that page. I don't know if changing the JVM setting causes this. Any comment would be very much appriciates.

Thanks

[691 byte] By [noteshamrocka] at [2007-11-26 21:55:37]
# 1

Hi,

Did you make sure you set the heap / perm sizes to something reasonable that is not higher than the physical memory of your machine? The only way I can immediately think off that increasing the heap size would affect the performance of an application is that the JVM consumes too much memory, it starts swapping, and performance goes down the drain.

Apologies if this is too obvious, but we've had other customers hitting such issues.

Tony. HS GC Group

TonyPrintezisa at 2007-7-10 3:51:36 > top of Java-index,Java HotSpot Virtual Machine,Specifications...