[mapserver-users] mapscript.jar in java

Forest forest21000 at yahoo.cn
Tue Sep 11 02:37:26 PDT 2012








Hi Everyone,
    I'm using mapscript.jar in Java project.When I use the DrawMap.java examples in my Java Application,the Memory will not increase,the codes is below:
        for (i=0; i<1000; i++) {
             mapObj map = new mapObj("mymapfile.map");

           imageObj img = map.draw();
          img.delete();
          map.delete();
        }
   but When I use the code in my servlet project,the memory will increase very fast the code is below:
          mapObj map = new mapObj("mymapfile.map");

           imageObj img = map.draw();
           img.img.getBytes();
          img.delete();
          map.delete();
 
can anyone tell me how to solve the problem?thank you very much!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120911/bf9620bd/attachment.htm>


More information about the MapServer-users mailing list