JVM -verbose参数详解(转)

转自:http://www.javaranger.com/archives/367

java -verbose[:class|gc|jni] 在输出设备上显示虚拟机运行信息。

1.java -verbose:class

在程序运行的时候有多少类被加载!你可以用verbose:class来监视,在命令行输入java -verbose:class XXX  (XXX为程序名)你会在控制台看到加载的类的情况。

verbose和verbose:class含义相同,输出虚拟机装入的类的信息,显示的信息格式如下:

[Opened D:\Java\jdk1.6.0_25\jre\lib\rt.jar]

[Loaded java.lang.Object from D:\Java\jdk1.6.0_25\jre\lib\rt.jar]

[Loaded java.io.Serializable from D:\Java\jdk1.6.0_25\jre\lib\rt.jar]

[Loaded java.lang.Comparable from D:\Java\jdk1.6.0_25\jre\lib\rt.jar]

[Loaded java.lang.CharSequence from D:\Java\jdk1.6.0_25\jre\lib\rt.jar]

[Loaded java.lang.String from D:\Java\jdk1.6.0_25\jre\lib\rt.jar]

[Loaded java.lang.reflect.GenericDeclaration from D:\Java\jdk1.6.0_25\jre\lib\rt.jar]

[Loaded java.lang.reflect.Type from D:\Java\jdk1.6.0_25\jre\lib\rt.jar]

[Loaded java.lang.reflect.AnnotatedElement from D:\Java\jdk1.6.0_25\jre\lib\rt.jar]

[Loaded java.lang.Class from D:\Java\jdk1.6.0_25\jre\lib\rt.jar]

[Loaded java.lang.Cloneable from D:\Java\jdk1.6.0_25\jre\lib\rt.jar]

[Loaded java.lang.ClassLoader from D:\Java\jdk1.6.0_25\jre\lib\rt.jar]

[Loaded java.lang.System from D:\Java\jdk1.6.0_25\jre\lib\rt.jar]

[Loaded java.lang.Throwable from D:\Java\jdk1.6.0_25\jre\lib\rt.jar]

当虚拟机报告类找不到或类冲突时可用此参数来诊断来查看虚拟机从装入类的情况。

2.java –verbose:gc

在虚拟机发生内存回收时在输出设备显示信息,格式如下: [Full GC 256K->160K(124096K), 0.0042708 secs] 该参数用来监视虚拟机内存回收的情况。

public class JvmVerbose {

/**

* JVM -verbose[:class|gc|jni] 参数测试

* @param args

*/

public static void main(String[] args) {

JvmVerbose jvmVerbose = new JvmVerbose();

System.gc();

}

}

在这个例子中,一个新的对象被创建,由于它没有使用,所以该对象迅速地变为可达,程序编译后,执行命令: java -verbose:gc JvmVerbose 后结果为:

[GC 647K->256K(124096K), 0.0274253 secs]

[Full GC 256K->160K(124096K), 0.0042708 secs]

箭头前后的数据256K和160K分别表示垃圾收集GC前后所有存活对象使用的内存容量,说明有256K-160K=96K的对象容量被回收,括号内的数据124096K为堆内存的总容量,收集所需要的时间是0.0042708秒(这个时间在每次执行的时候会有所不同)。

3.java –verbose:jni

-verbose:jni输出native方法调用的相关情况,一般用于诊断jni调用错误信息。

在虚拟机调用native方法时输出设备显示信息,格式如下: [Dynamic-linking native methodjava.lang.Object.registerNatives ... JNI] 该参数用来监视虚拟机调用本地方法的情况,在发生jni错误时可为诊断提供便利。

----------------------------------------------

我来小试身手

public class Test {
	public static void main(String args[]){
		Test test = new Test();
		System.gc();
	}
}

配置参数:

执行Test.class加载了以下这么多类

[Opened C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Object from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.Serializable from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Comparable from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.CharSequence from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.String from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.GenericDeclaration from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.Type from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.AnnotatedElement from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Class from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Cloneable from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ClassLoader from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.System from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Throwable from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Error from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ThreadDeath from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Exception from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.RuntimeException from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.ProtectionDomain from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.AccessControlContext from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ReflectiveOperationException from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ClassNotFoundException from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.LinkageError from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.NoClassDefFoundError from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ClassCastException from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ArrayStoreException from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.VirtualMachineError from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.OutOfMemoryError from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.StackOverflowError from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.IllegalMonitorStateException from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ref.Reference from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ref.SoftReference from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ref.WeakReference from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ref.FinalReference from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ref.PhantomReference from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ref.Finalizer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Runnable from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Thread from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Thread$UncaughtExceptionHandler from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ThreadGroup from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Map from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Dictionary from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Hashtable from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Properties from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.AccessibleObject from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.Member from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.Field from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.Method from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.Constructor from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.MagicAccessorImpl from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.MethodAccessor from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.MethodAccessorImpl from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.ConstructorAccessor from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.ConstructorAccessorImpl from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.DelegatingClassLoader from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.ConstantPool from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.FieldAccessor from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.FieldAccessorImpl from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.UnsafeFieldAccessorImpl from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.UnsafeStaticFieldAccessorImpl from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.invoke.MethodHandle from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.invoke.MemberName from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.invoke.MethodHandleNatives from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.invoke.LambdaForm from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.invoke.DirectMethodHandle from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.invoke.MethodType from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.BootstrapMethodError from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.invoke.CallSite from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.invoke.ConstantCallSite from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.invoke.MutableCallSite from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.invoke.VolatileCallSite from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Appendable from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.AbstractStringBuilder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.StringBuffer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.StringBuilder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.StackTraceElement from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.Buffer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.PostVMInitHook from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Boolean from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Character from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Number from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Float from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Double from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Byte from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Short from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Integer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Long from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.NullPointerException from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ArithmeticException from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.ObjectStreamField from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Comparator from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.String$CaseInsensitiveComparator from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.Guard from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.Permission from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.BasicPermission from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.RuntimePermission from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.AccessController from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.ReflectPermission from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.PrivilegedAction from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.ReflectionFactory$GetReflectionFactoryAction from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.cert.Certificate from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Iterable from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Collection from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.List from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.RandomAccess from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.AbstractCollection from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.AbstractList from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Vector from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Stack from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.ReflectionFactory from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ref.Reference$Lock from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ref.Reference$ReferenceHandler from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ref.ReferenceQueue from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ref.ReferenceQueue$Null from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ref.ReferenceQueue$Lock from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ref.Finalizer$FinalizerThread from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.VM from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Map$Entry from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Hashtable$Entry from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Math from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.charset.Charset from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.charset.spi.CharsetProvider from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.FastCharsetProvider from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.StandardCharsets from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.AbstractMap from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.util.PreHashedMap from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.StandardCharsets$Aliases from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.StandardCharsets$Classes from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.StandardCharsets$Cache from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ThreadLocal from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.atomic.AtomicInteger from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.Unsafe from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.IncompatibleClassChangeError from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.NoSuchMethodError from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.ArrayList from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Collections from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Set from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.AbstractSet from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Collections$EmptySet from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Collections$EmptyList from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Collections$EmptyMap from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Collections$UnmodifiableCollection from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Collections$UnmodifiableList from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Collections$UnmodifiableRandomAccessList from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.Reflection from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.HashMap from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.HashMap$Entry from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.HashMap$EntrySet from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Iterator from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.HashMap$HashIterator from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.HashMap$EntryIterator from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Class$3 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Class$ReflectionData from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Class$Atomic from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Class$SecurityManagerHelper from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.generics.repository.AbstractRepository from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.generics.repository.GenericDeclRepository from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.generics.repository.ClassRepository from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.annotation.AnnotationType from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.WeakHashMap from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ClassValue$ClassValueMap from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.Modifier from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.LangReflectAccess from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.ReflectAccess from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Arrays from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.charset.Charset$ExtendedProviderHolder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.charset.Charset$ExtendedProviderHolder$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Opened C:\Java\jdk7\jre\lib\charsets.jar]

[Loaded sun.nio.cs.AbstractCharsetProvider from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.ext.ExtendedCharsets from C:\Java\jdk7\jre\lib\charsets.jar]

[Loaded java.lang.Class$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.ReflectionFactory$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.NativeConstructorAccessorImpl from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.DelegatingConstructorAccessorImpl from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.SortedMap from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.NavigableMap from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.TreeMap from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.ASCIICaseInsensitiveComparator from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.TreeMap$Entry from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.HistoricallyNamedCharset from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.ext.GBK from C:\Java\jdk7\jre\lib\charsets.jar]

[Loaded java.lang.StringCoding from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ThreadLocal$ThreadLocalMap from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ThreadLocal$ThreadLocalMap$Entry from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.StringCoding$StringDecoder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.ext.DoubleByte from C:\Java\jdk7\jre\lib\charsets.jar]

[Loaded sun.nio.cs.ext.DelegatableDecoder from C:\Java\jdk7\jre\lib\charsets.jar]

[Loaded java.nio.charset.CharsetDecoder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.ext.DoubleByte$Decoder from C:\Java\jdk7\jre\lib\charsets.jar]

[Loaded java.nio.charset.CodingErrorAction from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.ArrayDecoder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.ByteBuffer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.HeapByteBuffer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.Bits from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.ByteOrder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.JavaNioAccess from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.Bits$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.SharedSecrets from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Readable from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.CharBuffer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.HeapCharBuffer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.charset.CoderResult from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.charset.CoderResult$Cache from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.charset.CoderResult$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.charset.CoderResult$2 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Hashtable$EntrySet from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Collections$SynchronizedCollection from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Collections$SynchronizedSet from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Enumeration from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Hashtable$Enumerator from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Runtime from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.Version from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.AutoCloseable from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.Closeable from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.InputStream from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.FileInputStream from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.FileDescriptor from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.JavaIOFileDescriptorAccess from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.FileDescriptor$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.Flushable from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.OutputStream from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.FileOutputStream from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.FilterInputStream from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.BufferedInputStream from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.atomic.AtomicReferenceFieldUpdater from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.atomic.AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.reflect.misc.ReflectUtil from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.Proxy from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.InvocationHandler from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.WeakCache from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.WeakCache$BiFunction from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.Proxy$KeyFactory from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.Proxy$ProxyClassFactory from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.atomic.AtomicLong from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.ConcurrentMap from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.ConcurrentHashMap from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.ConcurrentHashMap$HashEntry from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.locks.Lock from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.locks.ReentrantLock from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.ConcurrentHashMap$Segment from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.locks.AbstractOwnableSynchronizer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.locks.AbstractQueuedSynchronizer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.locks.ReentrantLock$Sync from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.locks.ReentrantLock$NonfairSync from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.locks.AbstractQueuedSynchronizer$Node from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Objects from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.FilterOutputStream from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.PrintStream from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.BufferedOutputStream from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.Writer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.OutputStreamWriter from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.StreamEncoder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.security.action.GetPropertyAction from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.charset.CharsetEncoder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.ext.DoubleByte$Encoder from C:\Java\jdk7\jre\lib\charsets.jar]

[Loaded java.io.BufferedWriter from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.File from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.FileSystem from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.Win32FileSystem from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.WinNTFileSystem from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.ExpiringCache from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.LinkedHashMap from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.ExpiringCache$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.LinkedHashMap$Entry from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ClassLoader$3 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Enum from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.File$PathStatus from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.ExpiringCache$Entry from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ClassLoader$NativeLibrary from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.StringCoding$StringEncoder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.ArrayEncoder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Terminator from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.SignalHandler from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Terminator$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.Signal from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.NativeSignalHandler from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.OSEnvironment from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.io.Win32ErrorMode from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.JavaLangAccess from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.System$2 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.IllegalArgumentException from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Compiler from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Compiler$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.Launcher from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.net.URLStreamHandlerFactory from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.Launcher$Factory from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.SecureClassLoader from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.net.URLClassLoader from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.Launcher$ExtClassLoader from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.security.util.Debug from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.ClassLoader$ParallelLoaders from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.Hashing from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Random from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.ThreadLocalRandom from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.ThreadLocalRandom$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.WeakHashMap$Entry from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.WeakHashMap$Holder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Collections$SetFromMap from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.WeakHashMap$KeySet from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.JavaNetAccess from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.net.URLClassLoader$7 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.StringTokenizer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.PrivilegedExceptionAction from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.Launcher$ExtClassLoader$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.MetaIndex from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.Reader from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.BufferedReader from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.InputStreamReader from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.FileReader from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.cs.StreamDecoder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.IoTrace from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.reflect.Array from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.HashMap$Holder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Locale from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.util.locale.LocaleObjectCache from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Locale$Cache from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.concurrent.ConcurrentHashMap$Holder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.util.locale.BaseLocale from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.util.locale.BaseLocale$Cache from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.util.locale.BaseLocale$Key from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.util.locale.LocaleObjectCache$CacheEntry from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Locale$LocaleKey from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.util.locale.LocaleUtils from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.CharacterData from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.CharacterDataLatin1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.net.www.ParseUtil from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.BitSet from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.net.URL from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.Hashtable$Holder from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.net.URL$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.net.Parts from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.net.URLStreamHandler from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.net.www.protocol.file.Handler from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.JavaSecurityAccess from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.ProtectionDomain$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.JavaSecurityProtectionDomainAccess from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.ProtectionDomain$3 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.CodeSource from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.ProtectionDomain$Key from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.Principal from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.HashSet from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.URLClassPath from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.net.www.protocol.jar.Handler from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.Launcher$AppClassLoader from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.Launcher$AppClassLoader$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.SystemClassLoaderAction from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.VMSupport from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.launcher.LauncherHelper from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.net.URLClassLoader$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.net.util.URLUtil from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.URLClassPath$3 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.URLClassPath$Loader from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.URLClassPath$JarLoader from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.zip.ZipConstants from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.zip.ZipFile from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.JavaUtilZipFileAccess from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.util.zip.ZipFile$2 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.PrivilegedActionException from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.URLClassPath$FileLoader from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.Resource from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.URLClassPath$FileLoader$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Package from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.ByteBuffered from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.PerfCounter from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.Perf$GetPerfAction from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.Perf from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.misc.PerfCounter$CoreCounters from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.nio.ch.DirectBuffer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.MappedByteBuffer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.DirectByteBuffer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.LongBuffer from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.nio.DirectLongBufferU from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.PermissionCollection from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.Permissions from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.net.URLConnection from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.net.www.URLConnection from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.net.www.protocol.file.FileURLConnection from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded sun.net.www.MessageHeader from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.FilePermission from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.FilePermission$1 from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.io.FilePermissionCollection from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.AllPermission from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.UnresolvedPermission from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.security.BasicPermissionCollection from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded testJvm.Test from file:/D:/myworkspace/testJvm/bin/]

[Loaded java.lang.Void from C:\Java\jdk7\jre\lib\rt.jar]

[Full GC 812K->442K(15872K), 0.0031244 secs]

[Loaded sun.misc.Cleaner from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Shutdown from C:\Java\jdk7\jre\lib\rt.jar]

[Loaded java.lang.Shutdown$Lock from C:\Java\jdk7\jre\lib\rt.jar]

时间: 2024-10-06 00:16:02

JVM -verbose参数详解(转)的相关文章

JVM的参数详解

今天就整理下JVM的参数!相对而已JVM有很多参数,但对于一般开发人员执行知道和堆栈大小,GC.远程调试的参数即可. JVM Parameters 首先需要说明的是JVM的参数形式: -X 开头的参数都是非标准的参数(不是所有的JVM都实现了) -XX 都是不稳定的并且不推荐在生产环境中使用 * 布尔类型的参数 格式 -XX:+<option> 打开/-XX:-<option> 关闭 例如: -XX:PrintGCDetails 打开GC信息(调优和定位内存回收问题经常使用) *

JVM启动参数详解 (转)

非标准参数 非标准参数又称为扩展参数,其列表如下: -Xint  设置jvm以解释模式运行,所有的字节码将被直接执行,而不会编译成本地码.   -Xbatch  关闭后台代码编译,强制在前台编译,编译完成之后才能进行代码执行:  默认情况下,jvm在后台进行编译,若没有编译完成,则前台运行代码时以解释模式运行.   -Xbootclasspath:bootclasspath  让jvm从指定路径(可以是分号分隔的目录.jar.或者zip)中加载bootclass,用来替换jdk的rt.jar:若

JVM 参数详解

在一些规模稍大的应用中,Java虚拟机(JVM)的内存设置尤为重要,想在项目中取得好的效率,GC(垃圾回收)的设置是第一步. PermGen space:全称是Permanent Generation space.就是说是永久保存的区域,用于存放Class和Meta信息,Class在被Load的时候被放入该区域Heap space:存放Instance.GC(Garbage Collection)应该不会对PermGen space进行清理,所以如果你的APP会LOAD很多CLASS的话,就很可

SWFTOOLS PDF2SWF 参数详解

转载至:http://blog.csdn.net/iamduoluo/article/details/6820329 SWFTools提供了一系列将各种文件转成swf的工具: font2swf.exe gif2swf.exe jpeg2swf.exe pdf2swf.exe png2swf.exe wav2swf.exe 具体的功能就顾名思义了. 其中把pdf转成swf的工具就是pdf2swf了.在命令行中运行pdf2swf src.pdf des.swf一般能满足需求.而命令行参数可以通过pd

Redis配置文件redis.conf参数详解

redis.conf配置文件参数详解 # Redis configuration file example. ########################################## GENERAL ######################################## daemonize yes    #是否开启在后台运行redis,默认为no,不开启 pidfile /var/run/redis/redis.pid    #redis在后台运行时,默认pid文件的存放路

rsync参数详解、利用ssh、rsync 实现数据的定时同步

rsync 简介 rsync(remote synchronize)是一个远程数据同步工具,可通过 LAN/WAN 快速同步多台主机之间的文 件.也可以使用 rsync 同步本??硬盘中的不同目录. rsync 是用于替代 rcp 的一个工具,rsync 使用所谓的 rsync算法 进行数据同步,这种算法只传送两个文件 的不同部分,而不是每次都整份传送,因此速度相当快.您可以参考 How Rsync Works A PracticalOverview 进一步了解 rsync 的运作机制. rsy

VLC命令行参数详解

VLC命令行参数详解 2012-11-29 14:00 6859人阅读 评论(0) 收藏 举报 Usage: vlc [options] [stream] ...You can specify multiple streams on the commandline. They will be enqueued in the playlist.The first item specified will be played first. Options-styles:  --option  A gl

mdadm命令 参数详解

mdadm命令参数详解 mdadm是linux下用于管理软件 raid 的工具 基本语法 : mdadm [mode] [options] [mode]  有7种: Assemble:将以前定义的某个阵列加入当前在用阵列. Build:Build a legacy array,每个device 没有 superblocks Create:创建一个新的阵列,每个device 具有 superblocks Manage: 管理阵列,比如 add 或 remove Misc:允许单独对阵列中的某个 d

memcached源码分析-----memcached启动参数详解以及关键配置的默认值

转载请注明出处: http://blog.csdn.net/luotuo44/article/details/42672913 本文开启本系列博文的代码分析.本系列博文研究是memcached版本是1.4.21. 本文将给出memcached启动时各个参数的详细解释以及一些关键配置的默认值.以便在分析memcached源码的时候好随时查看.当然也方便使用memcached时可以随时查看各个参数的含义.<如何阅读memcached源码>说到memcached有很多全局变量(也就是关键配置),这些