更新时间:2021-10-23 23:25:46
以下修改解决了这个问题:
The following modifications solved the issue:
应用 https://***.com/a/3035916/236007中描述的更改>
切换到 Oracle Java 运行时( IBM Java 运行时)。
Switched to Oracle Java runtime (it was IBM Java runtime).
将 ulimit -v unlimited
放入 /etc/init.d/tomcat7
。
修改 /usr/share/tomcat7/bin/setenv.sh
文件如下(给它大约4 GB内存):
Modified the /usr/share/tomcat7/bin/setenv.sh
file as the following (giving it about 4 GB memory):
export JAVA_OPTS =$ JAVA_OPTS -Xmx4000m -XX:+ HeapDumpOnOutOfMemoryError -XX:HeapDumpPath = / mnt / data / tomcat_dump