[Mono-aspnet-list] cleaning /tmp/www-data-temp-aspnet-0

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Tue Apr 20 15:42:40 EDT 2010


On Tue, 2010-04-20 at 22:18 +0300, Andrus wrote:
> Mono web service as running in Debian for a year.
> There is only 5 GB total disk space avaliable is server.
> /tmp/www-data-temp-aspnet-0  content is below. It subdirectories contain lot
> of dlls files which probably occupy much disk space.
> Is is safe to delete all or some of those directories to preserve disk space
> ?
> 
> Are there other places to clean ?
> How to force mono to clean itself so that junk files are deleted
> automatically ?

You TMPTIME in your /etc/default/rcS file, but this will only work when
booting.

Other options:
        * Run 'mountall --tmptime=XX' where XX is the number of hours:
        anything older will be deleted.
        * Modify the mod-mono-server2 script to delete
        "/tmp/${USER}-temp-aspnet-*" before actually running the
        program.
        * Delete the same files when apache reloads/starts
        ...

-Gonzalo




More information about the Mono-aspnet-list mailing list