geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r954189 - /geronimo/server/trunk/framework/buildsupport/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/StartServerMojo.java
Date Sun, 13 Jun 2010 09:22:53 GMT
Author: genspring
Date: Sun Jun 13 09:22:53 2010
New Revision: 954189

URL: http://svn.apache.org/viewvc?rev=954189&view=rev
Log:
GERONIMO-5382  Enable the max permsize configuration in geronimo-maven-plugin

Modified:
    geronimo/server/trunk/framework/buildsupport/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/StartServerMojo.java

Modified: geronimo/server/trunk/framework/buildsupport/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/StartServerMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/buildsupport/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/StartServerMojo.java?rev=954189&r1=954188&r2=954189&view=diff
==============================================================================
--- geronimo/server/trunk/framework/buildsupport/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/StartServerMojo.java
(original)
+++ geronimo/server/trunk/framework/buildsupport/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/StartServerMojo.java
Sun Jun 13 09:22:53 2010
@@ -77,6 +77,13 @@ public class StartServerMojo
      * @parameter expression="${maximumMemory}"
      */
     private String maximumMemory = null;
+
+    /**
+     * Set the maximum permsize for the forked JVM.
+     *
+     * @parameter expression="${maxPermSize}"
+     */
+    private String maxPermSize = null;
     
     /**
      * The location of the Java Virtual Machine executable to launch the server with.
@@ -193,6 +200,12 @@ public class StartServerMojo
         if (maximumMemory != null) {
             java.setMaxmemory(maximumMemory);
         }
+        
+        if (maxPermSize !=null){    
+            java.createJvmarg().setValue("-XX:MaxPermSize="+maxPermSize);         
+        } else {           
+            java.createJvmarg().setValue("-XX:MaxPermSize=128m");    
+        }
 
         // Load the Java programming language agent for JPA
         File javaAgentJar = new File(geronimoHome, "lib/agent/transformer.jar");



Mime
View raw message