查看pid命令
jps -q
查看堆的使用情况
一. jamp -head pid
8477b74-dmn5k/logs]# jmap -heap 9 Attaching to process ID 9, please wait... Debugger attached successfully. Server compiler detected. JVM version is 25.202-b08 using thread-local object allocation. Garbage-First (G1) GC with 1 thread(s) Heap Configuration: MinHeapFreeRatio = 40 MaxHeapFreeRatio = 70 MaxHeapSize = 1073741824 (1024.0MB) NewSize = 1363144 (1.2999954223632812MB) MaxNewSize = 643825664 (614.0MB) OldSize = 5452592 (5.1999969482421875MB) NewRatio = 2 SurvivorRatio = 8 metaspaceSize = 21807104 (20.796875MB) CompressedClassSpaceSize = 1073741824 (1024.0MB) MaxmetaspaceSize = 17592186044415 MB G1HeapRegionSize = 1048576 (1.0MB) Heap Usage: G1 Heap: regions = 1024 capacity = 1073741824 (1024.0MB) used = 654233080 (623.9252853393555MB) free = 419508744 (400.07471466064453MB) 60.93020364642143% used G1 Young Generation: Eden Space: regions = 557 capacity = 673185792 (642.0MB) used = 584056832 (557.0MB) free = 89128960 (85.0MB) 86.7601246105919% used Survivor Space: regions = 3 capacity = 3145728 (3.0MB) used = 3145728 (3.0MB) free = 0 (0.0MB) 100.0% used G1 Old Generation: regions = 65 capacity = 397410304 (379.0MB) used = 67030520 (63.92528533935547MB) free = 330379784 (315.07471466064453MB) 16.866829904843133% used



