有没有办法在同一个 Web 服务器上运行多个 Grails 应用程序而不会遇到 PermGen 错误?

发布于 2024-09-14 21:51:43 字数 251 浏览 3 评论 0原文

我们正在开发一些 Grails 应用程序,并在 Jetty 上部署 WAR。当我们一次运行每个应用程序时,它们的内存徘徊在 200 - 300 MB 左右,这是完全可以接受的。但是,添加更多应用程序会大大增加内存占用量。一旦我们运行了三个应用程序,通常会崩溃大约 900 MB。

所有三个应用程序都有 Quartz 作业。我尝试增加 PermGen 大小,但无济于事。并且向网络服务器添加更多内存并不是一个选择。有没有一种简单的方法可以减小 Grails 应用程序的大小?

We're developing a few Grails applications, and deploying the WARs on Jetty. When we run each of the applications one at a time, they hover at around 200 - 300 MB of memory, which is perfectly acceptable. But, adding any more applications increases the memory footprint... by a lot. Once we have our three applications running, we usually end up crashing around 900 MB.

All three of the applications have Quartz jobs. I've tried increasing the PermGen size, but to no avail. And adding more memory to the web server isn't an option. Is there an easy way to bring down the size of the Grails apps?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

想挽留 2024-09-21 21:51:43

我们已经编写了自定义的 ContextCleanupListener 来清理所有垃圾。

we have written our custom ContextCleanupListener to clean all garbage.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文