I have application with settings: -Xmx2048M, -Xms2048M, -XX:MaxPermSize=256M.
Sometimes I get a lot of messages in log:
[Unloading class sun.reflect.GeneratedMethodAccessor9]
[Unloading class sun.reflect.GeneratedMethodAccessor129]
[Unloading class sun.reflect.GeneratedMethodAccessor12]
[Unloading class sun.reflect.GeneratedMethodAccessor11]
[Unloading class sun.reflect.GeneratedMethodAccessor12]
[Unloading class sun.reflect.GeneratedMethodAccessor11]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor29]
[Unloading class sun.reflect.GeneratedSerializationConstructorAccessor25]
and get error:
OutOfMemoryError: Java heap space
After reading this article:
http://anshuiitk.blogspot.com/2010/11/excessive-full-garbage-collection.html
I know, that classes are load in Perm Gen and should occur error:
OutOfMemoryError: PermGen space.
My question, why I have error OutOfMemoryError: Java heap space instead of
OutOfMemoryError: PermGen space?