Y
Yeah I Know
Guys,
I have been having a lot of problems with opening zip files in our web
application. It is deployed on Gentoo server (dual xeons, 4gb RAM)
running Tomcat 5.5.9.
Intially things are fine but after couple of days of running when you
try to upload a zip file, it throws an OutOfMemoryError even though it
has plenty of memory avialable. From doing a little bit of reading,
what I understand is that this has nothing to do with JVM's heap. But
when you upload a zip, the VM tries to allocate virtual memory (namap)
and in effect, it is this memory which gets exhausted.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4705373
Does anybody know a workaround for this? May be there are some of you
who have already come across this problem.
Also, yesterday I saw this stack trace:
java.lang.OutOfMemoryError
java.util.zip.ZipFile.open(Native Method)
java.util.zip.ZipFile.<init>(ZipFile.java:112)
java.util.jar.JarFile.<init>(JarFile.java:127)
java.util.jar.JarFile.<init>(JarFile.java:92)
org.apache.catalina.loader.WebappClassLoader.openJARs(WebappClassLoader.java:1544)
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1763)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1570)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
org.apache.catalina.loader.WebappClassLoader.loadClass(Webapp
Has anybody seen stuff like this before...
I found something interesting on Caucho's website under
OutOfMemoryError section:
http://www.caucho.com/resin-3.0/troubleshoot/symptoms.xtp
"for .jar/.zip files (specifically ZipFile), the JDK allocates virtual
memory. If you have a large number of jars open, you can run into
problems. It's conceivable that a getResourceAsStream for a jar file
that wasn't closed would use up .jar memory"
It all sounds very confusing to me. What is .jar memory. Are we just
inventing terms just for the heck of it or is there such thing called
..jar memory?
Anyway, I would really appreciate your feedback, comments, experiences
- in fact anything on this topic.
Kind regards...
Arup Vidyerthy
I have been having a lot of problems with opening zip files in our web
application. It is deployed on Gentoo server (dual xeons, 4gb RAM)
running Tomcat 5.5.9.
Intially things are fine but after couple of days of running when you
try to upload a zip file, it throws an OutOfMemoryError even though it
has plenty of memory avialable. From doing a little bit of reading,
what I understand is that this has nothing to do with JVM's heap. But
when you upload a zip, the VM tries to allocate virtual memory (namap)
and in effect, it is this memory which gets exhausted.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4705373
Does anybody know a workaround for this? May be there are some of you
who have already come across this problem.
Also, yesterday I saw this stack trace:
java.lang.OutOfMemoryError
java.util.zip.ZipFile.open(Native Method)
java.util.zip.ZipFile.<init>(ZipFile.java:112)
java.util.jar.JarFile.<init>(JarFile.java:127)
java.util.jar.JarFile.<init>(JarFile.java:92)
org.apache.catalina.loader.WebappClassLoader.openJARs(WebappClassLoader.java:1544)
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1763)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1570)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
org.apache.catalina.loader.WebappClassLoader.loadClass(Webapp
Has anybody seen stuff like this before...
I found something interesting on Caucho's website under
OutOfMemoryError section:
http://www.caucho.com/resin-3.0/troubleshoot/symptoms.xtp
"for .jar/.zip files (specifically ZipFile), the JDK allocates virtual
memory. If you have a large number of jars open, you can run into
problems. It's conceivable that a getResourceAsStream for a jar file
that wasn't closed would use up .jar memory"
It all sounds very confusing to me. What is .jar memory. Are we just
inventing terms just for the heck of it or is there such thing called
..jar memory?
Anyway, I would really appreciate your feedback, comments, experiences
- in fact anything on this topic.
Kind regards...
Arup Vidyerthy