Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Netbeans 5.5 java.lang.OutOfMemoryError

Reply
Thread Tools

Netbeans 5.5 java.lang.OutOfMemoryError

 
 
evgchech
Guest
Posts: n/a
 
      12-26-2006
Hello Everybody
I am trying to compile pretty big project using NM 5.5 - SDK 1.4
During compilation the IDE throws Out of memory exception
I have edited the following file
( As explained in :
http://performance.netbeans.org/howt...hes/index.html )

C:\Program Files\netbeans-5.5\etc\netbeans.conf
-----------------------------------------------------------------------
netbeans_default_userdir="${HOME}/.netbeans/5.5"
netbeans_default_options="-J-Xms128m -J-Xmx512m -J-Xverify:none"
netbeans_jdkhome="C:\Java\jdk1.5.0_09"

And still the same exception:
-------------------------------------------
Compiling 2435 source files to
C:\Development\NMS-2.15.05-DLYC\NMS\build
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError
BUILD FAILED (total time: 17 seconds)

P.S
------
I have 1 GB Ram on my system
The strange thing is that Javac fails after allocated 72 MB, in spite
of the fact the system has 400MB ram free.
I have also tried to execute the IDE from CLI using switches :
netbeans.exe -J-Xms32m -J-Xmx1024m

What am i doing wrong here??

 
Reply With Quote
 
 
 
 
Thomas Kellerer
Guest
Posts: n/a
 
      12-26-2006
Hello,

NetBans spawns a new process for compiling, which does not inherit the settings
from the JVM running the IDE.

In the Project Properties, under "Compiling" you can define additional
parameters for the call to javac. Remember that the memory options for javac are
slightly different than for java, so to pass the -Xmx parameter to javac you
need to specify that as -J-Xmx...

Thomas

evgchech wrote on 26.12.2006 16:36:
> Hello Everybody
> I am trying to compile pretty big project using NM 5.5 - SDK 1.4
> During compilation the IDE throws Out of memory exception
> I have edited the following file
> ( As explained in :
> http://performance.netbeans.org/howt...hes/index.html )
>
> C:\Program Files\netbeans-5.5\etc\netbeans.conf
> -----------------------------------------------------------------------
> netbeans_default_userdir="${HOME}/.netbeans/5.5"
> netbeans_default_options="-J-Xms128m -J-Xmx512m -J-Xverify:none"
> netbeans_jdkhome="C:\Java\jdk1.5.0_09"
>
> And still the same exception:
> -------------------------------------------
> Compiling 2435 source files to
> C:\Development\NMS-2.15.05-DLYC\NMS\build
> The system is out of resources.
> Consult the following stack trace for details.
> java.lang.OutOfMemoryError
> BUILD FAILED (total time: 17 seconds)
>
> P.S
> ------
> I have 1 GB Ram on my system
> The strange thing is that Javac fails after allocated 72 MB, in spite
> of the fact the system has 400MB ram free.
> I have also tried to execute the IDE from CLI using switches :
> netbeans.exe -J-Xms32m -J-Xmx1024m
>
> What am i doing wrong here??
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NetBeans : cannot load JVM.dll ? kevinn@backer.com Java 2 09-27-2007 11:11 AM
Eclipse vs. Netbeans. Netbeans is winning me over almost at first glance. Thomas G. Marshall Java 2 10-16-2006 02:54 AM
[NETBEANS] [EVALUATION] - E12 - The NetBeans Open Source Lie Ilias Lazaridis Java 0 12-12-2004 02:41 PM
Building a GUI using NetBeans platform (not Netbeans IDE !) Pimousse Java 2 04-21-2004 07:22 AM
newbie : netbeans IDE - how to get sdk help Walter Mitty Java 1 07-10-2003 11:11 AM



Advertisments