IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 2nd, 2005, 06:15 AM
McKenna's Avatar
McKenna McKenna is offline
Purple is a Fruit
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Ireland
Posts: 404 McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 66365 Folding Title: Intermediate FolderFolding Points: 66365 Folding Title: Intermediate FolderFolding Points: 66365 Folding Title: Intermediate FolderFolding Points: 66365 Folding Title: Intermediate Folder
Time spent in forums: 3 Days 2 h 8 m 13 sec
Reputation Power: 164
IIS / PHP 4 Problem

Hey guys,

I am having a problem with my IIS server. It's a Windows 2000 server, so I'm using IIS version 5.0. I have PHP Version 4.3.2 installed and MySQL 4.0.15.

The main site on my server receives a huge amount of hits per week (in the millions) but every now and then (about 2 - 3 days) the site stops serving files. I have a bunch of other sites on the server and they continue to work fine. I have been told that it's most likely a PHP problem but other sites that work with PHP continue to function fine when the main site stops serving files. I'm going to put up a static HTML page next time it crashes to see if that will be served.

The only way to resolve the issue is by restarting IIS. Taking a look in the Task Manager before the reset I noticed that PHP.exe was running eleven times (and actually continues to do so now). Is that normal behaviour considering that the server will be serving PHP files pretty much continually? I would have expected to see one PHP.exe using up a lot of resources.

What is really throwing me is the fact that this only happens with one site. Are there any IIS logs I can look at that would shed any light on what is actually happening? There's nothing much in the Event Manager, I get the following Warning: "The server was unable to read the file C:\WINNT\help\iisHelp\common\404b.htm. The file does not exist.", but I can't imagine this causing one site on IIS to crash.

Anyone got any ideas at all?

Reply With Quote
  #2  
Old June 2nd, 2005, 07:48 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,957 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 15 h 35 m 19 sec
Reputation Power: 802
You can put the questionable website in "isolation" mode, so at least the rest of IIS will keep going while you're troubleshooting. I'm not very familiar with this part of IIS though, take a look at the online help for details.

Also review the way you installed php, did you install as cgi or isapi? I've only used php as an isapi with IIS, and never at any high volume of traffic, but I haven't seen anything like what you describe. Your problem sounds like some kind of memory or resource leak. You can use PerfMon to identify these kind of problems too, but I'm not up on all the different counters available.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved
of it. --Mark Twain

Reply With Quote
  #3  
Old June 3rd, 2005, 03:03 AM
McKenna's Avatar
McKenna McKenna is offline
Purple is a Fruit
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Ireland
Posts: 404 McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 66365 Folding Title: Intermediate FolderFolding Points: 66365 Folding Title: Intermediate FolderFolding Points: 66365 Folding Title: Intermediate FolderFolding Points: 66365 Folding Title: Intermediate Folder
Time spent in forums: 3 Days 2 h 8 m 13 sec
Reputation Power: 164
Thanks Doug.

I actually already have the site running is Isolation so that's probably why it only affects one site. I'll take a look at PerfMon and see if it can shed any light on the matter!

Thanks again.

Edit: Just started up PerfMon and I have counters for each process monitoring Private Bytes, but to be honest, I don't really know what I am looking at. All 7 of the processes are staying between 48 and 52 on the performance monitor. Any idea what I should be looking out for or how I would actually identify a performance or resource leak?

Last edited by Ebow : June 3rd, 2005 at 03:32 AM.

Reply With Quote
  #4  
Old November 1st, 2005, 05:52 AM
gmboufc gmboufc is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 1 gmboufc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 43 sec
Reputation Power: 0
Same Problem

I'm having the same problem you described and wondered if you found a solution?

Many Thanks
Gordon

Reply With Quote
  #5  
Old November 1st, 2005, 06:27 AM
McKenna's Avatar
McKenna McKenna is offline
Purple is a Fruit
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Ireland
Posts: 404 McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)McKenna User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 66365 Folding Title: Intermediate FolderFolding Points: 66365 Folding Title: Intermediate FolderFolding Points: 66365 Folding Title: Intermediate FolderFolding Points: 66365 Folding Title: Intermediate Folder
Time spent in forums: 3 Days 2 h 8 m 13 sec
Reputation Power: 164
The problem in the end was that the c:\ partition was set too small, combined with not enough RAM in the machine caused the c:\ drive to become full due to the ever expanding page file. Rebooting the machine cleared the page file, which explains why it would work fine again after a reboot.

We have since moved to better, a load-balanced servers.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > IIS / PHP 4 Problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT