[root@docker_test ~]# docker top 9bf87ef0db42
UID PID PPID C STIME TTY TIME CMD
root 11967 11949 0 Oct04 ? 00:00:00 sh /home/apps/start.sh
root 11992 11967 3 Oct04 ? 03:17:10 java -Xms128m -Xmx1800m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/apps/log/payvoucherservice -Djava.security.egd=file:/dev/./urandom -Dservicecomb.configurationSource.additionalUrls=file:///home/apps/config/application.yml -jar ./pay-voucher-service-2.0.0-RELEASE.jar
[root@docker_test ~]# docker exec -it 9bf87ef0db42 /bin/bash
[root@pay-voucher-service-bosi-x1hgv2-5568cfd4d9-2jt9h apps]# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Oct04 ? 00:00:00 sh /home/apps/start.sh
root 9 1 3 Oct04 ? 03:17:10 java -Xms128m -Xmx1800m -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseCMSInitiatingOcc
root 1886 0 0 11:11 pts/0 00:00:00 /bin/bash
root 1901 1886 0 11:11 pts/0 00:00:00 ps -ef
[root@pay-voucher-service-docker-x1hgv2-5568cfd4d9-2jt9h apps]# jmap -heap 9
Attaching to process ID 9, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 25.262-b13
using parallel threads in the new generation.
using thread-local object allocation.
Concurrent Mark-Sweep GC
Heap Configuration:
MinHeapFreeRatio = 40
MaxHeapFreeRatio = 70
MaxHeapSize = 1887436800 (1800.0MB)
NewSize = 44695552 (42.625MB)
MaxNewSize = 348913664 (332.75MB)
OldSize = 89522176 (85.375MB)
NewRatio = 2
SurvivorRatio = 8
MetaspaceSize = 21807104 (20.796875MB)
CompressedClassSpaceSize = 1073741824 (1024.0MB)
MaxMetaspaceSize = 17592186044415 MB
G1HeapRegionSize = 0 (0.0MB)
Heap Usage:
New Generation (Eden + 1 Survivor Space):
capacity = 40239104 (38.375MB)
used = 25850304 (24.65277099609375MB)
free = 14388800 (13.72222900390625MB)
64.2417485240228% used
Eden Space:
capacity = 35782656 (34.125MB)
used = 23710256 (22.611862182617188MB)
free = 12072400 (11.513137817382812MB)
66.26186720180861% used
From Space:
capacity = 4456448 (4.25MB)
used = 2140048 (2.0409088134765625MB)
free = 2316400 (2.2090911865234375MB)
48.021383846507355% used
To Space:
capacity = 4456448 (4.25MB)
used = 0 (0.0MB)
free = 4456448 (4.25MB)
0.0% used
concurrent mark-sweep generation:
capacity = 406192128 (387.375MB)
used = 198461920 (189.26803588867188MB)
free = 207730208 (198.10696411132812MB)
48.859125108401905% used
45856 interned Strings occupying 4804848 bytes.
【容器相关】docker查看JVM内存使用情况
最新推荐文章于 2024-05-01 10:17:58 发布