Memory leak in a Java web application

后端 未结 8 1767
借酒劲吻你
借酒劲吻你 2021-01-31 19:24

I have a Java web application running on Tomcat 7 that appears to have a memory leak. The average memory usage of the application increases linearly over time when under load (d

8条回答
  •  野的像风
    2021-01-31 20:00

    I removed the following JMX configuration from tomcat\bin\setenv.bat:

    set "JAVA_OPTS=%JAVA_OPTS% 
        -Dcom.sun.management.jmxremote=true 
        -Dcom.sun.management.jmxremote.port=9090
        -Dcom.sun.management.jmxremote.ssl=false
        -Dcom.sun.management.jmxremote.authenticate=false"
    

    I can't get detailed memory heap dumps anymore, but the memory profile looks much better: enter image description here

    24 hours later, the memory profile looks the same: enter image description here

提交回复
热议问题