简体   繁体   English

Permgen空间错误tomcat

[英]Permgen space error tomcat

I just installed two tomcat in my machine and deployed same application on both. 我刚在机器上安装了两个tomcat,并在两者上部署了相同的应用程序。 Both application and tomcats are running great. 应用程序和tomcats都运行良好。 Now i tried adding both the services to services.msc. 现在,我尝试将两个服务都添加到services.msc。 I done this successfully. 我成功做到了。 Now i can start and stop any service from services.msc. 现在,我可以启动和停止来自services.msc的任何服务。 But on accessing both application simultaneously, i found, i am able to access only one application and when i am trying to access other application, the corresponding service goes stop with a permgen space error in the logs. 但是发现同时访问两个应用程序时,我只能访问一个应用程序,而当我尝试访问其他应用程序时,相应的服务会因日志中出现permgen空间错误而停止。

I tried increasing space of ms and mx and also i found that "Path to executable" under tomcat6w.exe is same. 我尝试增加ms和mx的空间,而且我发现tomcat6w.exe下的“可执行文件路径”相同。

Now my concern is how to remove that permgen space error. 现在,我关心的是如何消除该permgen空间错误。 In my points it looks that both services are using one tomcat. 在我看来,这两种服务都使用一个tomcat。

if i am starting tomcats through command prompt or through batch file both are working great but problem causes only on the case when i am accessing both services from services.msc. 如果我是通过命令提示符或批处理文件启动Tomcat的,那么它们都工作得很好,但是问题仅在我从services.msc访问两个服务的情况下才引起。

Can you guys please help me in overcoming this problem. 你们能帮助我解决这个问题吗?

Set XX:MaxPermSize . 设置XX:MaxPermSize It will increase the PermSize of your JVM. 它将增加您的JVM的PermSize。 For example -XX:MaxPermSize=64m . 例如-XX:MaxPermSize=64m Reference 参考

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

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