/tmp filling up - is this due to Unit? #1004
Replies: 3 comments 3 replies
-
Hi, Unit does create temporary files on occasion but does clean them up. In this case, looking at the naming, they look like they have been created via the PHP tmpfile() function, but for some reason have not been removed, which can happen when
Unit hasn't been crashing has it? |
Beta Was this translation helpful? Give feedback.
-
Yes, it looks like the application is flapping (but not necessarily crashing, I'd expect to see something about signal 11 or 6 in there if it was). |
Beta Was this translation helpful? Give feedback.
-
Possibly. I'd say an idle timeout of 20 is pretty low, without knowing your workload it's hard to say, but I'd probably go for a couple of minutes or so, allows time for things to settle... is your traffic spiky? |
Beta Was this translation helpful? Give feedback.
-
Hi all, we've been running a PHP application on Nginx Unit on an Ubuntu server for a few months. Recently the hard drive filled up and it looks like there are 100's of files belonging to the
unit
user in/tmp
named like/tmp/php0aq0sp
.Is this from Nginx Unit? If so, is it possible to clear these automatically via Unit, or do we need a cron job to do so ourselves.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions