Details
Description
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:
listeners.put(listener, wrapper); wrapped.addFeatureListener(wrapper);
but to remove is wrong:
wrapped.removeFeatureListener(listener); listeners.remove(listener);
the
wrapped.removeFeatureListener(listener);
should be
wrapped.removeFeatureListener(wrapper);
Changing this have removed all our oom problems atm.
Issue Links
| This issue relates to: | ||||
| GEOS-2545 | ResourcePool uses significant resources building renaming datastores |
|
|
|
Patch applied on 1.7.x and trunk. Thanks for providing it.
May I recommend you have a look into the associated issue as well? It hinders performance quite a bit, if you have time you should consider looking into it as well