{"id":1595,"date":"2015-12-24T08:48:27","date_gmt":"2015-12-24T14:48:27","guid":{"rendered":"http:\/\/patrioticfederalist.com\/wp\/?p=1595"},"modified":"2015-12-24T08:48:27","modified_gmt":"2015-12-24T14:48:27","slug":"wordpress-core-dump-files","status":"publish","type":"post","link":"http:\/\/patrioticfederalist.com\/wp\/?p=1595","title":{"rendered":"WordPress core dump files"},"content":{"rendered":"<article id=\"post-2052\" class=\"post-2052 post type-post status-publish format-standard hentry tag-blogging\"><img decoding=\"async\" class=\"r\" src=\"http:\/\/www.techzilo.com\/wp-content\/uploads\/wordpress-core-dump-file.png\" alt=\"Core dump files WordPress\" \/>A couple of weeks after I launched a new blog, I noticed four \u2018core\u2019 files named core.2801, core.4065 etc. in its directories. The files seemed harmless, but had rather large size (several megabytes).<\/p>\n<div class=\"entry-content\">\n<h2>What are core dump files?<\/h2>\n<p>A quick Google search turned up a lot of complicated pages explaining the problem, but none that could actually suggest a fix.<\/p>\n<p>A web developer suggested that the core files were a result of lots of buffer being dumped. This is typical of excessive resource usage and\/or error reporting. Core dumps contain reports of working memory of a software when it has crashed. In short, <strong>core dump files are caused by a crashing software component<\/strong>. Instead of trying to get rid of core files, you should worry about what caused these errors.<\/p>\n<p>You can safely delete these files. Although there is <a href=\"http:\/\/www.gnu.org\/software\/gdb\/\">GDB<\/a> to open and analyze core files, not many would actually understand anything. WordPress is tested thoroughly before each release, hence it is unlikely a fault caused by WP.<\/p>\n<h2>Prevent core dump files<\/h2>\n<p>You can delete core files without any worry \u2013 it does not contain data useful to anyone but developers and hosting company itself.<\/p>\n<p>Incompatibilities arising out of Apache, MySQL, PHP etc could cause core dumps. Google version number of these software along with the terms \u201cincompatibility WordPress\u201d.<\/p>\n<p>If possible, use only plugins written by experienced developers. New developers may not adhere to the best coding practices. A poorly coded plugin could cause core dumps.<\/p>\n<p>Upgrade WordPress plugins to the latest version. Regarding the problem on the new blog, I found that I had uploaded a older versions of a couple of plugins.<\/p>\n<p>Disable plugins. You can start out by disabling all the heavy plugins and enabling them one by one, during which time you should watch blog directory, wp-admin etc. for core files. If a plugin does not trigger core files, activate another and test. Repeat the process until all plugins have been activated or the culprit has been found.<\/p>\n<\/div>\n<\/article>\n<div id=\"comments\">The core dumps could also have been due to WP. The most usual cause of a core dump is because of running out of memory on your server \u2013 if you\u2019re on a shared host, ask to be moved to a different node. If you\u2019re on a VPS\/Dedicated Server, up your memory a little and the problem should stop.<\/div>\n<div><\/div>\n<div>Plugins that send large amounts of data may also cause this.\u00a0 For example, some idiots keep trying to brute force my admin login and I had it set to send an email on all failed logins.\u00a0 I had to install a new plugin because it was sending out so many emails it hit the max limit on my hosting service.\u00a0 The new plugin restricted the login attempts to 5 and then blocks them after that.\u00a0 This solved my problem, I just had to go delete all the .core files dumped into my folder.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A couple of weeks after I launched a new blog, I noticed four \u2018core\u2019 files named core.2801, core.4065 etc. in its directories. The files seemed harmless, but had rather large size (several megabytes). What are core dump files? A quick Google search turned up a lot of complicated pages explaining the problem, but none that &#8230; <a title=\"WordPress core dump files\" class=\"read-more\" href=\"http:\/\/patrioticfederalist.com\/wp\/?p=1595\" aria-label=\"Read more about WordPress core dump files\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[582,583,584],"class_list":["post-1595","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-core-dump","tag-core","tag-wordpress"],"_links":{"self":[{"href":"http:\/\/patrioticfederalist.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/patrioticfederalist.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/patrioticfederalist.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/patrioticfederalist.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/patrioticfederalist.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1595"}],"version-history":[{"count":1,"href":"http:\/\/patrioticfederalist.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1595\/revisions"}],"predecessor-version":[{"id":1596,"href":"http:\/\/patrioticfederalist.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1595\/revisions\/1596"}],"wp:attachment":[{"href":"http:\/\/patrioticfederalist.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/patrioticfederalist.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1595"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/patrioticfederalist.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}