Note that there are some explanatory texts on larger screens.

plurals
  1. POJava OutOfMemory exception: mmap error on loading zip file
    primarykey
    data
    text
    <p>I run my app on production env (rhel 5.2 x64, oracle jre 1.7_05, tomcat 7.0.28) with JVM arguments:</p> <pre><code>-Xms8192m -Xmx8192m -XX:MaxPermSize=1024m -Doracle.net.tns_admin=/var/ora_net -XX:ReservedCodeCacheSize=512m -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -XX:+UseStringCache -XX:+OptimizeStringConcat -XX:+UseCompressedOops -XX:+UseG1GC -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9026 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false </code></pre> <p>After several time i've got stack trace like that:</p> <pre><code>Java HotSpot(TM) 64-Bit Server VM warning: Attempt to deallocate stack guard pages failed. Java HotSpot(TM) 64-Bit Server VM warning: Attempt to allocate stack guard pages failed. mmap failed for CEN and END part of zip file [...] Caused by: java.lang.OutOfMemoryError: null at java.util.zip.ZipFile.$$YJP$$open(Native Method) ~[na:1.7.0_05] at java.util.zip.ZipFile.open(Unknown Source) ~[na:1.7.0_05] at java.util.zip.ZipFile.&lt;init&gt;(Unknown Source) ~[na:1.7.0_05] at java.util.zip.ZipFile.&lt;init&gt;(Unknown Source) ~[na:1.7.0_05] at java.util.jar.JarFile.&lt;init&gt;(Unknown Source) ~[na:1.7.0_05] at java.util.jar.JarFile.&lt;init&gt;(Unknown Source) ~[na:1.7.0_05] at sun.net.www.protocol.jar.URLJarFile.&lt;init&gt;(Unknown Source) ~[na:1.7.0_05] at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source) ~[na:1.7.0_05] at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source) ~[na:1.7.0_05] at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source) ~[na:1.7.0_05] at sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown Source) ~[na:1.7.0_05] at java.net.URL.openStream(Unknown Source) ~[na:1.7.0_05] at org.apache.catalina.loader.WebappClassLoader.findLoadedResource(WebappClassLoader.java:3279) ~[na:na] at org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClassLoader.java:1478) ~[na:na] at org.apache.http.util.VersionInfo.loadVersionInfo(VersionInfo.java:242) ~[httpcore-4.2.jar:4.2] at org.apache.http.impl.client.DefaultHttpClient.setDefaultHttpParams(DefaultHttpClient.java:180) ~[httpclient-4.2.jar:4.2] at org.apache.http.impl.client.DefaultHttpClient.createHttpParams(DefaultHttpClient.java:158) ~[httpclient-4.2.jar:4.2] at org.apache.http.impl.client.AbstractHttpClient.getParams(AbstractHttpClient.java:448) ~[httpclient-4.2.jar:4.2] </code></pre> <p>Looking to my profiler - everthing is ok (heap and non-heap memory used for 10%) and i have no idea where is the problem.</p> <p>This problem's happening every day at same time and it's not connected to application uptime. What is cause it problem?</p> <p><strong>Edited:</strong></p> <p>New output in log file:</p> <pre><code>Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled. Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize= Code Cache [0x00002aaaab790000, 0x00002aaaad240000, 0x00002aaacb790000) total_blobs=4223 nmethods=3457 adapters=707 free_code_cache=497085Kb largest_free_block=508887936 </code></pre> <p>But i have enough memory: <a href="https://i.stack.imgur.com/K8VMx.jpg" rel="noreferrer">http://i.stack.imgur.com/K8VMx.jpg</a></p> <p><strong>Answer:</strong> Problem in java version. It descripted here: <a href="https://forums.oracle.com/forums/thread.jspa?messageID=10369413" rel="noreferrer">https://forums.oracle.com/forums/thread.jspa?messageID=10369413</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload