Java OutOfMemory exception: mmap error on loading zip file

后端 未结 4 1503
走了就别回头了
走了就别回头了 2021-01-02 04:35

I run my app on production env (rhel 5.2 x64, oracle jre 1.7_05, tomcat 7.0.28) with JVM arguments:

-Xms8192m -Xmx8192m -XX:MaxPermSize=1024m 
-Doracle.net.t         


        
4条回答
  •  长发绾君心
    2021-01-02 05:10

    I have seen these error before when running out of resources such as running out of swap space or running out of allowed memory mapping. Have a look at sudo cat /proc/$PID/maps | wc -l compared with cat /proc/sys/vm/max_map_count

    See comments below.


    I also suggested ....

    You appear to have run into a bug with YourKit. What version are you using?

    I would cut down most of your options as they either are the default and don't do anything or could be complicating matters.

    -mx8g -XX:MaxPermSize=1g -Doracle.net.tns_admin=/var/ora_net 
    -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC -Dcom.sun.management.jmxremote.port=9026
    

    I would try dropping -XX:+UseG1GC as well as this is a relatively new collector and shouldn't change your results.

提交回复
热议问题