Hi all,
I have deployed a GeoServer vertical cluster in my lab (1 master, 3 slaves) and I am getting java.lang.OutOfMemoryError: PermGen space errors when I use the Web User Interface for more than 30 mins.
Some details about my setup:
Hardware: 32 CPU cores, 32GB RAM, 1 TB HDD
OS: Debian 7
Linux geosrv 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1 x86_64 GNU/Linux
Java: Oracle JDK 7
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
Tomcat: apache-tomcat-7.0.56.tar.gz
GeoServer version: 2.6.0 (the same issue has happened with 2.5.1)
Details: I have deployed a tomcat user under /home/tomcat and I have deployed 4 separate tomcat instances.
I have configured server.xml to point to different ports, and all startup without problem.
The setup is behind HAProxy and I have one backend pointing to the master GeoServer so that the UI requests go only to that instance.
This master instance hangs after I work a bit in the UI. The 3 slaves have no problem, even under stress by users.
The initialization of the master server is done through the following shell script:
export CATALINA_OPTS="-server -Xms1024M -Xmx4096M -XX:+UseParallelGC -XX:SoftRefLRUPolicyMSPerMB=36000 -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -XX:MaxPermSize=512m"
su - tomcat -c /home/tomcat/tomcat1/bin/startup.sh
This is part of the tomcat1 log:
http://pastebin.com/f8cMQeE4
Any ideas why the PermGen goes out of memory?
Thanks,
Angelos
--
Angelos Tzotsos
Remote Sensing Laboratory
National Technical University of Athens
http://users.ntua.gr/tzotsos