[GeoNetwork-devel] Load testing GN 2.6.4 shows memory leak

Hi all,

I'm load testing GeoNetwork 2.6.4 with JMeter 2.5.1.
At the same time I monitor the Tomcat process with JVisualVM (mostly
v1.6.0_30).
In JMeter I send the following request:
http://localhost:8080/geonetwork/srv/en/xml.search?any=iso
with 50 threads, 60 seconds ramp-up and 50 loops.

Some Java params for Tomcat:
-Xms500m -Xmx1g -server -XX:MaxPermSize=256m

The first 1000-1500 requests performs well, but after 2000 requests the memory
is almost eaten up and most time is spent in garbage collection.
(with -Xmx8g I can reach 19000 requests)

I have tested and found the same behaviour with the following configurations:
- JDK 1.7.0_01 and apache-tomcat-7.0.22
- JDK 1.6.0_30 and apache-tomcat-6.0.35
- JDK 1.5.0_22 and apache-tomcat-5.5.34

In the heap dump I find a lot of instances of
org.jdom.Element/Attribute/AttributeList/ElementList
so maybe GeoNetwork XML responses are eating memory.

I have also had a look at the configuration and tips in Mastering Adv.
Geonetwork:
http://geonetwork-
opensource.org/_static/foss4g2010/FOSS4G_Mastering_Advanced_GeoNetwork.pdf

Many national and international institutions are using GeoNetwork, so I assume
there is a known stable configuration for GeoNetwork out there.
Please advice.

I will continue my load testing, maybe with Jetty.

merry christmas and happy new year from
Jørn Vegard Røsnes
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork