标签:
ClassLoadingMXBean
case
import java.lang.management.ClassLoadingMXBean; import java.lang.management.ManagementFactory; public class Test { { ClassLoadingMXBean classLoadingMXBean = ManagementFactory.getClassLoadingMXBean(); System.out.println(classLoadingMXBean.isVerbose()); System.out.println(classLoadingMXBean.getTotalLoadedClassCount()); System.out.println(classLoadingMXBean.getLoadedClassCount()); System.out.println(classLoadingMXBean.getUnloadedClassCount()); } public static void main(String[] args) { new Test(); } }
启用详细输出
-verbose:[class|gc|jni]
输出结果:
1 [Loaded java.lang.Object from shared objects file] 2 [Loaded java.io.Serializable from shared objects file] 3 [Loaded java.lang.Comparable from shared objects file] 4 [Loaded java.lang.CharSequence from shared objects file] 5 [Loaded java.lang.String from shared objects file] 6 [Loaded java.lang.reflect.GenericDeclaration from shared objects file] 7 [Loaded java.lang.reflect.Type from shared objects file] 8 [Loaded java.lang.reflect.AnnotatedElement from shared objects file] 9 [Loaded java.lang.Class from shared objects file] 10 [Loaded java.lang.Cloneable from shared objects file] 11 [Loaded java.lang.ClassLoader from shared objects file] 12 [Loaded java.lang.System from shared objects file] 13 [Loaded java.lang.Throwable from shared objects file] 14 [Loaded java.lang.Error from shared objects file] 15 [Loaded java.lang.ThreadDeath from shared objects file] 16 [Loaded java.lang.Exception from shared objects file] 17 [Loaded java.lang.RuntimeException from shared objects file] 18 [Loaded java.security.ProtectionDomain from shared objects file] 19 [Loaded java.security.AccessControlContext from shared objects file] 20 [Loaded java.lang.ReflectiveOperationException from shared objects file] 21 [Loaded java.lang.ClassNotFoundException from shared objects file] 22 [Loaded java.lang.LinkageError from shared objects file] 23 [Loaded java.lang.NoClassDefFoundError from shared objects file] 24 [Loaded java.lang.ClassCastException from shared objects file] 25 [Loaded java.lang.ArrayStoreException from shared objects file] 26 [Loaded java.lang.VirtualMachineError from shared objects file] 27 [Loaded java.lang.OutOfMemoryError from shared objects file] 28 [Loaded java.lang.StackOverflowError from shared objects file] 29 [Loaded java.lang.IllegalMonitorStateException from shared objects file] 30 [Loaded java.lang.ref.Reference from shared objects file] 31 [Loaded java.lang.ref.SoftReference from shared objects file] 32 [Loaded java.lang.ref.WeakReference from shared objects file] 33 [Loaded java.lang.ref.FinalReference from shared objects file] 34 [Loaded java.lang.ref.PhantomReference from shared objects file] 35 [Loaded java.lang.ref.Finalizer from shared objects file] 36 [Loaded java.lang.Runnable from shared objects file] 37 [Loaded java.lang.Thread from shared objects file] 38 [Loaded java.lang.Thread$UncaughtExceptionHandler from shared objects file] 39 [Loaded java.lang.ThreadGroup from shared objects file] 40 [Loaded java.util.Dictionary from shared objects file] 41 [Loaded java.util.Map from shared objects file] 42 [Loaded java.util.Hashtable from shared objects file] 43 [Loaded java.util.Properties from shared objects file] 44 [Loaded java.lang.reflect.AccessibleObject from shared objects file] 45 [Loaded java.lang.reflect.Member from shared objects file] 46 [Loaded java.lang.reflect.Field from shared objects file] 47 [Loaded java.lang.reflect.Method from shared objects file] 48 [Loaded java.lang.reflect.Constructor from shared objects file] 49 [Loaded sun.reflect.MagicAccessorImpl from shared objects file] 50 [Loaded sun.reflect.MethodAccessor from shared objects file] 51 [Loaded sun.reflect.MethodAccessorImpl from shared objects file] 52 [Loaded sun.reflect.ConstructorAccessor from shared objects file] 53 [Loaded sun.reflect.ConstructorAccessorImpl from shared objects file] 54 [Loaded sun.reflect.DelegatingClassLoader from shared objects file] 55 [Loaded sun.reflect.ConstantPool from shared objects file] 56 [Loaded sun.reflect.FieldAccessor from shared objects file] 57 [Loaded sun.reflect.FieldAccessorImpl from shared objects file] 58 [Loaded sun.reflect.UnsafeFieldAccessorImpl from shared objects file] 59 [Loaded sun.reflect.UnsafeStaticFieldAccessorImpl from shared objects file] 60 [Loaded java.lang.invoke.MethodHandle from shared objects file] 61 [Loaded java.lang.invoke.MemberName from shared objects file] 62 [Loaded java.lang.invoke.MethodHandleNatives from shared objects file] 63 [Loaded java.lang.invoke.LambdaForm from shared objects file] 64 [Loaded java.lang.invoke.MethodType from shared objects file] 65 [Loaded java.lang.BootstrapMethodError from shared objects file] 66 [Loaded java.lang.invoke.CallSite from shared objects file] 67 [Loaded java.lang.invoke.ConstantCallSite from shared objects file] 68 [Loaded java.lang.invoke.MutableCallSite from shared objects file] 69 [Loaded java.lang.invoke.VolatileCallSite from shared objects file] 70 [Loaded java.lang.Appendable from shared objects file] 71 [Loaded java.lang.AbstractStringBuilder from shared objects file] 72 [Loaded java.lang.StringBuffer from shared objects file] 73 [Loaded java.lang.StringBuilder from shared objects file] 74 [Loaded java.lang.StackTraceElement from shared objects file] 75 [Loaded java.nio.Buffer from shared objects file] 76 [Loaded sun.misc.PostVMInitHook from shared objects file] 77 [Loaded java.lang.Boolean from shared objects file] 78 [Loaded java.lang.Character from shared objects file] 79 [Loaded java.lang.Number from shared objects file] 80 [Loaded java.lang.Float from shared objects file] 81 [Loaded java.lang.Double from shared objects file] 82 [Loaded java.lang.Byte from shared objects file] 83 [Loaded java.lang.Short from shared objects file] 84 [Loaded java.lang.Integer from shared objects file] 85 [Loaded java.lang.Long from shared objects file] 86 [Loaded java.io.ObjectStreamField from shared objects file] 87 [Loaded java.util.Comparator from shared objects file] 88 [Loaded java.lang.String$CaseInsensitiveComparator from shared objects file] 89 [Loaded java.security.Guard from shared objects file] 90 [Loaded java.security.Permission from shared objects file] 91 [Loaded java.security.BasicPermission from shared objects file] 92 [Loaded java.lang.RuntimePermission from shared objects file] 93 [Loaded java.security.AccessController from shared objects file] 94 [Loaded java.lang.reflect.ReflectPermission from shared objects file] 95 [Loaded java.security.PrivilegedAction from shared objects file] 96 [Loaded sun.reflect.ReflectionFactory$GetReflectionFactoryAction from shared objects file] 97 [Loaded java.security.cert.Certificate from shared objects file] 98 [Loaded java.lang.Iterable from shared objects file] 99 [Loaded java.util.Collection from shared objects file] 100 [Loaded java.util.AbstractCollection from shared objects file] 101 [Loaded java.util.List from shared objects file] 102 [Loaded java.util.AbstractList from shared objects file] 103 [Loaded java.util.RandomAccess from shared objects file] 104 [Loaded java.util.Vector from shared objects file] 105 [Loaded java.util.Stack from shared objects file] 106 [Loaded sun.reflect.ReflectionFactory from shared objects file] 107 [Loaded java.lang.ref.Reference$Lock from shared objects file] 108 [Loaded java.lang.ref.Reference$ReferenceHandler from shared objects file] 109 [Loaded java.lang.ref.ReferenceQueue from shared objects file] 110 [Loaded java.lang.ref.ReferenceQueue$Null from shared objects file] 111 [Loaded java.lang.ref.ReferenceQueue$Lock from shared objects file] 112 [Loaded java.lang.ref.Finalizer$FinalizerThread from shared objects file] 113 [Loaded java.util.Map$Entry from shared objects file] 114 [Loaded java.util.Hashtable$Entry from shared objects file] 115 [Loaded java.lang.Math from shared objects file] 116 [Loaded sun.misc.VM from shared objects file] 117 [Loaded java.nio.charset.Charset from shared objects file] 118 [Loaded java.nio.charset.spi.CharsetProvider from shared objects file] 119 [Loaded sun.nio.cs.FastCharsetProvider from shared objects file] 120 [Loaded sun.nio.cs.StandardCharsets from shared objects file] 121 [Loaded java.util.AbstractMap from shared objects file] 122 [Loaded sun.util.PreHashedMap from shared objects file] 123 [Loaded sun.nio.cs.StandardCharsets$Aliases from shared objects file] 124 [Loaded sun.nio.cs.StandardCharsets$Classes from shared objects file] 125 [Loaded sun.nio.cs.StandardCharsets$Cache from shared objects file] 126 [Loaded java.lang.ThreadLocal from shared objects file] 127 [Loaded java.util.concurrent.atomic.AtomicInteger from shared objects file] 128 [Loaded sun.misc.Unsafe from shared objects file] 129 [Loaded java.lang.IncompatibleClassChangeError from shared objects file] 130 [Loaded java.lang.NoSuchMethodError from shared objects file] 131 [Loaded java.util.ArrayList from shared objects file] 132 [Loaded java.util.Collections from shared objects file] 133 [Loaded java.util.Set from shared objects file] 134 [Loaded java.util.AbstractSet from shared objects file] 135 [Loaded java.util.Collections$EmptySet from shared objects file] 136 [Loaded java.util.Collections$EmptyList from shared objects file] 137 [Loaded java.util.Collections$EmptyMap from shared objects file] 138 [Loaded java.util.Collections$UnmodifiableCollection from shared objects file] 139 [Loaded java.util.Collections$UnmodifiableList from shared objects file] 140 [Loaded java.util.Collections$UnmodifiableRandomAccessList from shared objects file] 141 [Loaded sun.reflect.Reflection from shared objects file] 142 [Loaded java.util.HashMap from shared objects file] 143 [Loaded java.util.HashMap$Entry from shared objects file] 144 [Loaded java.util.HashMap$EntrySet from shared objects file] 145 [Loaded java.util.Iterator from shared objects file] 146 [Loaded java.util.HashMap$HashIterator from shared objects file] 147 [Loaded java.util.HashMap$EntryIterator from shared objects file] 148 [Loaded java.lang.Class$3 from shared objects file] 149 [Loaded java.lang.reflect.Modifier from shared objects file] 150 [Loaded sun.reflect.LangReflectAccess from shared objects file] 151 [Loaded java.lang.reflect.ReflectAccess from shared objects file] 152 [Loaded java.util.Arrays from shared objects file] 153 [Opened C:\Program Files\Java\jre7\lib\rt.jar] 154 [Loaded java.nio.charset.Charset$3 from C:\Program Files\Java\jre7\lib\rt.jar] 155 [Opened C:\Program Files\Java\jre7\lib\charsets.jar] 156 [Loaded sun.nio.cs.AbstractCharsetProvider from C:\Program Files\Java\jre7\lib\rt.jar] 157 [Loaded sun.nio.cs.ext.ExtendedCharsets from C:\Program Files\Java\jre7\lib\charsets.jar] 158 [Loaded java.lang.Class$1 from shared objects file] 159 [Loaded sun.reflect.ReflectionFactory$1 from shared objects file] 160 [Loaded sun.reflect.NativeConstructorAccessorImpl from shared objects file] 161 [Loaded sun.reflect.DelegatingConstructorAccessorImpl from shared objects file] 162 [Loaded java.util.SortedMap from shared objects file] 163 [Loaded java.util.NavigableMap from shared objects file] 164 [Loaded java.util.TreeMap from shared objects file] 165 [Loaded sun.misc.ASCIICaseInsensitiveComparator from shared objects file] 166 [Loaded java.util.TreeMap$Entry from C:\Program Files\Java\jre7\lib\rt.jar] 167 [Loaded sun.nio.cs.HistoricallyNamedCharset from shared objects file] 168 [Loaded sun.nio.cs.ext.GBK from C:\Program Files\Java\jre7\lib\charsets.jar] 169 [Loaded java.lang.StringCoding from shared objects file] 170 [Loaded java.lang.ThreadLocal$ThreadLocalMap from shared objects file] 171 [Loaded java.lang.ThreadLocal$ThreadLocalMap$Entry from shared objects file] 172 [Loaded java.lang.StringCoding$StringDecoder from shared objects file] 173 [Loaded sun.nio.cs.ext.DoubleByte from C:\Program Files\Java\jre7\lib\charsets.jar] 174 [Loaded sun.nio.cs.ext.DelegatableDecoder from C:\Program Files\Java\jre7\lib\charsets.jar] 175 [Loaded java.nio.charset.CharsetDecoder from shared objects file] 176 [Loaded sun.nio.cs.ext.DoubleByte$Decoder from C:\Program Files\Java\jre7\lib\charsets.jar] 177 [Loaded java.nio.charset.CodingErrorAction from shared objects file] 178 [Loaded sun.nio.cs.ArrayDecoder from shared objects file] 179 [Loaded java.nio.ByteBuffer from shared objects file] 180 [Loaded java.nio.HeapByteBuffer from shared objects file] 181 [Loaded java.nio.Bits from shared objects file] 182 [Loaded java.nio.ByteOrder from shared objects file] 183 [Loaded sun.misc.JavaNioAccess from C:\Program Files\Java\jre7\lib\rt.jar] 184 [Loaded java.nio.Bits$1 from C:\Program Files\Java\jre7\lib\rt.jar] 185 [Loaded sun.misc.SharedSecrets from shared objects file] 186 [Loaded java.lang.Readable from shared objects file] 187 [Loaded java.nio.CharBuffer from shared objects file] 188 [Loaded java.nio.HeapCharBuffer from shared objects file] 189 [Loaded java.nio.charset.CoderResult from shared objects file] 190 [Loaded java.nio.charset.CoderResult$Cache from shared objects file] 191 [Loaded java.nio.charset.CoderResult$1 from shared objects file] 192 [Loaded java.nio.charset.CoderResult$2 from shared objects file] 193 [Loaded java.util.Hashtable$EntrySet from shared objects file] 194 [Loaded java.util.Collections$SynchronizedCollection from shared objects file] 195 [Loaded java.util.Collections$SynchronizedSet from shared objects file] 196 [Loaded java.util.Enumeration from shared objects file] 197 [Loaded java.util.Hashtable$Enumerator from shared objects file] 198 [Loaded java.lang.Runtime from shared objects file] 199 [Loaded sun.misc.Version from shared objects file] 200 [Loaded java.lang.AutoCloseable from shared objects file] 201 [Loaded java.io.Closeable from shared objects file] 202 [Loaded java.io.InputStream from shared objects file] 203 [Loaded java.io.FileInputStream from shared objects file] 204 [Loaded java.io.FileDescriptor from shared objects file] 205 [Loaded sun.misc.JavaIOFileDescriptorAccess from C:\Program Files\Java\jre7\lib\rt.jar] 206 [Loaded java.io.FileDescriptor$1 from C:\Program Files\Java\jre7\lib\rt.jar] 207 [Loaded java.io.Flushable from shared objects file] 208 [Loaded java.io.OutputStream from shared objects file] 209 [Loaded java.io.FileOutputStream from shared objects file] 210 [Loaded java.io.FilterInputStream from shared objects file] 211 [Loaded java.io.BufferedInputStream from shared objects file] 212 [Loaded java.util.concurrent.atomic.AtomicReferenceFieldUpdater from shared objects file] 213 [Loaded java.util.concurrent.atomic.AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl from shared objects file] 214 [Loaded sun.reflect.misc.ReflectUtil from shared objects file] 215 [Loaded java.lang.reflect.Proxy from shared objects file] 216 [Loaded java.lang.reflect.InvocationHandler from shared objects file] 217 [Loaded java.util.WeakHashMap from shared objects file] 218 [Loaded sun.misc.Hashing from C:\Program Files\Java\jre7\lib\rt.jar] 219 [Loaded java.util.WeakHashMap$Entry from shared objects file] 220 [Loaded java.util.Collections$SynchronizedMap from shared objects file] 221 [Loaded java.io.FilterOutputStream from shared objects file] 222 [Loaded java.io.PrintStream from shared objects file] 223 [Loaded java.io.BufferedOutputStream from shared objects file] 224 [Loaded java.io.Writer from shared objects file] 225 [Loaded java.io.OutputStreamWriter from shared objects file] 226 [Loaded sun.nio.cs.StreamEncoder from shared objects file] 227 [Loaded sun.security.action.GetPropertyAction from shared objects file] 228 [Loaded java.nio.charset.CharsetEncoder from shared objects file] 229 [Loaded sun.nio.cs.ext.DoubleByte$Encoder from C:\Program Files\Java\jre7\lib\charsets.jar] 230 [Loaded java.io.BufferedWriter from shared objects file] 231 [Loaded java.io.File from shared objects file] 232 [Loaded java.io.FileSystem from shared objects file] 233 [Loaded java.io.Win32FileSystem from shared objects file] 234 [Loaded java.io.WinNTFileSystem from shared objects file] 235 [Loaded java.io.ExpiringCache from shared objects file] 236 [Loaded java.util.LinkedHashMap from shared objects file] 237 [Loaded java.io.ExpiringCache$1 from shared objects file] 238 [Loaded java.util.LinkedHashMap$Entry from shared objects file] 239 [Loaded java.lang.ClassLoader$3 from shared objects file] 240 [Loaded java.lang.Enum from shared objects file] 241 [Loaded java.io.File$PathStatus from C:\Program Files\Java\jre7\lib\rt.jar] 242 [Loaded java.io.ExpiringCache$Entry from shared objects file] 243 [Loaded java.lang.ClassLoader$NativeLibrary from shared objects file] 244 [Loaded java.lang.StringCoding$StringEncoder from shared objects file] 245 [Loaded sun.nio.cs.ArrayEncoder from C:\Program Files\Java\jre7\lib\rt.jar] 246 [Loaded java.lang.Terminator from shared objects file] 247 [Loaded sun.misc.SignalHandler from shared objects file] 248 [Loaded java.lang.Terminator$1 from shared objects file] 249 [Loaded sun.misc.Signal from shared objects file] 250 [Loaded sun.misc.NativeSignalHandler from shared objects file] 251 [Loaded sun.misc.OSEnvironment from shared objects file] 252 [Loaded sun.io.Win32ErrorMode from shared objects file] 253 [Loaded sun.misc.JavaLangAccess from shared objects file] 254 [Loaded java.lang.System$2 from shared objects file] 255 [Loaded java.lang.NullPointerException from shared objects file] 256 [Loaded java.lang.ArithmeticException from shared objects file] 257 [Loaded java.lang.IllegalArgumentException from shared objects file] 258 [Loaded java.lang.Compiler from shared objects file] 259 [Loaded java.lang.Compiler$1 from shared objects file] 260 [Loaded sun.misc.Launcher from shared objects file] 261 [Loaded java.net.URLStreamHandlerFactory from shared objects file] 262 [Loaded sun.misc.Launcher$Factory from shared objects file] 263 [Loaded java.security.SecureClassLoader from shared objects file] 264 [Loaded java.net.URLClassLoader from shared objects file] 265 [Loaded sun.misc.Launcher$ExtClassLoader from shared objects file] 266 [Loaded sun.security.util.Debug from shared objects file] 267 [Loaded java.lang.ClassLoader$ParallelLoaders from C:\Program Files\Java\jre7\lib\rt.jar] 268 [Loaded java.util.Random from shared objects file] 269 [Loaded java.util.concurrent.ThreadLocalRandom from C:\Program Files\Java\jre7\lib\rt.jar] 270 [Loaded java.util.concurrent.atomic.AtomicLong from shared objects file] 271 [Loaded java.util.concurrent.ThreadLocalRandom$1 from C:\Program Files\Java\jre7\lib\rt.jar] 272 [Loaded java.util.WeakHashMap$Holder from C:\Program Files\Java\jre7\lib\rt.jar] 273 [Loaded java.util.Collections$SetFromMap from C:\Program Files\Java\jre7\lib\rt.jar] 274 [Loaded java.util.WeakHashMap$KeySet from C:\Program Files\Java\jre7\lib\rt.jar] 275 [Loaded sun.misc.JavaNetAccess from shared objects file] 276 [Loaded java.net.URLClassLoader$7 from shared objects file] 277 [Loaded java.util.StringTokenizer from shared objects file] 278 [Loaded java.security.PrivilegedExceptionAction from shared objects file] 279 [Loaded sun.misc.Launcher$ExtClassLoader$1 from shared objects file] 280 [Loaded sun.misc.MetaIndex from shared objects file] 281 [Loaded java.io.Reader from shared objects file] 282 [Loaded java.io.BufferedReader from shared objects file] 283 [Loaded java.io.InputStreamReader from shared objects file] 284 [Loaded java.io.FileReader from shared objects file] 285 [Loaded sun.nio.cs.StreamDecoder from shared objects file] 286 [Loaded sun.misc.IoTrace from C:\Program Files\Java\jre7\lib\rt.jar] 287 [Loaded java.lang.reflect.Array from shared objects file] 288 [Loaded java.util.HashMap$Holder from C:\Program Files\Java\jre7\lib\rt.jar] 289 [Loaded java.util.Locale from shared objects file] 290 [Loaded sun.util.locale.LocaleObjectCache from C:\Program Files\Java\jre7\lib\rt.jar] 291 [Loaded java.util.Locale$Cache from C:\Program Files\Java\jre7\lib\rt.jar] 292 [Loaded java.util.concurrent.ConcurrentMap from shared objects file] 293 [Loaded java.util.concurrent.ConcurrentHashMap from shared objects file] 294 [Loaded java.util.concurrent.ConcurrentHashMap$HashEntry from shared objects file] 295 [Loaded java.util.concurrent.locks.Lock from shared objects file] 296 [Loaded java.util.concurrent.locks.ReentrantLock from shared objects file] 297 [Loaded java.util.concurrent.ConcurrentHashMap$Segment from shared objects file] 298 [Loaded java.util.concurrent.ConcurrentHashMap$Holder from C:\Program Files\Java\jre7\lib\rt.jar] 299 [Loaded java.util.concurrent.locks.AbstractOwnableSynchronizer from shared objects file] 300 [Loaded java.util.concurrent.locks.AbstractQueuedSynchronizer from shared objects file] 301 [Loaded java.util.concurrent.locks.ReentrantLock$Sync from shared objects file] 302 [Loaded java.util.concurrent.locks.ReentrantLock$NonfairSync from shared objects file] 303 [Loaded java.util.concurrent.locks.AbstractQueuedSynchronizer$Node from shared objects file] 304 [Loaded sun.util.locale.BaseLocale from C:\Program Files\Java\jre7\lib\rt.jar] 305 [Loaded sun.util.locale.BaseLocale$Cache from C:\Program Files\Java\jre7\lib\rt.jar] 306 [Loaded sun.util.locale.BaseLocale$Key from C:\Program Files\Java\jre7\lib\rt.jar] 307 [Loaded sun.util.locale.LocaleObjectCache$CacheEntry from C:\Program Files\Java\jre7\lib\rt.jar] 308 [Loaded java.util.Locale$LocaleKey from C:\Program Files\Java\jre7\lib\rt.jar] 309 [Loaded sun.util.locale.LocaleUtils from C:\Program Files\Java\jre7\lib\rt.jar] 310 [Loaded java.lang.CharacterData from shared objects file] 311 [Loaded java.lang.CharacterDataLatin1 from shared objects file] 312 [Loaded sun.net.www.ParseUtil from shared objects file] 313 [Loaded java.util.BitSet from shared objects file] 314 [Loaded java.net.URL from shared objects file] 315 [Loaded java.util.Hashtable$Holder from C:\Program Files\Java\jre7\lib\rt.jar] 316 [Loaded java.net.URL$1 from C:\Program Files\Java\jre7\lib\rt.jar] 317 [Loaded java.net.Parts from shared objects file] 318 [Loaded java.net.URLStreamHandler from shared objects file] 319 [Loaded sun.net.www.protocol.file.Handler from shared objects file] 320 [Loaded sun.misc.JavaSecurityAccess from C:\Program Files\Java\jre7\lib\rt.jar] 321 [Loaded java.security.ProtectionDomain$1 from C:\Program Files\Java\jre7\lib\rt.jar] 322 [Loaded sun.misc.JavaSecurityProtectionDomainAccess from C:\Program Files\Java\jre7\lib\rt.jar] 323 [Loaded java.security.ProtectionDomain$3 from C:\Program Files\Java\jre7\lib\rt.jar] 324 [Loaded java.security.CodeSource from shared objects file] 325 [Loaded java.security.ProtectionDomain$Key from C:\Program Files\Java\jre7\lib\rt.jar] 326 [Loaded java.security.Principal from shared objects file] 327 [Loaded java.util.HashSet from shared objects file] 328 [Loaded sun.misc.URLClassPath from shared objects file] 329 [Loaded sun.net.www.protocol.jar.Handler from shared objects file] 330 [Loaded sun.misc.Launcher$AppClassLoader from shared objects file] 331 [Loaded sun.misc.Launcher$AppClassLoader$1 from shared objects file] 332 [Loaded java.lang.SystemClassLoaderAction from shared objects file] 333 [Loaded sun.launcher.LauncherHelper from C:\Program Files\Java\jre7\lib\rt.jar] 334 [Loaded java.net.URLClassLoader$1 from shared objects file] 335 [Loaded sun.net.util.URLUtil from C:\Program Files\Java\jre7\lib\rt.jar] 336 [Loaded sun.misc.URLClassPath$3 from shared objects file] 337 [Loaded sun.misc.URLClassPath$Loader from shared objects file] 338 [Loaded sun.misc.URLClassPath$JarLoader from shared objects file] 339 [Loaded java.util.zip.ZipConstants from shared objects file] 340 [Loaded java.util.zip.ZipFile from shared objects file] 341 [Loaded sun.misc.JavaUtilZipFileAccess from shared objects file] 342 [Loaded java.util.zip.ZipFile$2 from shared objects file] 343 [Loaded sun.nio.cs.ThreadLocalCoders from C:\Program Files\Java\jre7\lib\rt.jar] 344 [Loaded sun.nio.cs.ThreadLocalCoders$Cache from C:\Program Files\Java\jre7\lib\rt.jar] 345 [Loaded sun.nio.cs.ThreadLocalCoders$1 from C:\Program Files\Java\jre7\lib\rt.jar] 346 [Loaded sun.nio.cs.ThreadLocalCoders$2 from C:\Program Files\Java\jre7\lib\rt.jar] 347 [Loaded sun.nio.cs.Unicode from shared objects file] 348 [Loaded sun.nio.cs.UTF_8 from shared objects file] 349 [Loaded sun.nio.cs.UTF_8$Decoder from shared objects file] 350 [Loaded java.security.PrivilegedActionException from shared objects file] 351 [Loaded sun.misc.URLClassPath$FileLoader from shared objects file] 352 [Loaded sun.misc.Resource from shared objects file] 353 [Loaded sun.misc.URLClassPath$FileLoader$1 from shared objects file] 354 [Loaded java.lang.Package from shared objects file] 355 [Loaded sun.nio.ByteBuffered from shared objects file] 356 [Loaded sun.misc.PerfCounter from C:\Program Files\Java\jre7\lib\rt.jar] 357 [Loaded sun.misc.Perf$GetPerfAction from C:\Program Files\Java\jre7\lib\rt.jar] 358 [Loaded sun.misc.Perf from C:\Program Files\Java\jre7\lib\rt.jar] 359 [Loaded sun.misc.PerfCounter$CoreCounters from C:\Program Files\Java\jre7\lib\rt.jar] 360 [Loaded sun.nio.ch.DirectBuffer from shared objects file] 361 [Loaded java.nio.MappedByteBuffer from shared objects file] 362 [Loaded java.nio.DirectByteBuffer from shared objects file] 363 [Loaded java.nio.LongBuffer from C:\Program Files\Java\jre7\lib\rt.jar] 364 [Loaded java.nio.DirectLongBufferU from C:\Program Files\Java\jre7\lib\rt.jar] 365 [Loaded java.security.PermissionCollection from shared objects file] 366 [Loaded java.security.Permissions from shared objects file] 367 [Loaded java.net.URLConnection from shared objects file] 368 [Loaded sun.net.www.URLConnection from shared objects file] 369 [Loaded sun.net.www.protocol.file.FileURLConnection from shared objects file] 370 [Loaded sun.net.www.MessageHeader from shared objects file] 371 [Loaded java.io.FilePermission from shared objects file] 372 [Loaded java.io.FilePermission$1 from shared objects file] 373 [Loaded java.io.FilePermissionCollection from shared objects file] 374 [Loaded java.security.AllPermission from shared objects file] 375 [Loaded java.security.UnresolvedPermission from shared objects file] 376 [Loaded java.security.BasicPermissionCollection from shared objects file] 377 [Loaded cn.zno.outofmomery.Test from file:/E:/e/workspace/executable/target/classes/] 378 [Loaded java.lang.Void from shared objects file] 379 [Loaded java.lang.management.ManagementFactory from C:\Program Files\Java\jre7\lib\rt.jar] 380 [Loaded sun.management.ManagementFactoryHelper from C:\Program Files\Java\jre7\lib\rt.jar] 381 [Loaded sun.security.action.LoadLibraryAction from shared objects file] 382 [Loaded sun.management.VMManagement from C:\Program Files\Java\jre7\lib\rt.jar] 383 [Loaded sun.management.VMManagementImpl from C:\Program Files\Java\jre7\lib\rt.jar] 384 [Loaded java.lang.management.PlatformManagedObject from C:\Program Files\Java\jre7\lib\rt.jar] 385 [Loaded java.lang.management.ClassLoadingMXBean from C:\Program Files\Java\jre7\lib\rt.jar] 386 [Loaded sun.management.ClassLoadingImpl from C:\Program Files\Java\jre7\lib\rt.jar] 387 true 388 384 389 384 390 0 391 [Loaded java.lang.Shutdown from shared objects file] 392 [Loaded java.lang.Shutdown$Lock from shared objects file]
看行号,去掉两个Opened
ManagementFactory (一) getClassLoadingMXBean
标签:
原文地址:http://www.cnblogs.com/zno2/p/4571769.html