Question

'/proc/kcore' file is (apparently) 128T

Hi, since a couple of weeks I have an unstable Wordpress site on a DigitalOcean droplet. The actual WP backup file is about 150MB. After investigating file sizes (df -h) it turns out that ‘/dev/vda1/’ has used 20G (of 25G) and ‘/proc/kcore’ is even 128T…

Is there a way to ‘shrink’ these files of delete old logs?

Thanks.

Show comments

Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

KFSys
Site Moderator
Site Moderator badge
June 15, 2020
Accepted Answer

Hi @olivervogt,

I’ll recommend finding out which service is using this process and restarting it. The process itself can’t hold 128T of space due to the fact the droplet doesn’t have as much.

As for the space issue, what I’ll recommend is using something in the midst of

This command will find the 5 biggest directories in your /

du -sh / | sort -n -r | head -n 5 

To display the largest folders/files including the sub-directories, run:

du -Sh / | sort -rh | head -5

If you want to display the biggest file sizes only, then run the following command:

find -type f -exec du -Sh {} + | sort -rh | head -n 5

I’ll recommend using these commands to try and find out where the biggest files are located and if they are logs truncate them or if anything else deal with them accordingly.

It’s possible your website has grown in space and you just need to upgrade our space. Having said that, you’ll need to decide that on the spot once you know where the space issues are coming from.

Regards, KDSys

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.