内存不应该被视为内存泄漏吗?

发布于 2025-01-22 07:13:17 字数 267 浏览 2 评论 0原文

我用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文