Adding richfaces file upload feature to an existing web-app, suddenly causes the JVM running Tomcat to run out of memory sporadically.
I have a max upload file size (specified in my web.xml) to 1GB (Not sure if this causes the problem)
I have increased the underlying JVM options -Xms and -Xmx , I am going to increase the PermSize now from the default 64M.
However I am completely clueless as to why the JVM crashes, as not too many users access it at the same time.
Also the Tomcat Server Status shows free memory available upto 512 MB approx at a given time.
Perhaps it would help to give my configuration
Tomcat version 6.0.18
My current JAVA_OPTS: -Xms512M -Xmx1024M
I have not set the -XX:MaxPermSize yet, will try that.
Also researching more on this I found a flag to set the JVM to run in server mode. I am not clear on this. I woul appreciate if you guys can shed some light on this.