2 Replies Latest reply on Apr 22, 2009 2:54 PM by Pragun Mehta

    JVM tuning with Seam and JBDS

    Arbi Sookazian Master

      what is the recommended min/max JVM tuning settings when running Sun 1.5 JDK with JBDS 2.0 and Seam 2.x?


      need to know for Eclipse and JBoss JVMs (both plz)?


      3 GB Windows OS...

        • 1. Re: JVM tuning with Seam and JBDS
          Arbi Sookazian Master

          Ok, here's what I have right now as VM args in my JBoss edit config:


          -server
          -Xms256m 
          -Xmx1024m 
          -Dsun.rmi.dgc.client.gcInterval=3600000 
          -Dsun.rmi.dgc.server.gcInterval=3600000 
          -XX:+UseConcMarkSweepGC 
          -XX:+CMSPermGenSweepingEnabled 
          -XX:+CMSClassUnloadingEnabled 
          -XX:MaxPermSize=512m 
          -Xverify:none

               


          this is based on recommendation in DAllen's book                     


          and this is from my eclipse.ini:


          -framework
          plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
          -vmargs
          -Xms512m
          -Xmx512m
          -XX:MaxPermSize=256m
          -Dosgi.bundles=reference:file:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1:start,org.eclipse.equinox.transforms.xslt@1:start,org.jboss.tools.equinox.transforms.xslt@1:start
          

                                                                                                                             

          • 2. Re: JVM tuning with Seam and JBDS
            Pragun Mehta Newbie
            My developement environment, I starts my JBoss5.0.0 server from Eclipse3.4.1 on WindowXP-4GBRAM

            (1) Eclipse shortcut
            C:\java\eclipse3.4.1\eclipse.exe -clean -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m

            (2) eclipse.ini
            --launcher.XXMaxPermSize
            256M
            -framework
            plugins\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
            -vmargs
            -Dosgi.requiredJavaVersion=1.5
            -Xms40m
            -Xmx512m

            (3) Eclipse-->JBoss server-->Edit launch configuration
            Program argument: -c default -b 0.0.0.0
            VM argument: -Dprogram.name=run.bat -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m
            (As suggested in Seam Reference 2.1.1GA.pdf Chapter2.1)