调试 NetBeans 模块时出现 OutOfMemory/PermGen 错误
我一直在 OSX 上开发几个 NetBeans 7 模块,没有遇到什么问题。但是,当我去调试模块时,它会打开一个新的 NetBeans 实例用于调试目的,并且在使用几分钟后,我收到 OutOfMemory 和 PermGen 异常。调试时如何避免这些?事实上,调试是毫无意义的,我被迫“运行”代码。调试时在哪里可以增加分配给 NetBeans 的内存?谢谢!
I've been developing a couple of NetBeans 7 modules on OSX with little problem. However, when I go to debug the modules, it opens up a new NetBeans instance for debugging purposes and after a few minutes of use I get OutOfMemory and PermGen exceptions. How can I avoid these when debugging? It's to the point that actually debugging is pointless, and I'm forced to "Run" the code instead. Where can I increase the memory allocated to NetBeans when debugging? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试查看http://performance.netbeans.org/howto/jvmswitches/。特别是
–J-XX:MaxPermSize=192m
值得一试。Try looking at http://performance.netbeans.org/howto/jvmswitches/. In particular,
–J-XX:MaxPermSize=192m
is worth a try.