MaxMetaspaceSize=3072m 和 MaxHeap Size=11g 和 HeapSize=1024m 仍然内存不足:Metaspace

发布于 2025-01-15 03:26:24 字数 616 浏览 2 评论 0原文

我已将 MaxMetaspaceSize 设置为 3072m;最大堆大小=11g,堆大小=1024m。

任何人都可以建议服务器上的此设置有什么问题吗?

-d64 -XX:ThreadStackSize=256m -XX:NewRatio=2 -XX:+UseStringDeduplication -XX:+UseG1GC -XX:MaxMetaspaceSize=3072m

我们通常会遇到元空间问题,并且每次都会重新启动 Wildfly 服务器;但 6 小时后我们再次获得元空间。

已部署 40 个项目正在使用这些设置。 (每个项目只有大约 5 到 10 个类)并且大多数是调度程序(连接数据库并创建文件到 SFTP 或点击 Rest api 并更新一些数据库)。

大多在夜间起火一次,少数起火时间约为 30 分钟。在一次集成中,我们需要在内存中加载 2,00,000 个数据,并且集成运行良好。

元空间设置有问题吗?我应该增加吗? 输入图片此处描述

I have set MaxMetaspaceSize to 3072m; MaxHeap Size=11g and HeapSize=1024m.

Can anyone suggest what is problem with this settings on server

-d64 -XX:ThreadStackSize=256m -XX:NewRatio=2 -XX:+UseStringDeduplication -XX:+UseG1GC -XX:MaxMetaspaceSize=3072m

We usually get Metaspace issue and we restart the Wildfly server everytime; but after 6 hours we get metaspace again.

There are 40 projects deployed which are using these setting. (Each project has around 5 to 10 classes only) and mostly are schedulers (Connect DB and create file to SFTP OR hit Rest api and update some DB).

Mostly fire once during night and a few fire in like 30 minutes. In one integration, we need to load 2,00,000 data in memory and integration runs fine.

Is there issue in metaspace settings? Should i increase?
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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