HOTSPOT 虚拟机noclassgc等几个参数的含义
-Xnoclassgc关闭CLASS的垃圾回收功能,就是虚拟机加载的类,即便是不使用,没有实例也不会回收。如果一个类20分钟还没有使用,虚拟机会卸载这个类。如果这个类再次使用,虚拟机会重新加载这个类,由于虚拟机加载类包含了IO和内存分配的操作,因此加载时会对性能有所影响。对于一般应用,这个参数对性能影响不大。
-Xoptgc优化的GC标志。提高短生命周期的对象垃圾回收的性能。如果服务器端的应用每一次事务(业务调用)产生了大量的短生命周期的对象,这个参数会提高应用的性能。这个参数的使用要小心,在使用长生命周期对象的应用中不推荐使用The optimistic garbage collection flag. Improves garbage collection performance of applications with mostly short-lived objects. A server-side application that creates many short-lived objects for each transaction is likely to benefit greatly with Xoptgc. However this flag should be used with caution. It is not recommended for applications that build up objects quickly during the run time that are not short-lived.
-XX:SchedulerPriorityRange=SCHED_NOAGE (HPUX专用)指定JAVA线程和HP本地线程模型的优先级和时序策略的对应关系。SCHED_NOAGE (a subset of the range of priorities supported by CHED_TIMESHARE)是线程模型的一种子集, 线程的基本级别是-256,最高优先级是-154. 单纯的线程模型映射参数,不会影响性能。-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.DevPollSelectorProvider 指定实现NIO的使用哪个厂家提供的类包。sun.nio.ch.DevPollSelectorProvider 是SUN提供的NIO类包。NIO是JAVA1.5推出的提高IO,NETWORK读写速度的机制。NIO的英文说明:http://java.sun.com/javase/6/docs/api/index.html?java/nio/channels/spi//class-useSelectorProvider.html NIO的中文说明:http://www.jingningedu.com/manage/java_api/index.html?java/nio/channels/spi//class-useSelectorProvider.html
JAVA HOTSPOT ON HPUX所有参数说明:http://docs.hp.com/en/JAVAPROGUIDE/hotspot.html HP HOTSPOT内存管理说明:http://docs.hp.com/en/JAVAPERFTUNE/Memory-Management.pdf