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 221357

Summary: OutOfMemoryError after Building projects
Product: java Reporter: stefan79 <stefan79>
Component: SourceAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal CC: mmirilovic, tzezula
Priority: P2    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 221359    
Attachments: Log-File.
Compiler-Output
Log-File.
Log-File after restarting (OOME occured again)

Description stefan79 2012-11-02 14:20:42 UTC
[ BUILD # : 201211020001 ]
[ JDK VERSION : 1.7.7 ]

Today I pressed at the "Build Project" - button.
After about 15 minutes, this ends in an OutOfMemoryError and the IDE was
unresponsable.
I tried to make Thread - Dump, but jvisualvm doesn´t shows the IDE.


Compiler-Log is showing that the copy-Action has finished.
Comment 1 stefan79 2012-11-02 14:21:01 UTC
Created attachment 127020 [details]
Log-File.
Comment 2 stefan79 2012-11-02 14:21:32 UTC
Created attachment 127021 [details]
Compiler-Output
Comment 3 stefan79 2012-11-02 14:52:59 UTC
Dump was uploaded to hudson.
-> http://deadlock.netbeans.org/hudson/job/upload/86/
Comment 4 Tomas Hurka 2012-11-05 10:37:23 UTC
It looks like checking for LowMemory does not work well.
Comment 5 Tomas Hurka 2012-11-05 10:38:17 UTC
Heap dump available on request.
Comment 6 Tomas Zezula 2012-11-05 15:37:27 UTC
Added logging jet-main 406bbad27b82.
Seems a problem with MemoryMXBean.
Please can you run the IDE with -J-Dorg.netbeans.modules.parsing.lucene.support.LowMemoryWatcher.level=FINEST option and retry to reproduce the problem?
You will need a build containing the changeset 406bbad27b82.
Thanks!
Comment 7 Quality Engineering 2012-11-06 03:11:08 UTC
Integrated into 'main-golden', will be available in build *201211060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/406bbad27b82
User: Tomas Zezula <tzezula@netbeans.org>
Log: #221357:OutOfMemoryError after Building projects
Comment 8 Tomas Zezula 2012-11-06 18:57:32 UTC
Please attach the log with the -J-Dorg.netbeans.modules.parsing.lucene.support.LowMemoryWatcher.level=FINEST and reopen then.
Comment 9 stefan79 2012-11-12 15:02:26 UTC
Created attachment 127637 [details]
Log-File.

OutOfMemoryError occured again at current build (201211120001).
LowMemoryWatcher was activated.

I´ll upload the Dump to hudson.
Comment 10 stefan79 2012-11-12 15:22:39 UTC
Dump is available at hudson:
http://deadlock.netbeans.org/hudson/job/upload/99/
Comment 11 Tomas Zezula 2012-11-12 18:34:52 UTC
Seems very strange as right before OOM there were nearly 300MB of free space:
 Max memory: 1.908.932.608, Used memory: 1.617.979.552,
Comment 12 stefan79 2012-11-13 09:36:22 UTC
Created attachment 127686 [details]
Log-File after restarting (OOME occured again)

Yesterday this was the same story:
-) I refreshed some source files (update CVS)
-) NB started Background-Scanning -> OOME occured
-) I restarted NB -> OOME occured again
-) I restarted NB -> OOME occured again
-) I cleared the Cache-Directory and startet NetBeans again -> It works
Comment 13 Jan Lahoda 2012-11-14 13:06:05 UTC
Tomas, you are looking into this, right?
Comment 14 Tomas Zezula 2012-11-20 22:11:28 UTC
Restored the behaviour of LowMemoryWatch not to cross the CMS stop the world limit.
jet-main fdbf73f77a1d