xvhfeng / run-jetty-run

Automatically exported from code.google.com/p/run-jetty-run
0 stars 0 forks source link

change default MexPermSize to 128m #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ubuntu user complain that can't close RunJettyRun by stop button , 
after their server got a pergem error .

Maybe have to introduce how to kill it or provide a better way to handle it. 
(It's hard...)

Original issue reported on code.google.com by tonylovejava on 18 May 2011 at 12:52

GoogleCodeExporter commented 9 years ago
I think it's hard to change the pergem issue in Ubuntu , 
we will handle it in another way.

Since the default pergem size is not big enough for "MODERN" web application,
why not we just make it higher. (from 32mb to 64mb? or something like that.)

Since I don't think the memory for developer is a issue. 

So we are going to set a higher default pergem size,
but of course , if user define it in VM arguments , it should use user's 
config. ;)

Original comment by tonylovejava on 29 Jun 2011 at 7:49

GoogleCodeExporter commented 9 years ago

Original comment by tonylovejava on 30 Jun 2011 at 1:32

GoogleCodeExporter commented 9 years ago
-XX:MaxPermSize=64m

Original comment by tonylovejava on 30 Jun 2011 at 6:35

GoogleCodeExporter commented 9 years ago
Ready since 2011/7/6 , committed in r213.

We simply just add a -XX:MaxPermSize=128m on the vm argument before you run it ,
if user set their own XX:MaxPermSize , we will do nothing and let user to 
handle it.

If you want to set as default as 1.2.2 is , you could add -XX:MaxPermSize=64m 
at VM argument section.

Reference 
http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

Original comment by tonylovejava on 6 Jul 2011 at 10:06