Eager to Code, Enjoy to Debug ~ Embark into Each Stage with Your Heart

Archive for the ‘NetBeans’ Category

Increase the JVM Memory Settings in NetBeans

Posted by: Chyne on: February 20, 2009

I encountered the following build errors when I compiled the source codes in the NetBeans:-

The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space


more


BUILD FAILED (total time: 1 minute 50 seconds)

1. Access the etc/netbeans.conf in <NetBeans installation path>
2. Default settings:-

netbeans_default_options=”-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true”

3. Change to:-

netbeans_default_options=”-J-client -J-Xss2m -J-Xms96m [...]


Friday’s Java Snack


In Java, "thread" means:

  • An instance of class java.lang.Thread
  • A thread of execution


An instance of Thread is just an object that has variables and methods, and lives and dies on the heap.
 
A thread of execution is an individual process that has its own call stack (one thread per call stack).

 

November 2009
M T W T F S S
« Oct    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Archives


StatCounter

free hit counters