You set the heap size to the jvm when running not when compiling. Set the size fo the java command not javac command
You can visit :
you can increase the JVM heap size, see discussion
java -Xms<some_min_size> -Xmx<some_max_size>
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size
-Xss<size> set java thread stack size
you need to set an initial heap size to the value that you want to support apart from the initial heap size.
Regards
but the problem may still occure
could you use a double buffer? be filling one buffer which another thread is writing the other buffer - you can then test to see if first buffer is full before the second is writen - if so you can think about solving that problem, e.g. may need faster machine, faster disk, bigger disk cache?
Visit:
http://www.thescripts.com/forum/thread585847.html