This 3rd party script keeps causing heap memory exceptions: That part of the script, which receives messages through TCP/IP after receiving the message, causes the following exception: Exception in thread “Thread-2” org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.OutOfMemoryError…
Tag: memory
Increasing JRE Memory Usage in Eclipse
I read in another question that you can increase the JRE memory allowance for an app through Window -> Preferences in Eclipse, but I can’t seem to find anything related to heap memory allocation. Editing -xms/xmx values in eclipse.ini doesn’t help since those are for Eclipse itself. Answer I be…
During execution, how can a java program tell how much memory it is using?
During execution, how can a java program tell how much memory it is using? I don’t care how efficient it is! Answer VonC’s answer is an interactive solution – if you want to know programatically, you can use Runtime.totalMemory() to find out the total amount used by the JVM, and Runtime.free…