w3wp.exe is a hog
We are having a serious problem with w3wp.exe consuming all our processor capacity. Sometimes moodle is so slow in the lab with my class that more than half of them just sit in front of a blank screen waiting for it to load. We got so aggravated today that I had to pass around a flash drive to get the files distributed for the days’ lesson!
I am STILL on my soapbox about wishing to get off the WIMP platform. We are running php5.1.2, because we had a lot of trouble with IIS and violation errors last year when we upgraded php. We rolled back and were doing fine under moodle 1.6.3, but now it is a different story.
We stopped extra backups for old instances; that helped, but we still have a peak load problem. I am seriously thinking about moving my courses to another server. I will feel guilty, but I will be having class!!
Maybe one of these will help; we are checking them out.
http://moodle.org/mod/forum/discuss.php?d=78290
This one looks helpful:
http://moodle.org/mod/forum/discuss.php?d=61334
This one I started, but lots of other interesting info got posted.
http://moodle.org/mod/forum/discuss.php?d=55451
This one has more on php; they think the slowdown is related to cron.
http://moodle.org/mod/forum/discuss.php?d=57715
———————-
Followup:
Performance Tuning
- Set the variable allow_call_time_pass_reference = Off
- Changed Recycle work processes to 360 minutes instead of 1740, this should keep the memory usage from growing too great.
Error logs in Windows
The log entries should be in the event viewer application log. If they’re not there, try uncommenting the settings in your php.ini file which control where the log entries are stored, e.g. log_errors = On and error_log = syslog. Save php.ini and restart IIS.
Turn on debugging in php
To turn on debugging, try setting the Server -> Debugging options on. Also, in your config.php, try adding:
define('MDL_PERFDB' , true); http://moodle.org/mod/forum/discuss.php?d=74795#p333327
Final update: Upgrading to the newest version of 1.8 fixes this problem. It was mostly related to database queries. Refactoring has us back to normal for the spring 08 semester. What a relief!
Create a free edublog to get your own comment avatar (and more!)