/Dev/Xvda1 Full, Though There Is No Temporary Files

I have AWS ec2 micro instance, suddenly it shows memory full. I have checked the folder using df -hcommand. The result is displayed below.

Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      7.8G  7.1G  257M  97% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            285M  8.0K  285M   1% /dev
tmpfs            59M  184K   59M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            295M     0  295M   0% /run/shm
none            100M     0  100M   0% /run/user

I have cleared all the temporary folder,log files but still it shows the same size.Why this happening? How to delete the unwanted files? and increase the space?

2

1 Answer

On CLI type:

 lsof -nP | grep '(deleted)'

that processes have some reources allocated and u can free them killing them by pid

kill -9 [pid]

after this check your disc usage with:

df -h
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest