
JBoss On Solaris Best PracticesMemory options Memory requirements are very closely tied to your application, but below are some reasonable default options that should give you a good starting place. This will set up the JVM with 1 GB of memory: -Xms1024m -Xmx1024m -XX:+UseParallelGC -XX:ThreadStackSize=128k Turn off extraneous logging and tomcat dev mode JBoss, by default, is designed to be simple for a developer to use. When you are ready to deploy your application, you should turn off some of the features that are most useful in development.
Use JDK 1.5 If at all possible, you should use JDK 1.5. The garbage collector has been significantly improved and you will often see immediate performance gains. If you can only use JDK 1.4 in your environment, you should change the RMI GC interval. In our experience, the default of 1 minute is much to short for most applications. This will cause a full GC every minute! The following options are the default in recent JBoss releases: -Dsun.rmi.dgc.client.gcInterval=3600000 These options set the GC interval to 1 hour, which is much more reasonable in most cases. The option -XX:+DisableExplicitGC will also prevent the RMI GC's from occurring every minute. Remove unused services If you aren't using some services that JBoss provides you should remove them to free up resources. This is a more advanced topic, but this page has a detailed description of how to do this. | ||||||