kubernetes pod memory - java gc logs

后端 未结 2 1694
太阳男子
太阳男子 2020-12-09 13:38

On the kubernetes dashboard, there\'s a pod wherein the Memory Usage (bytes) is displayed as 904.38Mi.

This pod holds the java app that was ran with

2条回答
  •  囚心锁ツ
    2020-12-09 14:04

    GC deals with a subset of memory used by process. There are regions of JVM memory which are not subject for garbage collection.

    Below are few memory areas are not included in heap / metaspace

    • Thread Stack Space
    • Compressed Class Space
    • JIT compiled code
    • NIO direct buffer memory

    List above is not full, these are just largest memory consumers.

    Here is JVM memory hierarchy diagram with related config options.

    In summary, actual JVM memory appetite is always large than heap limit.

    How much large depends on nature of application and could be established empirically.

    UPDATE

    Java Native Memory Tracking could be enabled in JVM to provide detailed reports related to memory usage across different functional areas.

提交回复
热议问题