Tuesday, 5 February 2008

java.lang.OutOfMemoryError: PermGen space

Recently we've been getting this OutOfMemory error on our development system at work. We've been jumping up and down trying to figure out what is wrong, but we could not, until we came across this article explaining how JVM allocates memory space.
It turns out that the default Permanent Generation memory is 64K, which is definitely not enough! We then increased the size by adding -XX:PermSize="newSize"m and everything went back to normal.
blog comments powered by Disqus
Share |