简体   繁体   English

如何防止Apache Tomcat中的PemGen空间错误

[英]how to prevent PemGen space error in Apache Tomcat

After 2 to 3 deployments, I'm continuously getting PemSpace Error in windows8. 经过2到3个部署后,我在Windows8中不断收到PemSpace错误。 I have been trying with different approaches like setting pemgen variables as java start parameter in Apache but no idea worked .could anyone help me in resolving this. 我一直在尝试不同的方法,例如在Apache中将pemgen变量设置为java start参数,但没有任何想法。

Hot deployments tend to cause perm-gen bloat. 热部署往往会导致烫发膨胀。 There's not much you can do about it other than restarting Tomcat after each deployment. 除了在每次部署后重新启动Tomcat外,您无能为力。

Use jstat or add -verbose:gc to the command line to monitor the Perm Space. 使用jstat或在命令行中添加-verbose:gc来监视彼尔姆空间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM