jvm

jvm在线教程

查看当前JVM信息

使用参考

  1. $ jvm
  2. RUNTIME
  3. --------------------------------------------------------------------------------------------------------------
  4. MACHINE-NAME 37@ff267334bb65
  5. JVM-START-TIME 2020-07-23 07:50:36
  6. MANAGEMENT-SPEC-VERSION 1.2
  7. SPEC-NAME Java Virtual Machine Specification
  8. SPEC-VENDOR Oracle Corporation
  9. SPEC-VERSION 1.8
  10. VM-NAME Java HotSpot(TM) 64-Bit Server VM
  11. VM-VENDOR Oracle Corporation
  12. VM-VERSION 25.201-b09
  13. INPUT-ARGUMENTS []
  14. CLASS-PATH demo-arthas-spring-boot.jar
  15. BOOT-CLASS-PATH /usr/lib/jvm/java-8-oracle/jre/lib/resources.jar:/usr/lib/jvm/java-8-oracle/j
  16. re/lib/rt.jar:/usr/lib/jvm/java-8-oracle/jre/lib/sunrsasign.jar:/usr/lib/jvm/
  17. java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar:/us
  18. r/lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/l
  19. ib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/classes
  20. LIBRARY-PATH /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
  21. --------------------------------------------------------------------------------------------------------------
  22. CLASS-LOADING
  23. --------------------------------------------------------------------------------------------------------------
  24. LOADED-CLASS-COUNT 7529
  25. TOTAL-LOADED-CLASS-COUNT 7529
  26. UNLOADED-CLASS-COUNT 0
  27. IS-VERBOSE false
  28. --------------------------------------------------------------------------------------------------------------
  29. COMPILATION
  30. --------------------------------------------------------------------------------------------------------------
  31. NAME HotSpot 64-Bit Tiered Compilers
  32. TOTAL-COMPILE-TIME 14921(ms)
  33. --------------------------------------------------------------------------------------------------------------
  34. GARBAGE-COLLECTORS
  35. --------------------------------------------------------------------------------------------------------------
  36. PS Scavenge name : PS Scavenge
  37. [count/time (ms)] collectionCount : 7
  38. collectionTime : 68
  39. PS MarkSweep name : PS MarkSweep
  40. [count/time (ms)] collectionCount : 1
  41. collectionTime : 47
  42. --------------------------------------------------------------------------------------------------------------
  43. MEMORY-MANAGERS
  44. --------------------------------------------------------------------------------------------------------------
  45. CodeCacheManager Code Cache
  46. Metaspace Manager Metaspace
  47. Compressed Class Space
  48. Copy Eden Space
  49. Survivor Space
  50. MarkSweepCompact Eden Space
  51. Survivor Space
  52. Tenured Gen
  53. --------------------------------------------------------------------------------------------------------------
  54. MEMORY
  55. --------------------------------------------------------------------------------------------------------------
  56. HEAP-MEMORY-USAGE init : 268435456(256.0 MiB)
  57. [memory in bytes] used : 18039504(17.2 MiB)
  58. committed : 181403648(173.0 MiB)
  59. max : 3817865216(3.6 GiB)
  60. NO-HEAP-MEMORY-USAGE init : 2555904(2.4 MiB)
  61. [memory in bytes] used : 33926216(32.4 MiB)
  62. committed : 35176448(33.5 MiB)
  63. max : -1(-1 B)
  64. --------------------------------------------------------------------------------------------------------------
  65. OPERATING-SYSTEM
  66. --------------------------------------------------------------------------------------------------------------
  67. OS Linux
  68. ARCH amd64
  69. PROCESSORS-COUNT 3
  70. LOAD-AVERAGE 29.53
  71. VERSION 4.15.0-52-generic
  72. --------------------------------------------------------------------------------------------------------------
  73. THREAD
  74. --------------------------------------------------------------------------------------------------------------
  75. COUNT 30
  76. DAEMON-COUNT 24
  77. PEAK-COUNT 31
  78. STARTED-COUNT 36
  79. DEADLOCK-COUNT 0
  80. --------------------------------------------------------------------------------------------------------------
  81. FILE-DESCRIPTOR
  82. --------------------------------------------------------------------------------------------------------------
  83. MAX-FILE-DESCRIPTOR-COUNT 1048576
  84. OPEN-FILE-DESCRIPTOR-COUNT 100
  85. Affect(row-cnt:0) cost in 88 ms.

THREAD相关

  • COUNT: JVM当前活跃的线程数

  • DAEMON-COUNT: JVM当前活跃的守护线程数

  • PEAK-COUNT: 从JVM启动开始曾经活着的最大线程数

  • STARTED-COUNT: 从JVM启动开始总共启动过的线程次数

  • DEADLOCK-COUNT: JVM当前死锁的线程数

文件描述符相关

  • MAX-FILE-DESCRIPTOR-COUNT:JVM进程最大可以打开的文件描述符数

  • OPEN-FILE-DESCRIPTOR-COUNT:JVM当前打开的文件描述符数