首页 > 编程语言 > 详细

How to Use Verbose Options in Java

时间:2020-01-03 12:05:55      阅读:57      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!