java代码结构优化 java代码性能优化( 四 )


1、-Xmixedmixed mode execution (default)
混合模式执行
2、-Xintinterpreted mode execution only
解释模式执行
3、-Xbootclasspath:directories and zip/jar files separated by ;
set search path for bootstrap classes and resources
设置zip/jar资源或者类(.class文件)存放目录路径
3、-Xbootclasspath/a:directories and zip/jar files separated by ;
append to end of bootstrap class path
追加zip/jar资源或者类(.class文件)存放目录路径
4、-Xbootclasspath/p:directories and zip/jar files separated by ;
prepend in front of bootstrap class path
预先加载zip/jar资源或者类(.class文件)存放目录路径
5、-Xnoclassgcdisable class garbage collection
关闭类垃圾回收功能
6、-Xincgcenable incremental garbage collection
开启类的垃圾回收功能
7、-Xloggc:filelog GC status to a file with time stamps
记录垃圾回日志到一个文件 。
8、-Xbatchdisable background compilation
关闭后台编译
9、-Xmssizeset initial Java heap size
设置JVM初始化堆内存大小
10、-Xmxsizeset maximum Java heap size
设置JVM最大的堆内存大小
11、-Xsssizeset java thread stack size
设置JVM栈内存大小
12、-Xprofoutput cpu profiling data
输入CPU概要表数据
13、-Xfutureenable strictest checks, anticipating future default
执行严格的代码检查,预测可能出现的情况
14、-Xrsreduce use of OS signals by Java/VM (see
documentation)
通过JVM还原操作系统信号
15、-Xcheck:jniperform additional checks for JNI functions
对JNI函数执行检查
16、-Xshare:offdo not attempt to use shared class data
尽可能不去使用共享类的数据
17、-Xshare:autouse shared class data if possible (default)
尽可能的使用共享类的数据
18、-Xshare:onrequire using shared class data, otherwise fail.
尽可能的使用共享类的数据,否则运行失败
The -X options are non-standard and subject to change without notice.
【java代码结构优化 java代码性能优化】关于java代码结构优化和java代码性能优化的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站 。

推荐阅读