This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
OS: Linux localhost.localdomain 2.6.31.5-127.fc12.i686 #1 SMP Sat Nov 7 21:41:45 EST 2009 i686 athlon i386 GNU/Linux Java: java version "1.6.0_17" Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode) NetBeans 6.8beta. 1. Created a maven-based web appliation and selected tomcat as appliation server. 2. but I encountered a "java.lang.OutOfMemoryError: PermGen space" error after rerun my application several times(4-5 times). 3. I've adjusted the tomcat VM options and set it as "-Xms256m -Xmx512m", the problem was still here. 4. When the problem occurred, I can not stop tomcat from NetBeans console or Service windows. I hope: 1. Provide a terminate button in the Tomcat console can stop tomcat thread quickly. 2. Provide the same feature of JettyRunJetty plugin for Eclipse(http://code.google.com/p/run-jetty-run/)... run project in embeded way, do not start up other projects at the same time. 3.Provide hot deployment feature, do not package and deploy, only copy the modified file to the deploy folder.
Whe the "java.lang.OutOfMemoryError: PermGen space" error ocurred, I tried to stop tomcat, but failed. I tried to kill the process id, but also failed. It created many thread listen the 8088 port...and eat most of my cpu.
Created attachment 91661 [details] cpu
Created attachment 91662 [details] process
This is a famous issue with multiple deploys to tomcat - usually with frameworks like hibernate. You have to increase permgen memory, increasing heap won't help. try -XX:MaxPermSize= or -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled Not really NetBeans related.