我正在评估Quarkus,我有一个非常简单的应用程序作为本机映像构建。在应用程序中,我有Smallreye指标。一切正常,但是我无法推断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倍(如果我正确阅读科学记数法的话)。我想念什么?