Bug 66380 - mod_fcgi does not clean up fcgid.tmp.6iGI1y upon error
Summary: mod_fcgi does not clean up fcgid.tmp.6iGI1y upon error
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_fcgid (show other bugs)
Version: 2.5-HEAD
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-08 17:16 UTC by apache
Modified: 2022-12-08 17:16 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description apache 2022-12-08 17:16:47 UTC
Issue:
mod_fcgi does not clean up tmp files created due to FcgidMaxRequestInMem 65536


Symptoms:

My /tmp is filling up with this:

-rw------- 1 www-data www-data  65M Dec  8 10:59 /tmp/fcgid.tmp.gFPIuF
-rw------- 1 www-data www-data  41M Dec  8 11:03 /tmp/fcgid.tmp.ms4UpJ
-rw------- 1 www-data www-data 244M Dec  8 11:12 /tmp/fcgid.tmp.UkL7lk
-rw------- 1 www-data www-data  96M Dec  8 11:15 /tmp/fcgid.tmp.6iGI1y
-rw------- 1 www-data www-data 119M Dec  8 11:16 /tmp/fcgid.tmp.e9TvhU
-rw------- 1 www-data www-data  28M Dec  8 11:22 /tmp/fcgid.tmp.8fBOnS
-rw------- 1 www-data www-data  39M Dec  8 11:28 /tmp/fcgid.tmp.I09F3h
-rw------- 1 www-data www-data  68M Dec  8 11:39 /tmp/fcgid.tmp.oUprtV
-rw------- 1 www-data www-data  59M Dec  8 11:44 /tmp/fcgid.tmp.oACNiU
-rw------- 1 www-data www-data  61M Dec  8 11:48 /tmp/fcgid.tmp.OdEuOA
-rw------- 1 www-data www-data  41M Dec  8 11:49 /tmp/fcgid.tmp.SnyoVV
-rw------- 1 www-data www-data  82M Dec  8 12:05 /tmp/fcgid.tmp.okucYH


Client applications are uploading files, many of which are 100+ MB, which obviously don't fit in 65536 of memory.

Apache/mod_fcgi is not cleaning up these files once the script returns

IS-COMM-NYC-05 {/tmp} root# stat /tmp/fcgid.tmp.6AzAU2
  File: /tmp/fcgid.tmp.6AzAU2
  Size: 94732650        Blocks: 185040     IO Block: 4096   regular file
Device: fe01h/65025d    Inode: 1984        Links: 1
Access: (0600/-rw-------)  Uid: (   33/www-data)   Gid: (   33/www-data)
Access: 2022-12-08 12:12:21.216492271 -0500
Modify: 2022-12-08 12:12:21.212492266 -0500
Change: 2022-12-08 12:12:21.212492266 -0500
 Birth: -
IS-COMM-NYC-05 {/tmp} root#


192.168.48.244 - - [08/Dec/2022:12:12:19 -0500] "POST /api/public/CallQueue/UploadLogFile HTTP/1.1" 200 73 [RestSharp/108.0.2.0]