What are best settings for -XX:MaxPermSize=

I have a large app and every time it tries to recompile the app while the server is running it runs out of perm space.

I've tried 512, but it had no impact.

I'm running version 9 on Windows.

4 comments
Comment actions Permalink

Hello Andrew,

Are you sure that IntelliJ itself runs out of permgen space, not your appserver
or the Java compiler process?

I have a large app and every time it tries to recompile the app while
the server is running it runs out of perm space.

I've tried 512, but it had no impact.

I'm running version 9 on Windows.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

it's the app server's problem. i don't know the reason, but redeploying my tomcat (even when the app is small) sooner or later leads to "out of perm space"

0
Comment actions Permalink

I guess it could be the app server in this case.  I've had other issues where the IDE hangs a lot just doing simple editing.  So I thought that perhaps they were related.

0
Comment actions Permalink

HamsterofDeath wrote:

it's the app server's problem. i don't know the reason, but redeploying my tomcat (even when the app is small) sooner or later leads to "out of perm space"

I've encountered this on Resin when using Hibernate.  Hot deploys
eventually eat up all available permgen space.  I typically use 256m,
and bounce app server every 3-6 deploys.

HTH,
Daniel.

0

Please sign in to leave a comment.