MapScript Java memory management

Arkadi Shishlov arkadi at MEBIUS.LV
Mon May 28 15:02:23 PDT 2007


Are there guidelines documented what need to be done (additionally to VM garbage collection) to correctly remove unneeded objects (classObj, layerObj), and how to use objects that may exists outside of Map object hierarchy? Like colorObj, in particular. The previous threads on this list indicate that there are some problems.
I'm asking because Tomcat is crashing for me sometimes and I suspect this because of colorObj
   protected static colorObj[] symbolColors = {..}
   style.setColor(symbolColors[i]);
later the class is removed with removeClass(), also entire context is reloaded in development process. Is it correct use of colorObj? Or
   style.getColor().setRGB()
should be used? Which is rather verbose, because setRGB() takes all components separately.
Any other quirks?



More information about the MapServer-users mailing list