We use OutOfMemoryError to signal several different kinds of out of memory conditions which is confusing to customers. We should have preallocated OutOfMemoryErrors for at the least the following states.
1. General heap full
2. Perm gen full
3. Can't create thread
There may be other cases of this but we should fix these first.
1. General heap full
2. Perm gen full
3. Can't create thread
There may be other cases of this but we should fix these first.
- duplicates
-
JDK-6448886 OutOfMemoryError object should contain a more verbose reason for 1.4.2
- Closed
- relates to
-
JDK-4708390 Running JCK gives java.lang.OutofMemoryError
- Closed