About 57 results
Open links in new tab
  1. java - What is an OutOfMemoryError and how do I debug and fix it ...

    Feb 3, 2015 · An OutOfMemoryError is an exception thrown by the Java Virtual Machine (JVM) because it needs to allocate memory for a (new) object, but insufficient memory is available for the object.

  2. How to deal with "java.lang.OutOfMemoryError: Java heap space" error?

    Exception in thread thread_name: java.lang.OutOfMemoryError: Java heap space The detail message Java heap space indicates object could not be allocated in the Java heap.

  3. How to handle OutOfMemoryError in Java? - Stack Overflow

    I have to serialize around a million items and I get the following exception when I run my code: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.

  4. How to debug Java OutOfMemory exceptions? - Stack Overflow

    java.lang.OutOfMemoryError: Requested array size exceeds VM limit: Cause: The detail message "Requested array size exceeds VM limit" indicates that the application (or APIs used by that …

  5. out of memory - "java.lang.OutOfMemoryError : unable to create new ...

    May 28, 2013 · But, in general, the situation causing java.lang.OutOfMemoryError: Unable to create new native thread goes through the following phases: A new Java thread is requested by an application …

  6. java.lang.OutOfMemoryError: Java heap space - Stack Overflow

    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 …

  7. Catching java.lang.OutOfMemoryError? - Stack Overflow

    Apr 21, 2010 · Documentation for java.lang.Error says: An Error is a subclass of Throwable that indicates serious problems that a reasonable application should not try to catch But ...

  8. Java - shutting down on Out of Memory Error - Stack Overflow

    Aug 23, 2012 · 38 With version 8u92 there's now a JVM option in the Oracle JDK to make the JVM exit when an OutOfMemoryError occurs: From the release notes: ExitOnOutOfMemoryError - When you …

  9. java - How to solve OutOfMemoryError? - Stack Overflow

    Jan 18, 2012 · Java is always looking to reuse space from objects that you aren't using. If you run out of memory, you either need to use -Xmx to configure for more memory, or you have to fix your code to …

  10. How to identify the issue when Java OutOfMemoryError?

    Aug 27, 2014 · The amount of memory given to Java process is specified at startup. memory divided into separate areas, heap and permgen being the most familiar sub-areas. While you specify the …