This topic has not yet been written. The content below is from the topic description.
46.5. Tuning the VM We highly recommend you use the latest Java JVM for the best performance. We test internally using the Sun JVM, so some of these tunings won't apply to JDKs from other providers (e.g. IBM or JRockit) Garbage collection. For smooth server operation we recommend using a parallel garbage collection algorithm, e.g. using the JVM argument -XX:+UseParallelGC on Sun JDKs. Memory settings. Give as much memory as you can to the server. HornetQ can run in low memory by using paging (described in Chapter 24, Paging) but if it can run with all queues in RAM this will improve performance. The amount of memory you require will depend on the size and number of your queues and the size and number of your messages. Use the JVM arguments -Xms and -Xmx to set server available RAM. We recommend setting them to the same high value. Aggressive options. Different JVMs provide different sets of JVM tuning parameters, for the Sun Hotspot JVM the full list of options is available here. We recommend at least using -XX:+AggressiveOpts and -XX:+UseFastAccessorMethods. You may get some mileage with the other tuning parameters depending on your OS platform and application usage patterns.