Advertisement:

Author Topic: Internal Server Errors  (Read 5915 times)

Offline marsd

  • Semi-Newbie
  • *
  • Posts: 10
Internal Server Errors
« on: June 21, 2008, 01:24:57 AM »
Hi,

I've been receiving internal server errors very often recently on my dev/semi-production site, which go away suddenly as quickly as they come. I've looked through the status.php and nothing seemed out of place. I just can't pinpoint the reason so I have no way of trying to correct it... My hosting is a shared one on GoDaddy.

What's most peculiar is that the 500 ISE only occurs when accessing the main forum index. No errors occur when I'm already browsing around within. No errors occur when I access direct links either.

Mods installed:
1.     vBulletin Style Meta Tags     1.1     
2.    More Spiders    1.1    
3.    Top 10 Posters Today And This Week Stats    1.1    
4.    Advanced Reputation System    1.4.1    
5.    Internal Links Use Same Window    1.2    
6.    Grouped Who's Online    1.0    
7.    Pretty URLs - Base    0.8.3    
8.    SMF Sitemap    1.3.0    
9.    Hide Tag    2.2.1    
10.    Ad Managment    2.3.3    
11.    Auto Embed Video Clips    2.2    

Some mods are outdated, but I stopped installing/updating any mods after the errors occurred. I use a custom, though very rough .htaccess that's modified from Pretty URLs' auto generated one.

main index: http://playingmonkey.com [nofollow]
status.php: http://playingmonkey.com/status.php [nofollow]
custom htaccess: http://playingmonkey.com/htaccess.txt [nofollow]
error_log as of this post: http://playingmonkey.com/error_log.txt [nofollow]
a core dump file: http://playingmonkey.com/core.17254 [nofollow]

Also, I'm unable to analyse the core dump on windows... Anyone knows a way to do it?

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,280
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
    • ZubaFitness
Re: Internal Server Errors
« Reply #1 on: June 21, 2008, 04:30:15 AM »
The error_log shows the problems.  Now just to figure out why.  Can you post your Subs-Db-mysql.php?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Offline marsd

  • Semi-Newbie
  • *
  • Posts: 10
Re: Internal Server Errors
« Reply #2 on: June 21, 2008, 06:32:25 AM »

Offline H

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,662
  • Gender: Male
Re: Internal Server Errors
« Reply #3 on: June 21, 2008, 08:02:21 AM »
I believe you can use GDB on windows or Linux to analysis coredumps but it isn't particularly easy and isn't something I've ever tried :).

No script should cause a coredump to be generated so I suggest you contact Godaddy about this problem.
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Offline marsd

  • Semi-Newbie
  • *
  • Posts: 10
Re: Internal Server Errors
« Reply #4 on: June 21, 2008, 03:03:37 PM »
I've gotten a reply from HostGator:

Quote
Hello,
This is happening because you are reaching the maximum concurrent process limit of 25. Once this happens the web server will not accept any more connections to your site. This is usually caused by bad php code that does not terminate properly.

Any ideas?

Offline SlammedDime

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,280
  • School of Air Ride
    • matt.zuba on Facebook
    • @mattzuba on Twitter
    • ZubaFitness
Re: Internal Server Errors
« Reply #5 on: June 21, 2008, 03:12:39 PM »
I'm not too versed in shared hosting limits, but a process limit of 25 processes seems low to me.  Typical shared hosting response though... " its a problem with the script".

Depending on how busy your site is, it may be time for an upgrade, either in hosting plans, or a switch to a VPS.
« Last Edit: June 21, 2008, 03:19:39 PM by SlammedDime »
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Offline marsd

  • Semi-Newbie
  • *
  • Posts: 10
Re: Internal Server Errors
« Reply #6 on: June 21, 2008, 03:29:50 PM »
Uh it's got a total of 20 members, and only 3-5 online at anyone point usually so I'm not very sure if that's the case.

Offline 青山 素子

  • Server Team
  • SMF Super Hero
  • *
  • Posts: 17,068
  • 戦場ヶ原、蕩れ!
    • srvrguy on GitHub
    • @motokochan on Twitter
    • Nekomusume Moe
Re: Internal Server Errors
« Reply #7 on: June 23, 2008, 07:20:55 PM »
I've gotten a reply from HostGator:

Is the site with HostGator or GoDaddy? You mentioned both in this topic.

It would be somewhat easy to build up 25 processes if there are problems with the site. Imagine you visit the site and the page takes a while to load, so you hit refresh. Now you have two processes. It still takes a while, so you hit refresh again. That's three (since the first two are hung on the server until they time out). Multiply by a few users doing similar and you can hit such a low limit very fast.

The big issue is the database connection taking so long, and also the site hitting memory limits (which seem to be somewhat low).  The stats mod and possibly also the advertisement mod will add load to the database and the server, so try disabling them for now.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.