0

我有几个在 unix box 上运行的集成服务器。这些服务器从 websphere 队列中挑选数据并处理它们。其中一台服务器自动关闭并给出java.lang.OutOfMemoryError

超出了 GC 开销限制。

我想JVM在 uinx 上增加这个特定服务器的参数。我怎样才能做到这一点?有什么命令可以这样做吗?提前致谢。

4

2 回答 2

0

If you check the startIntegrationServer.sh you can see the integration servers start with below arguments:

${JAVA} -classpath Foundation/jar/bootstrapper.jar ${AGENT_JAVA_OPTS} com.sterlingcommerce.woodstock.noapp.NoAppLoader -class com.yantra.integration.adapter.IntegrationAdapter -f Foundation/properties/AGENTDynamicclasspath.cfg -invokeargs "$@"

So you can pass Minheap Maxheap Maxpermsixe like below in startIntegrationServer.sh and start the servers:

${JAVA} **$MINHEAP $MAXHEAP $MAXPERMSIZE** -classpath Foundation/jar/bootstrapper.jar ${AGENT_JAVA_OPTS} com.sterlingcommerce.woodstock.noapp.NoAppLoader -class com.yantra.integration.adapter.IntegrationAdapter -f Foundation/properties/AGENTDynamicclasspath.cfg -invokeargs "$@"
于 2016-06-03T13:30:02.583 回答
0

您还可以编辑 Sandbox.cfg 文件以增加内存参数并运行 setupfile.cmd

于 2017-05-29T06:39:26.087 回答