Pelican Parts
Parts Catalog Accessories Catalog How To Articles Tech Forums
Call Pelican Parts at 888-280-7799
Shopping Cart Cart | Project List | Order Status | Help



Go Back   Pelican Parts Forums > Porsche Forums > Porsche 911 Technical Forum


Reply
 
LinkBack Thread Tools Rate Thread
Author
Thread Post New Thread    Reply
Author of "101 Projects"
 
Wayne 962's Avatar
I think I found the problem (500 - Error)

So, here's the deal. The software used to run the forums (MySQL) is open-source, but inherently defective in that some queries take forever to process and then the same query (to the database) will process in a few seconds only a few minutes later. I'm not sure what causes this. I have been trying to solve this problem for years now. I've been on all of the bulletin boards, and numerous other people with very large forums often have the same problem. It's caused by the search engine reading too much from the database or something like that.

So, I wrote a program that constantly monitors rogue database inquiries and kills them off (these lock the whole site up for a period of time) after 60 seconds. Trouble is, there was also another setting that set the maximum execution time for scripts to be 30 seconds. So, if everyone else was waiting, and then I killed off that rogue process, everyone else would then get killed too (and get that 500: Error). So, I changed that variable, and that should fix most of the problems with that error for now. I figured it out tonight when I happened to have two forums pages open at the same time in two separate windows, and both gave 500:Internal Server Errors, which in my opinion was impossible. That led me to investigate further and figure out that the processes were timing out - not getting killed erroneously by my watchdog program.

I also believe that the slowdown is caused by disk access - the server itself runs at about 5-10% CPU utlization all of the time - certainly not taxing. Network bandwidth is also not a problem. The only other metric is IO speed. So, I have now set the database to defragment itself every night on the most used files. Each time I have done this, the slowdown problem has gone away temporarily until the files get defragmented, and then the intermittant slowdown comes back.

Conclusion, with these two changes, I think we'll see a remarkable improvement. Less slowdowns, and we should have almost no 500: Internal Server errors now. Sorry if this also doesn't make any sense to the non-computer people...

thx,

Wayne

Old 05-25-2008, 10:36 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #1 (permalink)
Bird. It's the word...
 
Fishcop's Avatar
 
Join Date: Feb 2001
Location: Port Macquarie NSW Australia
Posts: 5,077
Garage
WTF

My brain hurts
__________________
John Forcier
Current: 68L 2.0 Hotrod - build underway
Old 05-25-2008, 10:58 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #2 (permalink)
Registered
 
rnln's Avatar
 
Join Date: Nov 2005
Location: CA
Posts: 7,286
Not exactly the 500 error problem, but I encoutered similar problems with several work places. I am not sure if my little experience can help but maybe a reference. Once it was dish space available. We were using SQL server and had only 2 or 3 G left. Rebooting server would fix it for 1 or 2 days. Another time was the same cause, disk space, but it behaved as application problem. Watching the numbers of loging in, it kept increasing and won't decrease after users logged out (leaving the dead process behind). It acted as you forgot to close the connection to your DB in your application. Temp fix for us was running a connection kill at night, and made sure to include the log file when you do your backup. This log file can get pretty big if you allow. Anyway, after we upgrade disk space, problem was gone.

Yes, tonight I don't see the usual slowliness problem.

Also, there is another problem related that I forgot to mention. That is the data is not saved. User would think it's saved since it acted normal. And I think you might have the same problem, since there were several replies I posted but never see it again.
__________________
Fat butt 911, 1987

Last edited by rnln; 05-26-2008 at 12:06 AM..
Old 05-25-2008, 11:53 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #3 (permalink)
Ferdinand Magazine
 
johndglynn's Avatar
 
Join Date: May 2004
Location: Silverstone, UK
Posts: 1,409
Garage
Nice one Wayne, I am using the search function all the time now as I try to figure out some trick jobs on my C3, the 500 errors were making it slow going. Glad you understand this stuff! Thanks as always.
__________________
Sheriff at www.impactbumpers.com
Brand support at classicretrofit.com/tuthillporsche.com

1976 Porsche 911 Carrera 3.0: 'The Orange' - 1981 924 Turbo - 1983 944 Lux - Too many BMW motorcycles
Old 05-26-2008, 01:37 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #4 (permalink)
Wer bremst verliert
 
JohnJL's Avatar
 
Join Date: Jan 2005
Location: Toronto, Ontario
Posts: 4,767
I've never actually gotten a 500 error, just 404 timeouts. I'm using IE 7 and IE6.
__________________
2007 911 Turbo - Not a toy
1985 911 Cab - Wife's toy
1982 911 3.2 Indiash Rot Track Supercharged track toy
1978 911 3.0 Lichtbau toy "Gretchen"
1971 911 Targa S backroad toy
Old 05-26-2008, 03:46 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #5 (permalink)
Registered
 
Zeke's Avatar
 
Join Date: Jan 2002
Location: Long Beach CA, the sewer by the sea.
Posts: 37,722
Does this do anything for the double post problem? (which seems to be getting better)
Old 05-26-2008, 07:52 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #6 (permalink)
 
Registered
 
Wickd89's Avatar
 
Join Date: Oct 2005
Location: Socal
Posts: 1,990
Its fun to use your engineering degree and experience every now and then!

I just got back from a training course in the Northeast, where I hung out with fellow electrical engineers reviewing WCDMA, QPSK and 16QAM modulation techniques amongst other quantization and channelization techniques. Sometimes funner than being a manager...

Now back to the office and assume my role of time sheet approver!
__________________
Luis "once was - Wickd89"
Carrera 3.2 - "Faster, Stronger, Better"
-- 2008 Toyota Camry SE V6 (mine)
-- 2005 Toyota Sienna (hers)
-- 1989 911 Carrera Cabriolet -SOLD
Old 05-26-2008, 08:02 AM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #7 (permalink)
Registered
 
Join Date: Oct 1999
Posts: 8,673
Quote:
Originally Posted by milt View Post
Does this do anything for the double post problem? (which seems to be getting better)
Same question, plus timeouts.
Old 05-26-2008, 12:00 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #8 (permalink)
sudo apt-get purge 930
 
equality72521's Avatar
 
Join Date: Jul 2006
Location: Brandon, FL
Posts: 4,838
The error I get sometimes when I try to post says I've created identical posts in the thread even though I've never posted in but it still creates the post.
__________________
Mark 1979 930 Euro ***GONE AND DON'T MISS IT AT ALL***

"Worrying about depreciation on your car and keeping mileage down is like not ****ing your girlfriend so her next boyfriend finds her more appealing"
--clutch-monkey
Old 05-26-2008, 12:03 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #9 (permalink)
Author of "101 Projects"
 
Wayne 962's Avatar
Quote:
Originally Posted by rnln View Post
Also, there is another problem related that I forgot to mention. That is the data is not saved. User would think it's saved since it acted normal. And I think you might have the same problem, since there were several replies I posted but never see it again.
The software does a trick where it puts your post information on the page, and then writes to the database after that (speeds the process for the end user). The trouble is, the processes to post beyond that were accidentally getting killed. I think this change fixes that...

-Wayne

Old 05-26-2008, 12:05 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #10 (permalink)
Reply


 


All times are GMT -8. The time now is 02:31 PM.


 
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website -    DMCA Registered Agent Contact Page
 

DTO Garage Plus vBulletin Plugins by Drive Thru Online, Inc.