/var/tmp full - php fpm session

dahu

Member
Dec 7, 2001
24
2
303
hi

i received :

Disk usage warning

The filesystem “/var/tmp” mounted at “/var/tmp” reached “warn” status because you currently use 84.5% of its available inodes.


After some search it seems that i have :

du -sh *
...
8.0K systemd-private-1e1aa62465b94ad8bff844f93d44c48c-chronyd.service-cqGJIU
6.3G systemd-private-1e1aa62465b94ad8bff844f93d44c48c-ea-php56-php-fpm.service-SdcgQh
8.0K systemd-private-1e1aa62465b94ad8bff844f93d44c48c-ea-php56-php-fpm.service-Zh5O5L
8.0K systemd-private-1e1aa62465b94ad8bff844f93d44c48c-ea-php71-php-fpm.service-jveoOA
91M systemd-private-1e1aa62465b94ad8bff844f93d44c48c-ea-php71-php-fpm.service-s90780
8.0K systemd-private-1e1aa62465b94ad8bff844f93d44c48c-ea-php72-php-fpm.service-fS1Hix
8.0K systemd-private-1e1aa62465b94ad8bff844f93d44c48c-ea-php72-php-fpm.service-Sn7uxg
8.0K systemd-private-1e1aa62465b94ad8bff844f93d44c48c-ea-php74-php-fpm.service-Djg4uy
8.0K systemd-private-1e1aa62465b94ad8bff844f93d44c48c-ea-php74-php-fpm.service-W7Wy8Q
...

so , what is it this directory php56-php.fpm.service of 6.3 G ?

Why it's not automaticly cleared ?

Can i delete it safely ?

thank you and sorry for my noob question
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
6,974
921
313
cPanel Access Level
Root Administrator
Hey there! The most likely explanation is that there is code on the sites that isn't properly closing the session. You may want to examine the session files to see if you can determine what pages are leaving sessions on the server. These aren't areas that typically get cleared automatically, but you'll see the other directories are much smaller.

I wouldn't recommend deleting the directory itself, but you can delete the contents (the session files) and that will not cause an issue for the server.