问题
I have a question about the Memory Management between a Tomcat8 Server linked with Eclipse and one on a Linux server.
My problem is, that the WebApp on the remote creates a lot of memory usage over time and the local one doesn't.
My other question: JSON Builder cause memory leak in Tomcat8 Application
This screenshot is from the one which is linked with eclipse.
And this one is on my Linux server.
Both Tomcat server have the same version 8.0.14 and also Java 8.
These are the settings from the remote one:
-Djava.util.logging.config.file=/var/lib/tomcat8/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.awt.headless=true
-Djava.security.policy=/tmp/tools.policy
-Xms256m
-Xmx3500m
-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.port=9090
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Djava.rmi.server.hostname=xxx.xxx.xxx.xxx
-Djava.endorsed.dirs=/usr/share/tomcat8/endorsed
-Dcatalina.base=/var/lib/tomcat8
-Dcatalina.home=/usr/share/tomcat8
-Djava.io.tmpdir=/tmp/tomcat8-tomcat8-tmp
and this from the local one:
-Dcatalina.base=C:\dev\java\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
-Dcatalina.home=C:\dev\Tomcat8
-Dwtp.deploy=C:\dev\java\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
-Djava.endorsed.dirs=C:\dev\Tomcat8\endorsed
-Dcom.sun.management.jmxremote=true
--Dcom.sun.management.jmxremote.port=9090
-Dcom.sun.management.jmxremote.ssl=false
--Dcom.sun.management.jmxremote.authenticate=false
-Djava.rmi.server.hostname=127.0.0.1
-Dfile.encoding=Cp1252
Update: Here I have 2 more images about the problem. This is the Eclipse One:
And this is the Linux One:
You see, the Eclipse one produce less memory usage over the time. Both server run about 2 hours now.
来源:https://stackoverflow.com/questions/46845798/what-is-the-difference-between-a-tomcat8-server-linked-with-eclipse-and-one-on-a