How to fix core dump files in WordPress folder issue?

Why there are core dump files in my WordPress folder? Core file like core.18170, core.25895, core.xxxx… And they are usually 30+ MB in size. I started to see them when I switched to HostGator VPS Hosting. And I did not see them previously. Something wrong with my VPS account settings? Or something wrong with my WordPress plugin that I use? By the way, my VPS account always shows slmmemorylimit resource alert when these core dump files exist. And used up all the 768 MB memory (usually use 250 MB only). And high CPU usage too.

Core dump files in WordPress folder

Basically, and are the same. Both of them use the same WordPress plugins and settings. Maybe some layout different but internally are exactly the same. I tried to troubleshoot this issue by looking at the core dump files. Found W3 Total Cache in there. Hmm… But I am using W3 Total Cache in both and And does not give me this core dump files issue at all. After disabled W3 Total Cache and turned on WP Super Cache for 2 days, I did not see any core dump files being created and no resource alert from Parallels Power Panel. So I made a conclusion that W3 Total Cache is not being nice friend with HostGator VPS Hosting.

How to fix core dump files in WordPress folder issue?
Check all your WordPress plugin one by one. There might be one WordPress plugin (like W3 Total Cache in my case) that is causing the issue. Or contact your hosting support for help.

  • You may disable it by adding ulimit -c 0 into /etc/init.d/httpd to disable these file to be generated.

    Normally core dump file used to record the information for developer to debug their code, using the Unix command of strings to read it,

    eg. strings core.12345

    • Thanks for the information. Still need some time to learn it. I am newbie to Linux world. 😛

      • You’ll be having lots of fun from Linux World!! 🙂

  • How to delete core dump files ? is it OK if I removed manually one by one from file manager ?

  • If you are using SSH, you may use find command as below,

    find /home/user/public_html/folder/ -type f -name ‘core.[0-9][0-9][0-9]*’ -exec rm -rf {} \;

    Replace the user and folder or if you in that folder, use . (dot) symbol only.

    user@server [/home/mick/public_html] find . -type f -name ‘core.[0-9][0-9][0-9]*’ -exec rm -rf {} \;

    If you worry any useful file remove, run this command first to check the list,
    find /home/user/public_html/folder/ -type f -name ‘core.[0-9][0-9][0-9]*’