Netbeans 和 Glassfish 性能

发布于 2024-08-07 18:40:18 字数 156 浏览 2 评论 0原文

我想知道是否有人有任何可能适合我的性能选项。我在我的工作笔记本电脑上使用 Netbeans 6.1 和 Glassfish V2,内存要求变得有点令人厌烦。我有 3 GB 内存,由于永久代空间错误,我经常不得不杀死所有内容并重新启动它。

我也玩过内存大小,但似乎没有什么真正有帮助。

I was wondering if anyone had any performance options that might work for me. I am using Netbeans 6.1 and Glassfish V2 on my work laptop and the memory requirements are getting a little tiresome. I have 3 gb of ram and I frequently have to kill everything and restart it due to PermGen Space errors.

I've played with the mem sizes as well but nothing seems to really help.

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

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

发布评论

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

评论(1

ぃ双果 2024-08-14 18:40:18

有没有办法通过 JConsole 监控 glassfish? JConsole 将向您显示正在使用多少 PermGen 空间(以及其他空间)。使用此信息可以帮助您调整启动参数。

此页面 http://java.sun.com/javase/technologies/hotspot/ vmoptions.jsp 列出了一些,我知道我已经看到了更多,特别是。当涉及到设置永久代大小时。

您可能还想查看您的 Web 应用程序如何分配进入永久代空间的内容。也许问题就在那里,而不是在 NB/GF 组合中。

最后,可以升级到NB 6.7吗?我知道更改应用程序服务器以进行开发很困难,尤其是。如果您在生产中部署到该版本的应用程序服务器(我也在那里遇到了问题)。但更改 IDE 也会有所帮助。

我知道这不是一个“答案”,但我希望它有所帮助。

Is there a way for you to monitor glassfish through JConsole? JConsole will show you how much PermGen space (as well as other spaces) is being used. Using this information can help you tweak your startup parameters.

This page http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp lists a few and I know I've seen more, esp. when it comes to setting permgen sizes.

You might also want to look at how your webapp(s) are allocating things that go into permgen space. Maybe the problem is there rather than in NB/GF combo.

Finally, is it possible for you to upgrade to NB 6.7? I know it's difficult to change your app server for development, esp. if you deploy to that version of the app server in production (I've experience problems there too). But changing the IDE could help too.

I know this is not an "answer", but I hope it helps.

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