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 36394 - Hundreds of JavaFastOpen.Evaluator threads left in VM
Summary: Hundreds of JavaFastOpen.Evaluator threads left in VM
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords: PERFORMANCE
: 44771 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-02 01:59 UTC by Jesse Glick
Modified: 2007-11-05 13:44 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Java code snippet (1021 bytes, text/x-java)
2003-10-02 01:59 UTC, Jesse Glick
Details
Sample output (29.67 KB, text/plain)
2003-10-02 02:02 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2003-10-02 01:59:14 UTC
I am not exactly sure why this is, but JFO.E
threads do not seem to be garbage collected
properly after they die.

Also JCUpdater threads seem to live as zombies.

Try the attached block of code in internal
execution (e.g. paste into Scripting Console under
Dynamic Java). [dev sep 30]
Comment 1 Jesse Glick 2003-10-02 01:59:49 UTC
Created attachment 11767 [details]
Java code snippet
Comment 2 Jesse Glick 2003-10-02 02:02:30 UTC
Created attachment 11768 [details]
Sample output
Comment 3 Jesse Glick 2003-10-02 02:28:08 UTC
Hint: try to avoid creating Thread's you don't plan to ever start()
(as I see is done in some places with SwingUtilities here).
ThreadGroup seems to have a bug about unstarted threads. Just make a
Runnable and post it instead.
Comment 4 Jesse Glick 2003-10-02 23:48:04 UTC
BTW I will escalate:

http://developer.java.sun.com/developer/bugParade/bugs/4533087.html
Comment 5 Miloslav Metelka 2004-01-23 15:20:59 UTC
This appears to be fixed in tiger-beta but we will try to avoid the
threads that never run anyway into 3.6.
Comment 6 Miloslav Metelka 2004-06-14 14:29:48 UTC
*** Issue 44771 has been marked as a duplicate of this issue. ***
Comment 7 Petr Nejedly 2004-06-14 20:21:10 UTC
OK, but please keep the relevant attributes and copy cc-ers.
Not only threads are left but it can also cause moderate memory leak.
Comment 8 Miloslav Metelka 2004-07-20 12:53:20 UTC
Fixed in trunk:
Checking in libsrc/org/netbeans/editor/ext/java/JavaFastOpen.java;
/cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaFastOpen.java,v 
<--  JavaFastOpen.java
new revision: 1.21; previous revision: 1.20
Comment 9 Max Sauer 2005-07-13 16:22:40 UTC
Jesse, could You please verify this issue? Thanks.