在容器化的环境中,当我们使用java时,在资源方面有巨大的浪费。在垂直扩展方面,我们需要一个优化的JVM。是否有针对OpenJ9和HotSpot G1的垂直扩展和内存使用情况的公开比较测试
发布于 2019-04-17 18:58:05
在垂直扩展方面,OpenJDK 12是否优于J9?
在这个阶段很难回答,因为没有公开可用的比较测试。现在,这两个JVM在弹性方面看起来都很好。
有一个已知的问题与提交的RAM的监控机制有关。
使用OpenJ9 you have to do it on OS level
To test vertical scaling with respect to memory in OpenJ9 I recommend to monitor the resident-set-size (RSS) of a Java process with a script like this:
while true; do
sleep 1
ps -orss --no-headers --pid $1
done虽然OpenJDK允许monitor the committed RAM inside a code running in JVM,但你也可以使用标准工具,如VisualVM或其他工具。
https://stackoverflow.com/questions/55723402
复制相似问题