Miscellaneous JVM Options
This section contains some Java options that may or may not have an impact on performance of a JVM.
- -XX:ReservedCodeCacheSize=128m This is an option for the Java just-in-time compiler. Basically it sets the maximum size for the compiler's code cache. (InitialCodeCacheSize similarly sets the initial size of the same cache.)
The cache can become full, which results in Java warnings like this:
CodeCache is full. Compiler has been disabled, Try increasing the code cache size using XXReservedCodeCacheSize=
In extreme cases this may be followed by an OutOfMemoryError such as :
exception: java.lang.OutOfMemoryError occurred dispatching signal SINT to handler
In such cases the VM may need to be forcibly terminated.
In most installations the default value (which depends on the platform) for this option will not need changing, but occasionally a very large workload might produce warnings or errors similar to the above.
- -server JVMs based on Sun's Hotspot technology initially compile class methods with a low optimization level. These JVMs use a simple complier and an optimizing JIT compiler. Normally the simple JIT compiler is used. However you can use this option to use the optimizing compiler instead. This change will significantly increase the performance of the server, but at the cost that the server takes longer to warm up when the optimizing compiler is used.
- -Xconcurrentio This is an undocumented option, which generally helps programs with many threads, particularly on Solaris. The main feature turned on with -Xconcurrentio is to use LWP-based synchronization instead of thread-based synchronization. This may enable certain applications to speed up significantly.
Copyright © Cloud Software Group, Inc. All rights reserved.