码迷,mamicode.com
首页 > 编程语言 > 详细

How to Use Verbose Options in Java

时间:2020-01-03 12:02:28      阅读:72      评论:0      收藏:0      [点我收藏+]

标签:dev   param   -o   play   its   als   spl   ogr   mic   

When running a Java program, verbose options can be used to tell the JVM which kind of information to see. JVM suports three verbose options out of the box. As the name suggests, verbose is for displaying the work done by JVM. Mostly the information provided by these parameters is used for debugging purposes. Since it is used for debugging, its use is in development. One would never have to use verbose parameters in production enviornment. The three verbose options supported by JVM are: 

-verbose:class 
-verbose:gc 
-verbose:jni 

-verbose:class is used to display the information about classes being loaded by JVM. This is useful when using class loaders for loading classes dynamically or for analysing what all classes are getting loaded in a particular scenario. A very simple program which does nothing also loads so many classes as shown below:

 

https://dzone.com/articles/how-use-verbose-options-java

How to Use Verbose Options in Java

标签:dev   param   -o   play   its   als   spl   ogr   mic   

原文地址:https://www.cnblogs.com/feng9exe/p/12144107.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!