If you want to increase your heap space, you can use java -Xms<initial heap size> -Xmx<maximum heap size> on the command line. By default, the values are based on the JRE version and system configuration. You can find out more about the VM options on the Java website. However, I would recommend profiling your application to find out why your heap size is being eaten. NetBeans has a very good ...
The user can open unlimited number of files, and the program keeps the opened objects in the memory. After a quick research I found Ergonomics in the 5.0 Java Virtual Machine and others saying on Windows machine the JVM defaults max heap size as 64MB. Given this situation, how should I deal with this constraint?
Heap space issue comes when you have loaded some heavy file into the JVM while trying to process it. For example, if you have loaded a large log file containing up to 1 GB of data, then java.lang.OutOfMemoryError: Java heap space issue will come. In case you have a specific requirement where you wish to process large files in Java then try to follow this link As it mentions: How to solve java ...
Solución práctica: aumenta la memoria. Si el problema persiste: no utilices el método SerializationUtils#clone, busca una forma de realizar la copia profunda (deep copy) del objeto. en cuestión. Al parecer es un objeto muy pesado en memoria. Si el objeto no tiene muchos campos, te recomiendo crear un constructor de copia manual. Si es muy pesado, te recomiendo crear el constructor de copia ...
The thread java.lang.Thread @ 0x27ee0478 main keeps local variables with total size 69,668,888 (98.76%) bytes. The memory is accumulated in one instance of "char []" loaded by "<system class loader>"**
The java.lang.OutOfMemoryError means that you have exceeded the memory allocated by the JVM. Use the -Xmx to change the maximum memory heap size of your JVM. (thank you Software Monkey)