1

我正在评估 Quarkus,我有一个非常简单的应用程序构建为本机映像。在应用程序中,我有 Smallreye Metrics。一切正常,但我无法推断 Smallrye 和 Docker 报告的内存使用情况。

当我运行 docker stats 时,我得到

CONTAINER ID        NAME                CPU %               MEM USAGE / LIMIT   MEM %               NET I/O             BLOCK I/O           PIDS
6510f3adb51b        lucid_newton        0.01%               4.668MiB / 10MiB    46.68%              15kB / 81.3kB       0B / 0B             26

所以 4.6MB,很酷。

当我查看 Smallrye 输出/metrics时,我看到了

# HELP base_memory_usedHeap_bytes Displays the amount of used heap memory in bytes.
# TYPE base_memory_usedHeap_bytes gauge
base_memory_usedHeap_bytes 1.5272E7
# HELP vendor_memory_committedNonHeap_bytes Displays the amount of non heap memory in bytes that is committed for the Java virtual machine to use.
# TYPE vendor_memory_committedNonHeap_bytes gauge
vendor_memory_committedNonHeap_bytes 1.2715696E7
# HELP vendor_memory_maxNonHeap_bytes Displays the maximum amount of used non-heap memory in bytes.
# TYPE vendor_memory_maxNonHeap_bytes gauge
vendor_memory_maxNonHeap_bytes -1.0
# HELP vendor_memory_usedNonHeap_bytes Displays the amount of used non-heap memory in bytes.
# TYPE vendor_memory_usedNonHeap_bytes gauge
vendor_memory_usedNonHeap_bytes 1.2715696E7

这大约是 10 倍(如果我正确阅读了科学记数法)。我错过了什么?

4

0 回答 0