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 165205 - out of memory error
Summary: out of memory error
Status: RESOLVED DUPLICATE of bug 162133
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-14 18:18 UTC by rkamradt
Modified: 2009-05-28 12:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (55.23 KB, text/plain)
2009-05-14 18:19 UTC, rkamradt
Details
dump file (42.23 KB, text/plain)
2009-05-14 18:20 UTC, rkamradt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rkamradt 2009-05-14 18:18:39 UTC
Receive out of memory error during project scan of Maven project.  This project opens in netbeans 6.5.  Attached is log
an dump
Comment 1 rkamradt 2009-05-14 18:19:56 UTC
Created attachment 82151 [details]
messages.log
Comment 2 rkamradt 2009-05-14 18:20:34 UTC
Created attachment 82152 [details]
dump file
Comment 3 Rastislav Komara 2009-05-18 11:42:35 UTC
@vstejskal: I'm not sure, but it looks like problem during scanning. Maybe we are not able to utilize memory usage more
and it just happens.

@reporter: Please increase maximal available memory -Xmx to higher. It can help.
Comment 4 Vitezslav Stejskal 2009-05-18 12:23:01 UTC
Do you have a heapdump? If not could you please change your IDE so that it generates one when OOME happens next time and
then upload the heap dump to editor.netbeans.org? http://wiki.netbeans.org/FaqMemoryDump
Thanks
Comment 5 rkamradt 2009-05-22 17:05:08 UTC
I have a heapdump file, how do I upload it to editor.netbeans.org?
Comment 6 rkamradt 2009-05-22 20:42:36 UTC
I upped Xmx to 1024M and that solve the problem with one project, however during project scanning the memory goes as
high as 800M.  That is with a single set of projects open, and I used to work with up to 4 sets of projects at once in 6.5.
Comment 7 rkamradt 2009-05-23 00:11:23 UTC
Eventually even at Xmx1024 it ran out of memory.
Comment 8 Vitezslav Stejskal 2009-05-25 11:51:00 UTC
"how do I upload it to editor.netbeans.org?" - Go to http://editor.netbeans.org, in the right hand side menu click
'Files' and then 'Add new file'. This will let you upload the heapdump. Please give it some meaningful name. Thanks
Comment 9 rkamradt 2009-05-26 15:11:03 UTC
The heapdump is 464M, bigger than the file limit at editor.netbeans.org.  Is there a way to reduce the size?
Comment 10 Vitezslav Stejskal 2009-05-27 09:23:48 UTC
Can you somehow split it to two/more parts and upload them separately? I think for example 7zip allows creating archives
of specific size and it's available on both Win and Linux (among others). Thanks
Comment 11 rkamradt 2009-05-27 15:18:39 UTC
I assumed that it wouldn't compress well, as it turns out zipping it reduced it to < 100M  It's uploaded
Comment 12 Vitezslav Stejskal 2009-05-27 17:17:10 UTC
Thanks!
Comment 13 Dusan Balek 2009-05-28 12:56:08 UTC
There are 282 instances of the javac compiler (as can be seen from the uploaded heapdump). Looks like an incarnation
of #162133, which should be fixed in the current dev build.

*** This issue has been marked as a duplicate of 162133 ***