[mapguide-trac] #1437: Memory leak in java webtier

MapGuide Open Source trac_mapguide at osgeo.org
Tue Sep 14 02:53:26 EDT 2010


#1437: Memory leak in java webtier
------------------------+---------------------------------------------------
   Reporter:  andymorf  |       Owner:              
       Type:  defect    |      Status:  new         
   Priority:  high      |   Milestone:  2.2         
  Component:  Web API   |     Version:  2.2.0       
   Severity:  critical  |    Keywords:  java webtier
External_id:            |  
------------------------+---------------------------------------------------
 After every call to a servlet using Java- WebApi the memory consumption of
 javaw.exe (tomcat) is increasing even after GC. A memory profiler on javaw
 shows that almost all the MgXXX objects remain in memory.

 Discussion on internals mailing list leads to following solution:

 Update line 2003 in /trunk/Oem/SWIGEx/Source/Modules/java.cxx with the
 following:

 Replaceall(tm, "new $javaclassname(cPtr, $owner)",
 "($javaclassname)ObjectFactory.createObject($module.getClassId(cPtr),
 cPtr, true)");

-- 
Ticket URL: <https://trac.osgeo.org/mapguide/ticket/1437>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list