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 147272 - OutOfMemoryError while building o.jruby
Summary: OutOfMemoryError while building o.jruby
Status: VERIFIED DUPLICATE of bug 149371
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-15 14:18 UTC by Jiri Skrivanek
Modified: 2009-02-19 23:01 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace. (1.55 KB, text/plain)
2008-09-15 14:20 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2008-09-15 14:18:23 UTC
I always get OutOfMemoryError while trying to build NetBeans IDE. It is in o.jruby. Also it is strange that it always
deletes and unpack some ruby files. Could you please look at it?
Comment 1 Jiri Skrivanek 2008-09-15 14:20:21 UTC
Created attachment 69870 [details]
Stack trace.
Comment 2 Martin Krauskopf 2008-09-15 14:33:06 UTC
Did you set ANT_OPTS to -Xmx256M or more? Did it help?
Comment 3 Jiri Skrivanek 2008-09-15 14:41:00 UTC
No, even -Xmx768m didn't help.
Comment 4 Martin Krauskopf 2008-09-15 14:45:56 UTC
Tor, have you ever seen this? If not, likely whole Ant output could help, at least the part which preceded the exception
to see what is the culprit.
Comment 5 Jiri Skrivanek 2008-09-15 15:25:33 UTC
From nbdev thread "javac throws OutOfMemoryError when compiling o.jruby" I got this advice

http://wiki.netbeans.org/WorkingWithNetBeansSources#section-WorkingWithNetBeansSources-MachineConfig

It helps. But it would be better to modify the ruby build script somehow to not force users to set this extra parameter.
Also repeated deleting/expanding issue persists.
Comment 6 Lukas Hasik 2008-09-15 16:13:00 UTC
this issue started last week for me. It seems to be fixed by the option that Jirka mentioned but if this is the only way
then it is really offensive. 
Comment 7 Torbjorn Norbye 2008-09-15 16:40:50 UTC
JRuby didn't change last week. The entire codebase is gradually growing so the requirements have gone up a bit and since
the JRuby portion of the build requires a lot of memory it could be affected by increased memory requirements earlier in
the build. It used to be we could build the whole codebase without any extra ant memory settings.

Does anyone who knows ant well want to take a stab at auto-setting those two parameters?
Comment 8 Torbjorn Norbye 2008-09-22 16:56:26 UTC
I'm not sure how to fix it (and fixing it doesn't seem to be a high enough priority given other open issues)
Comment 9 Martin Krauskopf 2008-11-10 12:52:49 UTC
Was solved in issue 149371.

*** This issue has been marked as a duplicate of 149371 ***
Comment 10 Jiri Skrivanek 2008-11-10 16:09:38 UTC
Verified.