Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2006

Tip: Looking for answers? Try searching our database.

Netbeans 5.5 java.lang.OutOfMemoryError

Thread view: 
evgchech - 26 Dec 2006 15:36 GMT
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/howto/jvmswitches/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??
Thomas Kellerer - 26 Dec 2006 18:49 GMT
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
[quoted text clipped - 27 lines]
>
> What am i doing wrong here??


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.