Windows server: A process serving application pool 'DefaultAppPool' terminated unexpectedly.

Windows server: A process serving application pool 'DefaultAppPool' terminated unexpectedly.

Jason Browne -
回帖数:6

Hi there...

I've just installed Moodle 1.7 ( latest ), MySQL 5.0.27, PHP 5.2.1 on my Windows 2003 Server ( fully patched ) running IIS 6.

Did it yesterday, followed all the install instructions I could find on this site and it all seems to be behaving itself, but I've noticed the following error appearing in the server's System Event log since the install ( once last night and 4 times in 2 hours today ) :

A process serving application pool 'DefaultAppPool' terminated unexpectedly. The process id was '5008'. The process exit code was '0xc0000005'.

This error is also appearing in the server's Application Event log at the same times :

Faulting application w3wp.exe, version 6.0.3790.1830, faulting module w3core.dll, version 6.0.3790.1830, fault address 0x000201cc.

along with this error in the same log :

Reporting queued error: faulting application w3wp.exe, version 6.0.3790.1830, faulting module w3core.dll, version 6.0.3790.1830, fault address 0x000201cc.

To be honest, I've no idea what this means, but I have to assume ( perhaps incorrectly ) that it's linked to the moodle install. Any ideas what it means, should I be worried, how do I fix it etc. Thanks!

J.

回复Jason Browne

Re: Windows server: A process serving application pool 'DefaultAppPool' terminated unexpectedly.

Dennis Flynn -
I've seen the same thing. My Internet searches said to ignore it if your app continues to run, or to put the site into IIS5 isolation mode. IIS6 can only run in either IIS5 isolation mode or not, so this is a system-wide change. I've chosen to ignore it, but if you want to change it, open IIS Manager, click on your server in the left-hand pane, right-click on WebSites in the right-hand pane, click on Properties, and click on the Service tab. I'm no expert on IIS, so take what I say with a serious grain of salt.
回复Dennis Flynn

Re: Windows server: A process serving application pool 'DefaultAppPool' terminated unexpectedly.

Jason Browne -

Thanks for your reply Dennis,

I've done some checking myself, and on these forums this seems to be a problem from php 5.1.2 and php 5.1.4 that had a bug case opened, and that's now closed. Maybe it's back with 5.2.1?

On another note, looking through the forums has raised a few other questions for me. Following the PHP - IIS instructions I found on here, I went with isapi and not cgi as recommended, but some posts here suggest you should really go with CGI for better performance, so which should I be doing?

I've also seen mentions of php accelerators, I can guess from the title what this does, but should I be using one and which one? I'm a complete newbie to Moodle, but I have already noticed that it take 10 seconds to save a web page resource to my site after I create it, so that can't be good!

Any help?

J.

回复Jason Browne

Re: Windows server: A process serving application pool 'DefaultAppPool' terminated unexpectedly.

Ken Wilson -

Hi Jason

A few points

  1. I get the feeling that this interaction problem with PHP and IIS is machine dependant, although it would take testing to find out why these generic access denied messages are occuring. We had this problem with 5.1.4 and moved to 5.1.2 and all the errors stopped. If you get the problem, try going to php 5.1.2 as a quick-fix.
  2. On our IIS server we noticed a *drop* in performance when using the php-cgi module - switching to the ISAPI module helped to improve performance. This is because ISAPI is a more efficient way to server web pages as IIS runs the PHP sessions as separate threads in one process, rather than spawning separate processes. On Windows, starting new threads when an incoming request is received by IIS is far less machine-intensive than starting a new process.
  3. A php accelerator stores opcodes in shared RAM, so reducing the processor load and making the site generally faster. There are several recommended and here are instructions for APC on Windows.

You may also find the IIS notes in the performance docs useful.

Ken

回复Ken Wilson

Re: Windows server: A process serving application pool 'DefaultAppPool' terminated unexpectedly.

Jason Browne -

Hi Ken!

Thanks so much for your reply...

I'm thinking that I might have to go to php 5.1.2 to get rid of these messages, what's involved in that? Just moving the 5.2.1 directory out of there, and then doing an 5.1.2 install in it's place? I'd rather go with the latest version of php, but if it's causing problems then I'd rather have a stable version! Thankfully my site is nowhere near live yet, so I'm in a position to sort this stuff out without too much hassle.

I've set up the isapi module, and not the cgi one as recommended in the instructions, and you're saying that isapi is the better option too, so I'll leave that as it is.

I'll have a look at the php accelerator and iis notes links. Thanks for taking the time to pass them on...

J.

回复Jason Browne

Re: Windows server: A process serving application pool 'DefaultAppPool' terminated unexpectedly.

Ken Wilson -

Hi Jason

This link contains some good instructions for upgrading PHP - it's just a case of getting the paths correct and changing the settings in IIS Manager to point to the right php5isapi.dll module.

While your're getting the site going, take some time to get mysql optimised as well. Again the instructions are in the performance docs.

Good luck!

Ken

回复Ken Wilson

Re: Windows server: A process serving application pool 'DefaultAppPool' terminated unexpectedly.

Jason Browne -

Hi Ken,

Thanks again for your suggestions...

I've gone through the performance doc, and made changes to PHP, MySQL and Moodle itself, so that should help!

Downgrading from 5.2.1 to 5.1.2 looks pretty easy. I'm gonna give it a while on 5.2.1 and see how it behaves, and then downgrade if needed. Maybe I'm being naive, but I'd like to think that if it's a bug with 5.2.1, then it'll be fixed sooner rather than later! 微笑

J.