我的情况是我必须在我的tomcat中部署两个war文件。 运用
tomcat.apache.org/download-70.cgi#7.0.50
我有一台带3GB RAM的Windows Server 2003机器。 setenv.bat配置是
设置JAVA_OPTS = -XX:MaxPermSize = 1024m -Xms256M -Xmx2048M%JAVA_OPTS%
现在,什么有效:用startup.bat运行tomcat时。 一切都按照我想要的方式运行。
什么行不通:我安装了tomcat作为服务。 在Tomcat7w.exe中进行相同的配置。 但是,在部署第二次战争阶段它不会部署,它只是停滞不前。 完全没有错误。
此外,当我将tomcat作为没有war文件的服务运行时,它会成功运行。
任何人都可以帮助我。
谢谢Arvind
I am in a situation where I have to deploy two war files in my tomcat . Using
tomcat.apache.org/download-70.cgi#7.0.50
I have a windows server 2003 machine with 3GB RAM. setenv.bat configuration is
set JAVA_OPTS=-XX:MaxPermSize=1024m -Xms256M -Xmx2048M %JAVA_OPTS%
Now, What works: When running tomcat with startup.bat. Everything runs fine the way I want.
What does not work : I installed tomcat as a service. Made same configurations in Tomcat7w.exe . But was will not deploy , on deploying second war stage it just stucks. No errors at all.
Also, when I run tomcat as a service without war files, it runs successfully.
Can anyone please help me out.
Thanks Arvind
最满意答案
我没有发表很多问题但是我得到了myslef的答案。 应该尝试更多,然后在这里发布。 谢谢你们,如果你正在寻找解决方案。 我通过改变内存设置来修复它。 我必须对这些内存设置进行一些测试,最后其中一个有效。
因此,对于此部署,我为XMx保留了1024MB,并且perm大小为412 MB,并且它工作正常。
干杯!
I do not post many questions but I get to the answers by myslef. Should have tried more and then post here. Thank you guys if you are looking out for a solution. I fixed it by changing memory setting. I had to do a number of tests on these memory settings and finally one of them worked.
So for this deployment I kept 1024MB for XMx and perm size of 412 MB and it worked.
Cheers!
更多推荐
发布评论