Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a cPanel Server with 4GB of Ram and 4GB of /tmp space. I always get this error:

Will this cause slow performance? and can I delete everything?

Drive Critical: /tmp (/var/tmp) is 95% full

Drive Critical: /usr/tmpDSK (/tmp) is 95% full
share|improve this question
    
could you post the output of "" cd /tmp && du -m|sort -nr|head "" ? –  Eric DANNIELOU Oct 1 '12 at 8:27
add comment

1 Answer 1

up vote 3 down vote accepted

No, you definitely can't delete everything in there. /tmp is where the system stores its temporary files when it's running.

What you can delete depends on what's running on the server.

I would recommend looking at the file list and finding out what's writing so much to your /tmp folder. ls -l and lsof will be helpful in that respect.

The ls -l command gives you a detailed list of the files contained in the directory, and lsof will tell you which files that the processes on your server have open.

If these items exceed your technical skillset, I'd recommend contacting your reseller account's technical support or contracting someone who can assist you further.

share|improve this answer
1  
Thanks, and will this cause performance issues ? –  Zim3r Oct 1 '12 at 5:18
    
Thanks, I mean does full /tmp has impact on performance? –  Zim3r Oct 1 '12 at 5:28
    
Yes, in that it certainly impacts the stability of your system's services if it can't create files there. It's not going to perform very well if your services' processes hang due to I/O blocking because they can't write to or create required files. –  Magellan Oct 1 '12 at 5:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.