Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
10.0 (99.18)
State
Fixed
Assignee
Nikolay Chashnikov
Subsystem
J2EE.Tomcat
Affected versions
No Affected versions
Fixed in build
98.484  
  • Created by   Yannick Menager
    3 years ago (20 Jan 2009 18:19)
  • Updated by   Nikolay Chashnikov
    14 months ago (29 Nov 2010 16:22)
  • Jira: IDEADEV-34234
    (history, comments)
 
IDEA-47468 idea unable to kill stuck tomcat process
1
Issue is visible to: All Users
  The issue is visible to the selected user group only
On linux, when the tomcat process gets stuck, idea is unable to kill it

For example when there's a PermGen leak, after reloading a webapp a number of times, it will throw a Java.lang.OutOfMemoryError: PermGen space, and the process will be completely stuck, so the only way to fix the problem is to manually kill it ( kill -9 that is ) from the command line.

This is real annoying since in some cases there's such permgen leaks cannot be avoided (when using AspectJ runtime weaving for example)

I was under the impression there was a 'kill process' button (skull icon) in addition to the normal stop (cross), but i haven't seen it in a long time (maybe it's windows only?)

Environment: Linux (Ubuntu 8.10)
Comments (5)
 
History
 
Linked Issues (?)
 
Eugene Zhuravlev
  Eugene Zhuravlev
20 Jan 2009 19:41
3 years ago
Using java API is not possible to kill the process "reliably". The "kill process" button was implemented using debug API and was available only when you debugged the application. Currently its functionality is available as a part of the "stop" button (like it was before) so the skull button was made redundant.
Yannick Menager
  Yannick Menager
21 Jan 2009 03:01
3 years ago
But the 'stop' button doesn't seem to kill stuck processes, even when run in debug mode, is it supposed to, or there is just no way to kill it ?
Nikolay Chashnikov
  Nikolay Chashnikov
23 Jan 2009 18:24
3 years ago
Currently "Stop" button for Tomcat configuration runs the shutdown script so if the tomcat process gets stuck it won't be killed. I think we will fix the problem in the following way: after pressing 'Stop' button IDEA will wait for 10-20 seconds and if the server process is still alive IDEA will try to kill it by destroying the process or by using debug API.
Yannick Menager
  Yannick Menager
27 Jan 2009 04:20
3 years ago
That sounds better, but could you please add the ability to force the kill before the the timeout.

For example the 'Stop' button instead of graying out could change to a 'force' kill mode that could be clicked again to immediately kill it, rather than having to wait 10-20sec when you already know it's not going to work (like when the server blew up with a PermGen exception for example)
Nikolay Chashnikov
  Nikolay Chashnikov
29 Nov 2010 16:22
14 months ago
I restored 'Kill process' action for application servers. It works via debug API in debug mode and destroys the process in 'Run' mode. So I think this problem is fixed.
Related Changes
Resolved Date
14 months ago (29 Nov 2010 16:22)
Fix versions
10.0 (99.18)
State
OpenFixed
Assignee
Nikolay Chashnikov (nik)Nikolay Chashnikov
Subsystem
<lost change>J2EE.Tomcat
Fixed in build
No Fixed in build98.484