[GeoNetwork-devel] Memory leak in Geonetwork 2.4.2 when when validating an ISO-2 schema?

Geonetworkers,

Anybody out there using Geonetwork to edit ISO 19115-2 metadata?

We have modified the files in geonetwork/xml/schemas/iso19139/ and geonetwork/xsl/ to support ISO-2 metadata -- i.e. with a root element of MI_Metadata instead of MD_Metadata.

When editing an ISO-2 record, if we click the "Check" button to validate it, it appears to work without generating any errors. But soon the web server becomes unusably slow, and eventually crashes with this error in the catalina.out file:

OutOfMemoryError: requested 4294967312 bytes for Chunk::new. Out of swap space?

The problem does NOT occur if we back out our changes that implement ISO-2 and only try to validate plain ISO 19115 records.

Have any of you developers seen anything like this kind of error?

Thanks in advance for any help,
--Rich

Details:

We are running Geonetwork 2.4.2, Tomcat 5.5.25, and Oracle 10.2, Java 1.6.0_19 on Red Hat Linux RHEL 5.5 using the following JVM settings:

    JAVA_OPTS="-Xmx1024M -Xms1024M -XX:MaxPermSize=256M -Xss10M"

(though we've also tried some variations on these settings.)

We've watched the Tomcat app in unix 'top' and it is consuming 100% CPU, and growing to 4GB or more in size. If watching it in JConsole, it does NOT appear to using up any additional memory from the JVM heap or stack, and the number of threads is constant.

--

Richard Fozzard, Computer Scientist
  Geospatial Metadata at NGDC: http://www.ngdc.noaa.gov/metadata

Cooperative Institute for Research in Environmental Sciences (CIRES)
Univ. Colorado & NOAA National Geophysical Data Center, Enterprise Data Systems 325 S. Broadway, Skaggs 1B-305, Boulder, CO 80305
Office: 303-497-6487, Cell: 303-579-5615, Email: richard.fozzard@anonymised.com