500 Internal Server Error Out Of Memory
Contents |
Internal Server Errors Maxing out on memory? 500 Internal Server Errors himynameisvan @himynameisvan 6 months ago I'm going out of my mind a bit trying to troubleshoot this issue. I've been in constant communication with both my hosting support as well as theme developer trying to pinpoint what is causing these 500 internal server error wordpress wp-admin errors to continuously crop up: [Thu Mar 31 20:36:05 2016] [error] [client ##.##.##.##] (12)Cannot allocate memory: 500 internal server error youtube couldn't create child process: /opt/suphp/sbin/suphp for /home/dir/public_html/mysite.com/index.php, referer: http://mysite.com/wp-admin/admin.php The result is that when accessing my site, I get intermittent 500 internal server errors (e.g., internal server error 500 1 every 5 page loads). As I track the resource usage in my cPanel, I see that the RAM and CPU both skyrocket (e.g. RAM past 1GB) on and off constantly. This includes when nobody else is accessing my site http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-internal-server-error-in-wordpress/ (e.g. according to Google Analytics). I've replaced all my core files, experimented with turning off ALL plugins (though I only have 4), as well as switched to Twenty Sixteen theme. NOTHING seems to affect the RAM usage. I also tried optimizing my MySQL DB, but no change from that either. Does anyone have any idea what is going on, or have any other ideas on how to troubleshoot? The hosting company insists it is a WordPress problem, while my theme https://wordpress.org/support/topic/maxing-out-of-memory-500-internal-server-errors/ developer insists it is a server-side issue. I don't get enough visitors to warrant such intense resource usage…and as I mentioned, the overuse seems to be happening when nobody else is accessing the site. Viewing 11 replies - 1 through 11 (of 11 total) mrwhizkid @mrwhizkid 6 months ago It would be great if we could have a look at your website to see what is going on. A couple of questions: 1. Are you on shared hosting or a VPS? 2. Are you hosting any other sites that could be causing this problem? 3. What is the size of your database? Thanks. himynameisvan @himynameisvan 6 months ago Sorry about that! Forgot to include - the site is supernovangirl.com. 1. Are you on shared hosting or a VPS? shared 2. Are you hosting any other sites that could be causing this problem? not according to the error logs; all errors arise from this domain (this was confirmed by host as well) 3. What is the size of your database? do you mean in terms of file size? i believe just over 7 MB Thank you! mrwhizkid @mrwhizkid 6 months ago If you have disabled your plugins and switched to the WordPress 2016 theme and the problem is still persisting, I don't see why the hosting company is telling you that it's your fault. It sounds like a misconfiguration on the server's end. The other thing that this could be
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring http://stackoverflow.com/questions/6154096/out-of-memory-and-internal-server-error-while-trying-big-scripts developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; https://www.drupal.org/node/214106 it only takes a minute: Sign up Out of memory and Internal Server Error while trying big scripts up vote 0 down vote favorite PHP Fatal error: Out of memory (allocated 26214400) (tried to allocate 9175041 bytes) in ... server error I am having this problem I noticed. I am getting the out of memory related 500 internet server error while trying to write big scripts. Big in the sense that I do a query that gives 4000 or 5000 rows, and I try writing them all using a foreach (for an excel extraction in this given case). The php is giving exactly in the line that serves the foreach statement. Anyone experienced to show me some light on this one internal server error please? php large-data-volumes fatal-error out-of-memory internal-server-error share|improve this question asked May 27 '11 at 15:01 Jeremy Roy 59811128 2 What kind of excel file are you generating? PHPExcel/Spreadsheet_Excel_Writer build the file in memory and it can take up quite a bit of space. Allocating 9meg in one chunk is a pretty big allocation... How many columns are in each of these rows, and how much data in row? –Marc B May 27 '11 at 15:04 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted PHP Fix: ini_set('memory_limit', '64M'); .htaccess Fix: php_value memory_limit 64M php.ini Fix: memory_limit = 64M share|improve this answer answered May 27 '11 at 15:08 0xAli 988720 add a comment| up vote 3 down vote Edit your php.ini file and increase the memory_limit. Or, at the top of this script, include: ini_set("memory_limit","256M"); share|improve this answer answered May 27 '11 at 15:03 Fosco 27.2k45593 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged php large-data-volumes fatal-error out-of-memory internal-server-error or ask your own question. asked 5 years ago viewed 1371 times
connections all over the world. Join today Community Community Home Getting Involved Chat Forum GeneralGeneral discussion HTTP 500 - Internal server error: what does it mean, how to avoid, what to do? Posted by modul on January 25, 2008 at 11:20am Yesterday, I had a heart attack. Well, sort of. All of a sudden, without having done anything in particular, Firefox gave me a completely white screen, and Internet Explorer came up with a screen saying that I had a "HTTP 500 - Internal server error". Yikes. I did some searching here, but nothing much of information (at least not of the usable and understandable kind) showed up. I desperately attempted some random things to get rid of it. I cleared my cache files, I temporarily renamed my .htaccess file, I got rid of a block which was getting cumbersomely difficult to maintain, but nothing happened. I even resorted to "pushing harder" on my mouse buttons :-) But to no avail, the white screen persisted. I put a "Hello world" php script on my site, next to Drupal's index.php, and it ran without a problem, but Drupal itself remained invisible. ?q=user didn't work, the admin section was unavailable, nothing nothing nothing, only a big ugly white screen. And then, as suddenly as it disappeared, whoosh, after about an hour or so, there it was again, my site was back... My question: would you reckon that I did something wrong? Or would you say that these http 500 errors are solely due to some mysterious thingy somewhere in the depths of Apache? If it's Apache, it's bad, but it's not my concern. If it's me who did something wrong, I would like to have some idea. What causes these HTTP 500-errors? And is there something I (being the site admin, but not the server admin) can do, or not do? Any input is welcome, because I really abhor white screens... Log in or register to post comments Comments You should read your webserver error log xtremest commented January 25, 2008 at 11:54am The common webserver Apache has file error_log in log directory, in this file you will find the reason of this error. -- lawyer Log in or register to post comments I have no access to that modul commented January 25, 2008 at 12:35pm I have no access to that error_log file. I am the site admin, not the server admin. My site runs on some central department's server, out of my hands. I could try to get in touch with these people, but in everyday practice, I have nothing to do with them. They just provide the hardware, and they run the server sof