heidsoft

Results 289 comments of heidsoft

# 查看jvm 默认参数值 ``` java -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+PrintFlagsFinal ```

jvm Max memory = [-Xmx] + [-XX:MaxPermSize] + number_of_threads * [-Xss]

# jvm 参数调试 ``` java -XX:+PrintGCDetails -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -version / # java -XX:+PrintGCDetails -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -version java version "1.8.0_151" Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) 64-Bit Server VM...

# 查看jvm 默认参数 ``` java -XX:+PrintFlagsInitial命令查看本机的初始化参数 ```

# 根据MaxRAMFraction jvm 分配最大值 ``` Java 8/9 brought support for -XX:+UseCGroupMemoryLimitForHeap (with -XX:+UnlockExperimentalVMOptions). This sets -XX:MaxRAM to the cgroup memory limit. Per default, the JVM allocates roughly 25% of the...

# 容器化之后jvm 参数调试 ``` https://dzone.com/articles/how-to-decrease-jvm-memory-consumption-in-docker-u ```

# k8s 容器网络分析工具 ``` https://github.com/heidsoft/netshoot ```

# /sys/fs/cgroup/memory/memory.stat ``` [root@xxxxxx ~]# cat /sys/fs/cgroup/memory/memory.stat cache 203841536 rss 72060928 rss_huge 12582912 mapped_file 43094016 swap 0 pgpgin 13652593 pgpgout 13609251 pgfault 39577330 pgmajfault 753 inactive_anon 401408 active_anon 73506816 inactive_file...

https://stackoverflow.com/questions/49854237/is-xxmaxramfraction-1-safe-for-production-in-a-containered-environment

# pod 监控相关 https://sysdig.com/blog/kubernetes-monitoring-prometheus/ https://itnext.io/kubernetes-monitoring-with-prometheus-in-15-minutes-8e54d1de2e13 https://dzone.com/articles/monitoring-kubernetes-in-production-how-to-guide-p https://logz.io/blog/kubernetes-monitoring/ https://akomljen.com/get-kubernetes-cluster-metrics-with-prometheus-in-5-minutes/ https://blog.freshtracks.io/a-deep-dive-into-kubernetes-metrics-part-3-container-resource-metrics-361c5ee46e66