3
3
Our web application converts pdf to png using ghostscript. Recently, a huge, over 60GB, temporary files was created on /tmp directory. Load average raised up to 18 near the time when this file was created. I'm completely lost on this, and would really appreciate any help. Thank you!
Detail:
- Ghostscript version is 8.70
- OS is Red Hat Enterprise Linux Server 5.2 (Tikanga)
- PDF file as input existed on file server. File size is about 150MB, 2 pages, 445.8 x 323.2 mm, PDF 1.6 (Acrobat 7.x)
- A problem of nfs occurred almost at the same time the file was created.
- I can't know which is the root cause: file size, file content, or problem of nfs.
Content of /tmp when the file was created is:
ls -lh /tmp ... -rw------- 1 apache apache 39K Jan 21 17:29 gs_eNsUng -rw------- 1 apache apache 66G Jan 29 12:12 gs_GamtbA ...
The application executes command such as:
gs \ -dSAFER \-dBATCH \ -dNOPAUSE \ -sDEVICE=png48 \ -dTextAlphaBits=4 \ -dGraphicsAlphaBits=4 \ -dMaxStripSize=8192 \ -dUseCropBox \ -sOutputFile=[path of output image file] \ [path of input pdf file]