内存不应该被视为内存泄漏吗?
我用Springboot编写了Kubernetes中的3个豆荚。分配的最大内存为1.5 GB。从Inital 2缩放到3个负载的容器。现在每个POD中的内存使用量为1GB。但是,即使在非高峰时段,尺度也没有发生。在3个使用近1GB使用的POD中,记忆使用量是一致的。
该应用程序使用Java 11,Java 11的GC似乎是G1,它可能没有进行完整的内存释放。内存泄漏可能是它不下降或由于G1 GC的原因。 但是,如果其内存泄漏不应该稳定并不断增加吗?
谁能告诉我在这些情况下可能会发生什么?
I have 3 pods in kubernetes written in springboot. The max memory allocated is 1.5 GB. The container during some load scaled to 3 from inital 2. Now the memory usage in each POD is 1GB. But even during non peak hours the scale down is not happening.The memory usage is consistent in 3 pods with almost 1GB usage.
The application uses Java 11 and the GC of Java 11 seems to be G1 which might not be doing a full memory freeing. Could memory leak be a reason its not going down or because of G1 GC.
But if its memory leak it shouldn't be stable and keeps on increasing?
Can anyone tell me what exactly could be happening in these scenario?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论