I almost can get GeoNetwork 2.4.1 to work perfectly in Tomcat 5.5 (JDK 1.5.0_17, Initial memory pool 245MB, Maximum memory pool: 1024MB) on Windows XP (3GB RAM, Core 2 Duo).
Sadly, Intermap returns OutOfMemoryError (see error report below) under two repeatable conditions:
1) by clicking on the "Open Map Viewer" link. The little base map in Geonetwork works well.
2) Playing with the map in http://localhost:8080/intermap after having done a search and metadata display in GeoNetwork. Intermap appears to be OK if I don't don't do any metadata display first.
Increasing the memory pool to 1200MB does make the "Open Map Viewer" work but any subsequent metadata display generates OutOfMemoryError in Geonetwork.
I can't make my Tomcat service start with more than 1200MB max memory pool. Is ther some memory leak or garbage collection problem?
A 1024MB memory pool should be more than enough according to the documentation and Jetty works fine with much less.
Am I missing something else or does GeoNetwork on Tomcat just need ridiculous amounts of memory.
Ciao, Wolfgang
2009-10-08 12:59:21,836 INFO [jeeves.request] - HTML Request (from 127.0.0.1) : /intermap/srv/en/map.getMain.embedded
2009-10-08 12:59:21,836 DEBUG [jeeves.request] - Method : GET
2009-10-08 12:59:21,836 DEBUG [jeeves.request] - Content type : null
2009-10-08 12:59:21,836 DEBUG [jeeves.request] - Accept : text/javascript, text/html, application/xml, text/xml, */*
2009-10-08 12:59:21,836 DEBUG [jeeves.request] - Session id is F819A2452C8C934B7F344F9203A7A7DD
2009-10-08 12:59:21,836 INFO [jeeves.service] - Dispatching : map.getMain.embedded
2009-10-08 12:59:21,836 DEBUG [jeeves.service] - -> no input parameters
2009-10-08 12:59:21,836 INFO [jeeves.service] - -> dispatching to output for : map.getMain.embedded
2009-10-08 12:59:21,836 INFO [jeeves.service] - -> transforming with stylesheet : C:\Tomcat5527\webapps\intermap\/xsl/index-embedded.xsl
2009-10-08 12:59:25,399 DEBUG [jeeves.service] - Raised exception while executing service
<error id="error">
<message>PermGen space</message>
<class>OutOfMemoryError</class>
<stack>
<at class="java.lang.ClassLoader" file="ClassLoader.java" line="-2" method="defineClass1" />
<at class="java.lang.ClassLoader" file="ClassLoader.java" line="620" method="defineClass" />
<at class="java.security.SecureClassLoader" file="SecureClassLoader.java" line="124" method="defineClass" />
<at class="org.apache.catalina.loader.WebappClassLoader" file="WebappClassLoader.java" line="1876" method="findClassInternal" />
<at class="org.apache.catalina.loader.WebappClassLoader" file="WebappClassLoader.java" line="889" method="findClass" />
<at class="org.apache.catalina.loader.WebappClassLoader" file="WebappClassLoader.java" line="1353" method="loadClass" />
<at class="org.apache.catalina.loader.WebappClassLoader" file="WebappClassLoader.java" line="1232" method="loadClass" />
<at class="java.lang.ClassLoader" file="ClassLoader.java" line="319" method="loadClassInternal" />
<at class="net.sf.saxon.pattern.Pattern" file="Pattern.java" line="40" method="make" />
<at class="net.sf.saxon.style.StyleElement" file="StyleElement.java" line="502" method="makePattern" />
</stack>
--
_______________________________
Wolfgang Grunberg
Arizona Geological Survey
wgrunberg@anonymised.com
520-770-3500