Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Something on a server I installed an application is creating thousands of empty session files. Is there any way to determine what process is responsible for the creation of each file created?

Thanks.

share|improve this question
1  
What server are you talking about ? – Romain Hippeau Jun 5 '11 at 1:53
A server where I work. I'm not responsible for the server so, I don't know much about it other than it is CentOS and running PHP 5.3. – Noor Jun 5 '11 at 1:54
1  
You need to add specifics if you want a good answer. What server, what os, why do you not expect thousands of empty session files? Edit your original question with more details. – Mark Koopman Jun 5 '11 at 1:55
Session files are being created in /var/www/html/cms/tmp/. This is normal if you are signed into the application but not if you aren't. The number of session files increases nearly every time I run ls -la. This may explain the too many open files error from earlier. I noticed that most of the session files created are empty. Since we are not allowing access to the application to users other than admins right now, I am a bit puzzled why so many sessions exist. – Noor Jun 5 '11 at 1:56
@Noor: and what application is that? So far the question is really low quality. – 0xC0000022L Jun 5 '11 at 1:57
show 1 more comment

migrated from stackoverflow.com Jun 5 '11 at 2:37

1 Answer

up vote 1 down vote accepted

You can use lsof, if any of the files are still in use by the process(es).

share|improve this answer

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.