Java OutOfMemory Example


/ Published in: Java
Save to your folder(s)

This java code, when executed, throws OOM error.

Java Console:
...
Exception in thread "main" java.lang.OutOfMemoryError
...

Heapdump Data:
...
1STHEAPFREE Bytes of Heap Space Free: 0
1STHEAPALLOC Bytes of Heap Space Allocated: 66666600
...

URL: http://www.javacodegeeks.com/2013/08/understanding-the-outofmemoryerror.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.