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 183888 - [69cat] OutOfMemoryError
Summary: [69cat] OutOfMemoryError
Status: RESOLVED DUPLICATE of bug 184186
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-12 11:25 UTC by stefan79
Modified: 2010-04-19 15:43 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The Log-File at this Exception (396.86 KB, application/octet-stream)
2010-04-12 11:35 UTC, stefan79
Details
Snapshot (48 seconds) (55.97 KB, application/octet-stream)
2010-04-14 16:15 UTC, stefan79
Details
An second Snapshot (81.82 KB, application/octet-stream)
2010-04-14 16:38 UTC, stefan79
Details
Message-log + Thread-Dumps while NB was locked. (63.13 KB, application/octet-stream)
2010-04-16 13:54 UTC, stefan79
Details
Logfile (249.70 KB, text/plain)
2010-04-19 07:21 UTC, stefan79
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2010-04-12 11:25:35 UTC
[ BUILD # : 201004120251 ]
[ JDK VERSION : 1.6.* ]

-) Started NetBeans
-) Started "Take a Snapshot"
-) After completing the Initialscanning, I stopped profiling
-) After that the OutOfMemoryError occured

Dump-File is available at: http://www.MegaShare.com/1990367
Comment 1 stefan79 2010-04-12 11:35:39 UTC
Created attachment 97074 [details]
The Log-File at this Exception
Comment 2 stefan79 2010-04-13 09:12:33 UTC
Over night I tried the following:
-) Deleted my Cache-Directory (NetBeans-Userdir)
-) Started NetBeans
-) Started "Take a Snapshot"
Today morning, I got the OOE again.

HeapDump: http://www.MegaShare.com/1993712
Comment 3 stefan79 2010-04-13 11:30:43 UTC
Tested again with -Xmx950m (can give more, it´s a 32bit system.

Heapdump + Message.log is available at http://www.MegaShare.com/1994002
Comment 4 Peter Pis 2010-04-14 14:37:49 UTC
Thanks for the report, but could you please create new snapshot that would contain less samples? To achieve this please take a snapshot for 5-6 mins.
Comment 5 stefan79 2010-04-14 16:15:33 UTC
Created attachment 97372 [details]
Snapshot (48 seconds)

It´s not so easy as you think (->Bug #184186).

I hope you can use this nps.
Comment 6 stefan79 2010-04-14 16:38:54 UTC
Created attachment 97376 [details]
An second Snapshot
Comment 7 Tomas Pavek 2010-04-14 17:05:37 UTC
The heap dumps look like issue 183832. However, the steps to reproduce do not match (you don't seem to use the IDE for long time and did not use editor, right?). Anyway, probably would be best to wait for fix of 183832 be integrated - can you please check if you get the OOME then? Thanks.
Comment 8 stefan79 2010-04-14 17:19:59 UTC
(In reply to comment #7)
> The heap dumps look like issue 183832. However, the steps to reproduce do not
> match (you don't seem to use the IDE for long time and did not use editor,
> right?).
Yes. I make nothing (only starting and profiling).

> Anyway, probably would be best to wait for fix of 183832 be integrated
> - can you please check if you get the OOME then? Thanks.
Should I set then the property "-J-Dorg.netbeans.modules.editor.completion.CompletionImplProfile.level=ALL"?
Comment 9 Tomas Pavek 2010-04-16 08:39:26 UTC
You may set the switch, though if there are still problems they may be caused by something else then the CC profiling. Thanks.

BTW the fix of bug 183832 is already in daily builds since 201004150201.
Comment 10 stefan79 2010-04-16 12:20:24 UTC
Tested a build 201004160201.
It works fine.

Thanks!
Comment 11 stefan79 2010-04-16 13:52:37 UTC
Reopened. I forgot to stop the Snapshot.

-) Started NetBeans
-) Started "Take a Snapshot.."
-) After completing the Initialscanning, I stopped profiling
-) Then the IDE was locked (No Window-response) for about 30 minutes(!).
-) After that the OutOfMemoryError occured

Heapdump is available at http://www.MegaShare.com/2016294
Comment 12 stefan79 2010-04-16 13:54:23 UTC
Created attachment 97531 [details]
Message-log + Thread-Dumps while NB was locked.

-) Message.log
-) Thread-Dumps while NB was locked (Thread-Dump, from jvisualvm)
Comment 13 stefan79 2010-04-19 07:21:23 UTC
Created attachment 97589 [details]
Logfile

Tested again at current build (201004190200).

OOE occured again. Dumpfile: http://www.MegaShare.com/2026003
-Dorg.netbeans.modules.editor.completion.CompletionImplProfile.level=ALL was set.
Comment 14 Tomas Pavek 2010-04-19 15:43:45 UTC
Ok, so this is now the same thing as bug 184186 or bug 183993. The new way the self-profiling snapshots are created and saved is more CPU and memory demanding. Finishing the snapshots takes longer and may lead to OutOfMemoryError. We need to do some fixes/optimizations here.

Tomas Hurka said he would also look at the possibility to recover the original self-profiling that was more efficient - if profiler is available in the IDE (the new way does not need profiler at all, so self-profiling can work in Ruby or PHP IDE or in any NB platform application).

*** This bug has been marked as a duplicate of bug 184186 ***