[viewvc-users] /tmp filling up with tempfile.*.tmp; annotate pdf's?

Karl Berry <[email protected]> Mon, 27 Aug 2012 17:48:48 -0700 (PDT)
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <429816919.1433.1346114928556.JavaMail.httpd__10770.5828421333$1346159129$gmane$org@localhost>
My /tmp is filling up with tempfile.*.tmp files created by viewvc.  This is the same problem reported in http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&viewType=browseAll&dsMessageId=2708286
except that I don't have any cron job killing off processes, as the OP did there.

I don't know why or when Apache is choosing to kill processes off, but I don't doubt that or something like it is the problem.  I have a moderately large svn repository (TeX Live), full of moderately large PDF's and other large files, and most of the tempfiles are versions of those PDF's. Example:
http://tug.org/svn/texlive/trunk/Master/texmf-dist/doc/latex/hyperref/hyperref.pdf?view=log

When I click the "annotate" link on that page, I eventually get 504 Gateway Timeout.  Due to asynchronous operations, I can't prove that that is what leaves the tempfiles behind, but it seems likely.

I'm not sure what more viewvc can do to clean up; I see the SIGTERM handler in svn_repos.py, so one would think it would be happening.  But apparently not.

Going in another direction, is there a way to tell viewvc not to show the annotate links at all for certain files or file types or some such?  It's not like one can usefully annotate PDFs, after all.  I could not find it, but maybe I missed it.  Likewise with the "diff with previous" links, and similar.

(I know it's preferable not to have pdf's or other binaries in the source repository, but I don't have that luxury. I have to deal with them there.)

Any hints gratefully received.  Thanks,
Karl ([email protected])

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3001435

To unsubscribe from this discussion, e-mail: [[email protected]].