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.

Bug 177565 - Tomcat went dead frequently
Summary: Tomcat went dead frequently
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-25 02:57 UTC by hantsy
Modified: 2009-11-26 04:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
cpu (87.12 KB, image/png)
2009-11-25 04:57 UTC, hantsy
Details
process (103.51 KB, image/png)
2009-11-25 04:58 UTC, hantsy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hantsy 2009-11-25 02:57:46 UTC
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.
Comment 1 hantsy 2009-11-25 03:56:03 UTC
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.
Comment 2 hantsy 2009-11-25 04:57:42 UTC
Created attachment 91661 [details]
cpu
Comment 3 hantsy 2009-11-25 04:58:34 UTC
Created attachment 91662 [details]
process
Comment 4 Petr Hejl 2009-11-26 04:25:42 UTC
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.