Exception in thread "main": java.lang.OutOfMemoryError: Java heap space
The detail message Java heap space indicates that an object could not be allocated in the Java heap. This error does not necessarily imply a memory leak. The problem can be as simple as a configuration issue, where the specified heap size (or the default size, if not specified) is insufficient for the application.
Exception in thread "main": java.lang.OutOfMemoryError: PermGen space
The detail message PermGen space indicates that the permanent generation is full. The permanent generation is the area of the heap where class and method objects are stored. If an application loads a very large number of classes, then the size of the permanent generation might need to be increased using the -XX:MaxPermSize option.
Exception in thread "main": java.lang.OutOfMemoryError: Requested array size exceeds VM limit
Indicates that the application (or APIs used by that application) attempted to allocate an array that is larger than the heap size
Exception in thread "main": java.lang.OutOfMemoryError: request
The HotSpot VM code reports this apparent exception when an allocation from the native heap failed and the native heap might be close to exhaustion. The message indicates the size (in bytes) of the request that failed and the reason for the memory request. In most cases the
The problem might not be related to the application, for example:
· The operating system is configured with insufficient swap space
· Another process on the system is consuming all memory resources
Or
· It is possible that the application failed due to a native leak, for example, if application or library code is continuously allocating memory but is not releasing it to the operating system
Exception in thread "main": java.lang.OutOfMemoryError:
If the detail part of the error message is
No comments:
Post a Comment