我已经在我的机器上安装了vfabric-2.9.5-developer服务器,并且我使用tcruntime-instance.bat和tcruntime-ctl.bat脚本创建了独立服务器实例。当我在此实例上部署war文件时,服务器会耗尽时间。我在日志文件中注意到了这个异常 - 无法在120秒内启动..
我知道我的应用程序是繁重的企业应用程序,当我们在tomcat上部署它时,我们通常会使用eclipse的服务器编辑器来增加超时。但是,我不确定如何在vFabric实例上手动执行此操作而不使用服务器编辑器/ Hyperic。
同样的问题与堆大小和PermGen大小有关。我需要更改vfabric实例上的哪个conf文件来增加堆和PermGen的大小?我尝试在wrapper.conf中更改它,但没有任何区别。
这是来自wrapper.conf的片段,我尝试更改堆和PermGen大小:
# Java Additional Parameters
wrapper.java.additional.1="-Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed"
wrapper.java.additional.2="-Dcatalina.base=%CATALINA_BASE%"
wrapper.java.additional.3="-Dcatalina.home=%CATALINA_HOME%"
wrapper.java.additional.4="-Djava.io.tmpdir=%CATALINA_BASE%\temp"
wrapper.java.additional.5="-Djava.util.logging.manager=com.springsource.tcserver.serviceability.logging.TcServerLogManager"
wrapper.java.additional.6="-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties"
wrapper.java.additional.7="-Dwrapper.dump.port=-1"
wrapper.java.additional.8="-Xss256K"
wrapper.java.additional.9="-Dinsight.devedition=true"
wrapper.java.additional.10="-Daspectj.overweaving=true"
wrapper.java.additional.11="-Dorg.aspectj.tracing.factory=default"
wrapper.java.additional.12="-Dinsight.base=%CATALINA_BASE%/insight"
wrapper.java.additional.13="-Dinsight.logs=%CATALINA_BASE%/logs"
wrapper.java.additional.14="-Xmx1024m"
wrapper.java.additional.15="-Djava.awt.headless=true"
wrapper.java.additional.16="-XX:MaxPermSize=256m"
wrapper.java.additional.17="-Dgemfire.disableShutdownHook=true"
wrapper.java.additional.18="-Dgemfire.ignoreMisses=true"
wrapper.java.additional.19="-javaagent:%CATALINA_BASE%/bin/insight-weaver-1.9.2.SR3.jar"
我是这台服务器的新手,所以任何帮助都会非常感激。谢谢。
注意:我已经检查了这些问题并且没有解决我的问题 vmware-vfabric-server-timeout 和vmware-vfabric-tc-server-wont-start
更新:我试图重现120秒的消息,但我不再看到它了。这是我到目前为止捕获的内容:
com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseAdaptersAndCreateDelegate WSSERVLET11: failed to parse runtime descriptor: java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2928)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1174)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1669)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
at com.sun.xml.ws.model.RuntimeModeler.getResponseWrapperClass(RuntimeModeler.java:292)
at com.sun.xml.ws.model.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:676)
at com.sun.xml.ws.model.RuntimeModeler.processMethod(RuntimeModeler.java:586)
at com.sun.xml.ws.model.RuntimeModeler.processClass(RuntimeModeler.java:366)
at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:246)
at com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:343)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:205)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:513)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:257)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:151)
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseAdaptersAndCreateDelegate(WSServletContextListener.java:131)
at com.sun.xml.ws.transport.http.servlet.WSServletContainerInitializer.onStartup(WSServletContainerInitializer.java:65)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5444)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:634)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1074)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1858)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)