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 186757 - netbeans hangs at 100% cpu usage when left idle overnight
Summary: netbeans hangs at 100% cpu usage when left idle overnight
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: All Linux
: P2 normal with 3 votes (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 17:07 UTC by lytles
Modified: 2011-05-30 17:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack dump at 100% cpu hang (13.70 KB, text/plain)
2010-05-26 17:08 UTC, lytles
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lytles 2010-05-26 17:07:26 UTC
i code in netbeans most days for about 14 hours each day, with breaks of several hours at times. occasionally the cache gets corrupted, and i need to quit, remove the cache and restart. but for the most part, it runs fine

at night, i leave the machine running, but everything is idle. most nights, everything is ok. but occasionally, when i come back in the morning, netbeans' cpu usage is pegged at 100% (one cpu only, it's 2-core) according to top. if i switch to the process, it is unresponsive (typically, it attempts to redraw, get's about halfway "down" the screen, and then hangs). i have to kill -9 the process. after a restart, everything is ok. while netbeans is hung, the system monitor doesn't show any disk or network activity. 

today, i did a stack dump by doing kill -QUIT (attached). then i still needed to do kill -9 to end the process. the overnight hang/100% cpu occurs on average about once every week or two. and it hasn't ever happened during the day while i'm coding

the cooling system for many computers (most laptops?) aren't designed for longterm heavy (100% cpu) usage. so this bug has the potential to do some harm to a computer

http://netbeans.org/bugzilla/show_bug.cgi?id=185265
this bug appears to be similar, but it looks like that one is happening while he is using it. i've never had this happen in perhaps 1000 hours that i've been using 6.8 - statistically significant enough that i think this must be a different issue
Comment 1 lytles 2010-05-26 17:08:19 UTC
Created attachment 99501 [details]
stack dump at 100% cpu hang

stack dump that didn't attach properly in the bug creation
Comment 2 Peter Pis 2010-05-27 08:21:36 UTC
Please evaluate.
Comment 3 jag 2010-08-06 17:20:50 UTC
I'm seeing this behavior in 6.9.  NetBeans is unusable when I start work the next morning after leaving it running overnight.  The one data point I can add that might be interesting is that the status message at the bottom of the window usually (always???) says "Checking for external changes" (I may be remembering the message incorrectly)
Comment 4 Antonin Nebuzelsky 2011-05-30 12:07:16 UTC
Jag, can you verify with 7.0 that this problem is fixed? If not, please reopen.
Comment 5 jag 2011-05-30 17:04:43 UTC
As near as I can tell, it's fixed.  I've been using NetBeans 7 for long intensive periods of time and it's been rock solid.  No crazy hangs.  A thing of beauty!  Thanks!