Huge Core Dump Files in WordPress Folders
I was surprised to see my WordPress folder sizes increasing and FTP revealed huge ‘Core’ dump files in several folders of my WordPress installation. As they gobbled up my server storage space, I had no idea where these came from and what to do with them.
I found this 38MB core file in the root directory of my WordPress installation

As I looked in subfolders, I found another 46MB core file in wp-admin

As you can see these are large files and occupy huge storage space on our server. Thankfully my hosting by Dreamhost has unlimited storage space, so I need not worry; but if your hosting has limited storage, it could add to lot of extra charges. I downloaded and tried opening these core files with wordpad and a mix of gibberish text and symbols appeared.
Core Dump Files
I looked around for possible solutions and found more WordPress bloggers reporting this issue in the WordPress forums here and here. I learnt that these are called Core Dump files and Wikipedia says “a core dump consists of the recorded state of the working memory of a computer program at a specific time, generally when the program has terminated abnormally (crashed).” Core dumps are often used to diagnose or debug errors in computer programs.
In these forums some people advised you can delete these files and save space after backing up all your files and database. Some advise the core files can be read using GDB, the GNU Project debugger. I am not sure if I should delete these files and maybe you can help.
I understand that these files are hosted on our server to keep a record of useful data when the site crashed on a particular day, but I wonder if any hosting engineer is debugging this data or diagnosing why the server or unstable processes crashed or terminated.
Check your WordPress installation and post a comment if you also have “Core” dump files eating your server storage space. What are you going to do about it?
« Previous Post Next Post »



the only dump i know of is when i go to the bathroom.
@Carlos – I guess with a post like this, a comment like that is inevitable!
@QuickOnlineTips – I maintain a WordPress enthusiast forum which contains quite a few smart people in the world of WordPress. I’ve since created a new thread asking them what these files are and what they do.
http://www.wptavern.com/forum/general-wordpress/336-core-dump-files.html#post2633
I don’t have any core dump files on my install of WordPress. The only files that reach that size is my error_log which occassionaly I just delete and let it come back.
Unless you plan on sending the coredump file to the wordpress/php people to figure out what the problem – or you feel comfortable digging though the debugger – it is perfectly safe to delete. You don’t even have to back anything up. Your host may be interested in the core files – but I doubt it. Most webhost techs wouldn’t be able to step through a debugger, and those that could would probably charge you for it.
This doesn’t change the fact that something associated with your wordpress install (most likely PHP, but not necessarily) crashed and may do so again. If you aren’t already doing so you should be making backups, and keeping a copy off-site as it sounds like your host may be unstable.
You might check and see what version of apache, mysql, php, etc… your host has installed and see if there are any known problems/bugs, specifically with wordpress.
I don’t think anyone looks at it. But, you should clean these up at regular intervals, unless you have unlimited storage space
I have had core dump files on my design blog(see my author link) and was initially alarmed (whether it was the result of a hack or whatever).
I asked the question on Twitter. A webdevs and a webhosting employee said that they’re caused by buffer being dumped(whatever that means) and advised me to disable plugins that hog resources.
I’ve still not found an actual way to prevent it, or understand why it is appearing (I’m not interested in debugging).