我如何查看JVM中的MaxPermSize? [英] How can I view the MaxPermSize in JVM?

查看:947
本文介绍了我如何查看JVM中的MaxPermSize?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我满足可怕的PermGen:出在TomCat上部署Web应用程序时出现内存不足错误。我已经尝试了很多可能的解决方案,但它们并没有解决问题(有时它起作用,通常不起作用)。我怀疑我的BuildConfig.groovy中的配置是否生效:

I'm meeting the dreadful PermGen:Out of memory error when deploying a web-app on TomCat. I have tried many possible solutions, but they don't work out(sometimes it works, usually it doesn't). I wonder if my config in "BuildConfig.groovy" take effect:

grails.tomcat.jvmArgs = ["-Xmx1024m", "-XX:MaxPermSize=1024m"]

有人知道如何查看实际应用的MaxPermSize JVM?

Does anyone know someway to view the MaxPermSize actually applied by the JVM?

推荐答案

您可以使用 JVisualVM 在JDK / bin目录中监控关于java进程的所有信息。

You can use JVisualVM in the JDK/bin directory to monitor everything about a java process.

这篇关于我如何查看JVM中的MaxPermSize?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆