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 214821 - OutOfMemory Exception when IDE idle. (resubmit for report 204318)
Summary: OutOfMemory Exception when IDE idle. (resubmit for report 204318)
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL: http://netbeans.org/projects/profiler...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-26 18:33 UTC by rfmoorejr
Modified: 2012-07-09 14:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NB created log (113.01 KB, text/plain)
2012-06-26 18:33 UTC, rfmoorejr
Details
jmap produed histogram (644.76 KB, text/plain)
2012-06-26 18:35 UTC, rfmoorejr
Details
jmap produced heap report (1.46 KB, text/plain)
2012-06-26 18:36 UTC, rfmoorejr
Details
NB produced UI Gestures file (336.87 KB, text/plain)
2012-06-26 18:37 UTC, rfmoorejr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rfmoorejr 2012-06-26 18:33:28 UTC
Created attachment 121403 [details]
NB created log

This is another occurrence of the OutOfMemory Exception problem reported in 204318.
As usual, the IDE had been idle for some hours with one open project: a combination of JavaFX and Spring. The editor was up but application was not running. Right after exception, Taskinfo reported that NB had 590MB in real memory  and a total memory of about 950MB. The total free system  memory was about 1.6 GB.
I used jmap to create both a heap dump and a heap histogram (attached), zipped up the heapdump.hprof into a 40.5KB file, and preserved the messages.log and uigestures file.
My main problem right now is transmitting the large heapdump to you. The reporting site only takes about 16kb before stopping the upload. Please tell be how to sending this (email attachment, ftp, etc.).
Comment 1 rfmoorejr 2012-06-26 18:35:15 UTC
Created attachment 121404 [details]
jmap produed histogram
Comment 2 rfmoorejr 2012-06-26 18:36:01 UTC
Created attachment 121405 [details]
jmap produced heap report
Comment 3 rfmoorejr 2012-06-26 18:37:50 UTC
Created attachment 121406 [details]
NB produced UI Gestures file
Comment 4 Tomas Danek 2012-06-27 13:21:13 UTC
passing to performance
Comment 5 Petr Cyhelsky 2012-06-27 14:14:28 UTC
Please provide heap dump. It should be at C:\Users\RFM\AppData\Roaming\NetBeans\7.2beta\var\log\heapdump.hprof 
You can upload it using http://deadlock.netbeans.org/hudson/job/upload/build
Comment 6 rfmoorejr 2012-06-28 16:36:38 UTC
heapdump.zip uploaded to Hudson on 6/27. Name [Bug 204318]. Console:

Started by user anonymous
Building remotely on upload-node
Copying file to ./heap_dump
[upload] $ /bin/sh -xe /tmp/hudson1456115202818303902.sh
+ mv heap_dump heap_dump.zip
+ set +e
+ zip -qT heap_dump.zip
+ ERROR_CODE=0
+ set -e
+ '[' 0 '!=' 0 ']'
++ cut -d ' ' -f1
++ md5sum heap_dump.zip
+ MD5PRINT=b2cda8a5800858d503a8b11253a3e642
+ mv heap_dump.zip NoName_2012-06-02_14-37-29_b2cda8a5800858d503a8b11253a3e642.zip
[DEBUG] Skipping watched dependency update; build not configured with trigger: upload #37
Finished: SUCCESS
Comment 7 Tomas Hurka 2012-06-29 12:57:50 UTC
(In reply to comment #6)
> heapdump.zip uploaded to Hudson on 6/27. Name [Bug 204318]. Console:
> 
> Started by user anonymous
> Building remotely on upload-node
> Copying file to ./heap_dump
> [upload] $ /bin/sh -xe /tmp/hudson1456115202818303902.sh
> + mv heap_dump heap_dump.zip
> + set +e
> + zip -qT heap_dump.zip
> + ERROR_CODE=0
> + set -e
> + '[' 0 '!=' 0 ']'
> ++ cut -d ' ' -f1
> ++ md5sum heap_dump.zip
> + MD5PRINT=b2cda8a5800858d503a8b11253a3e642
> + mv heap_dump.zip
> NoName_2012-06-02_14-37-29_b2cda8a5800858d503a8b11253a3e642.zip
> [DEBUG] Skipping watched dependency update; build not configured with trigger:
> upload #37
> Finished: SUCCESS

the log shows that the heap dump was uploaded on 2/Jun/2012 and the name was 'NoName'. This cannot be your heap dump. Can you, please, try it once more. Thanks.
Comment 8 rfmoorejr 2012-06-29 19:50:10 UTC
Hudson # 39 upload of heapdump complete on jun 29 19:33UTC. 
Name is 214821. File name was HeapDump.zip (40,501kB)
Latest console after upload:
Started by user anonymous
Building remotely on upload-node
Copying file to ./heap_dump
[upload] $ /bin/sh -xe /tmp/hudson7912425741173278780.sh
+ mv heap_dump heap_dump.zip
+ set +e
+ zip -qT heap_dump.zip
+ ERROR_CODE=0
+ set -e
+ '[' 0 '!=' 0 ']'
++ md5sum heap_dump.zip
++ cut -d ' ' -f1
+ MD5PRINT=1e18ad70660abb8a220c8c5b3267107c
+ mv heap_dump.zip 214821_2012-06-29_19-33-20_1e18ad70660abb8a220c8c5b3267107c.zip
[DEBUG] Skipping watched dependency update; build not configured with trigger: upload #39
Finished: SUCCESS
Comment 9 Tomas Hurka 2012-06-29 19:56:37 UTC
Ok, this time the heap dump was uploaded successfully. Thanks.
Comment 10 Tomas Hurka 2012-07-09 11:06:39 UTC
Heap dump is now available at  <http://netbeans.org/projects/profiler/downloads/download/Heapdumps/heapdump-214821.hprof.gz>
Comment 11 Tomas Hurka 2012-07-09 14:46:56 UTC
This OOME is caused by a memory leak in Swing code in JDK. See JDK bug #6990010 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6990010