[Geoserver-devel] [jira] Created: (GEOS-3407) (The!) Memoryleak in RetypingFeatureSource

(The!) Memoryleak in RetypingFeatureSource
------------------------------------------

                 Key: GEOS-3407
                 URL: http://jira.codehaus.org/browse/GEOS-3407
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 2.0-RC1, 1.7.4
            Reporter: Fredrik Holmqvist
            Assignee: Andrea Aime
            Priority: Critical

We have tracked down the memoryleaks we have been having with GeoServer and the ArcSDE and PostGIS datastores. The symptoms was that after 1000-1300 getmap requests GeoServer would OOM no matter what configuration you are using.

It seems to be a small error in adding removing feature listeners. The code to add a feature listener i alright:
{code}
listeners.put(listener, wrapper);
wrapped.addFeatureListener(wrapper);
{code}
but to remove is wrong:
{code}
wrapped.removeFeatureListener(listener);
listeners.remove(listener);
{code}
the
{code}
wrapped.removeFeatureListener(listener);
{code}
should be
{code}
wrapped.removeFeatureListener(wrapper);
{code}
Changing this have removed all our oom problems atm.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira