map file in tmp directory

Puneet Kishor punkish at EIDESIS.ORG
Mon Mar 6 10:10:12 EST 2006


On Mar 6, 2006, at 9:01 AM, Chip Taylor wrote:

> I was aghast to find over 4,000 files in my /tmp directory.  That is 
> the
> directory I have designated as the IMAGEPATH and IMAGEURL for 
> MapServer.  I
> know that these files are only created if MapServer is run in Browse 
> mode.

as opposed to what other mode?

> I am running under IIS.  Short of creating a scheduled process, is 
> there a
> way that MapServer can remove these files once they are served?  I 
> know that
> they are only used one time and then never again.  Seems to be 
> inefficient
> to let them pile up.

yup. It is inefficient to let them pile up, but you have to do it, not 
MapServer. Just schedule a simple "rm *.png" (or equivalent) every n 
minutes or so. There are ways you can also send the image directly to 
the browser instead of first writing it to the disk. Just search the 
archives for hints.


--
Puneet Kishor



More information about the mapserver-users mailing list