0

I have a problem. I use PHP-FPM docker (php:8.0-fpm). After 2 days, I have found that the tmp directory is very big: 20.1 GB. And it still grows.

The Problem is, that my server has a storage only 30 GB :(

Do you know,

  • is it normal, that tmp directory grows very fast?
  • how can I limit the tmp directory size?

Size of TMP directory

krut1
  • 21
  • 4
  • This sounds like an application specific problem, PHP is not writing temp files on its own. What application are you running? – ArSeN Dec 23 '21 at 22:09
  • Thanks for your answer. I am using Symfony 5.4. I cannot find any information about symfony and tmp-files :( I have found, that the opcache can write in tmp-folder. But the opcache.max_file_size is set to 2MB (2097152), aber all of files in /tmp are bigger. – krut1 Dec 25 '21 at 10:02
  • well, symfony on its own is not an application but a framework. Did you write your own code? Does it write temp files somewhere? This would be my best guess. – ArSeN Dec 25 '21 at 16:39
  • The fact of the matter is that no. I don't save any files :( – krut1 Dec 25 '21 at 20:46

0 Answers0