Windows server: WEB SERVER PERFORMANCE DEGRADATION WHIT MOODLE

Windows server: WEB SERVER PERFORMANCE DEGRADATION WHIT MOODLE

Francisco Ivan Ruiz Garcia -
回帖数:11

HI, I have installed Mooodle with a hosting services provider, moodle it is installed on a windows 2003 server and iis, and it is consuming a lot of resources on the server, so the server provider has stoped my website, they had send it to me some information, acoording to this problem. Here is the text that the hosting provider sendsme before stop my website, MY question is what is the Problem With Moodle on this sense.???

Your website, ippsoneducativo.com, has been flagged for using excessive system resources in it's shared hosting environment. Specifically, your website has been using a large amount of simultaneous PHP processes originating from the locations below:

http://www.ippsoneducativo.com/moodle/user/pix.php

http://www.ippsoneducativo.com/moodle/course/view.php

Additional environmental information was available during a trace of the processes. This information may be useful in identifying the cause of the high resource usage:

HTTP_REFERER=http://www.ippsoneducativo.com/moodle/course/view.php?id=6

HTTP_COOKIE=MoodleSession=dfbcee73cf14b832757ebcd73ccb7139; MoodleSessionTest=EyZCo9pLEs; MOODLEID_=%25E2%25C0%2507

These processes combined, began using approximately 50%of the system processor beginning today at approximately 10:30am EST and have persisted through the morning. We have not stopped your Web site as the excessive usage was not causing yet system performance degradation. However, If you cannot rectify this issue within 24 hours, your Web site will be stopped. When responding to this message, please explain the steps you have taken to correct the issue so we may be able to better identify and prevent related future issues.

This type of usage can be caused if your website is very heavily trafficked and contains many dynamic elements.

In a shared hosting environment we can't allow a single website to use resources at this level. As stated in Section 3 of our terms and conditions, a single Web site cannot use more than 10% of any system resource for a period longer than 60 seconds. Please ensure that this type of usage does not occur again to prevent your Web site from being stopped.

 

平均分:Useful (1)
回复Francisco Ivan Ruiz Garcia

Re: Windows server: WEB SERVER PERFORMANCE DEGRADATION WHIT MOODLE

Ken Wilson -
Francisco -- The infomation that the hosting company provides indicates that course id=6 is causing the problem.

1. Can you please check that course for anything that might be consuming resources (look for blocks and activities).
2. Did you keep a copy of the output from your phpinfo? It is useful need to know how IIS is configured to run PHP. If it is running as a CGI process, then this may be the problem. For better performance it needs to run as FastCGI or as an ISAPI module.
3. Can you find any way of explaining the high load? Were there lots of users accessing the site?
4. Read through this very recent thread on capacity and performance, especially the links towards the end. It may help you to understand moodle's problems better.

-- Ken

PS: Your host (easy-cgi?) has shutdown your site. You need to tell them that you cannot do anything unless they allow access 微笑.
回复Ken Wilson

Re: Windows server: WEB SERVER PERFORMANCE DEGRADATION WHIT MOODLE

Francisco Ivan Ruiz Garcia -

Hi Ken, I really appreciate your Help,

I will check for that course (6), and I will ask to the hosting server provider to turn on my web site, but maybe they will not be flexible on that way until I confirm them that Moodle will not consume excessive resources again.

Otherwise http://www.cytrux.com/phps/ here you can see the phpInfo on other domain, but the same server that I have hosted with them.

It seems that PHP it is running as you say as a FastCGI, so maybe that it is not the problem. Am I on the right?

And as you ask on your third question, there were 30 - 35 users accessing the site, and we have never used before the site with more than 7 or 10 users until now.

Where is the thread that you say? To read them I don’t understand where are them, can you give me a link?

Thanks Id advanced

P.S. English it is not my natural language.

Ivan Ruiz

回复Francisco Ivan Ruiz Garcia

Re: Windows server: WEB SERVER PERFORMANCE DEGRADATION WHIT MOODLE

Ken Wilson -
Francisco

From what I can see the server is a Dell with dual Xeon processors, running IIS5.0. If the server is running Windows 2003, then IIS6 should be installed.

It is running MS SQL server as well as Diskeeper Server, so these are two programs to look for in terms of loading.

The server is running "CGI/FastCGI", so you need to find out which one from the hosting company.

If this is the same server that is running Moodle, you need to do some load testing on the server. Tell your hosting company that you need the site turned-on so that you can perform some load testing.

As Visvanath points out, lots of users on chat could be an issue, but you need to isolate the component that is causing the bottleneck. It could be a simple matter of tuning IIS or MySQL.

Ken
回复Francisco Ivan Ruiz Garcia

Re: Windows server: WEB SERVER PERFORMANCE DEGRADATION WHIT MOODLE

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
There are three possibilites:

1. Your site really caused a heavy load at that particular time through legitimate users. Eg. 10 or more using the chat module, 50 or more accessing a test (quiz module).

2. There was some illegal use. Somebody hacked the site and doing somethig else. Some script kiddies flooding your site with requests, etc.

3. Your ISP has a feeble server.

Both parties have to investigate what happend. The ISP has to help you by providing log-files etc.

As already pointed out, the reaction of your ISP doesn't convince 伤心

On a side note: I have no clue on Windows 2003 servers. But I know that Unix/Linux on Intel/AMD perform _very_ efficiently!

This is the thread Ken mentioned: http://moodle.org/mod/forum/discuss.php?d=50934
回复Visvanath Ratnaweera

Re: Windows server: WEB SERVER PERFORMANCE DEGRADATION WHIT MOODLE

Francisco Ivan Ruiz Garcia -

HI Visvanath Ratnaweera ,

I appreciate your help.

It seems to be something like you say on the first point of your list

1. Your site really caused a heavy load at that particular time through legitimate users. Eg. 10 or more using the chat module, 50 or more accessing a test ( quiz module).

So how can i fix a problem like this? Or why it is this happening, Moodle was working great with 5, or maybe 10 users, but when approximately 30 - 35 users try to access to Moodle to create an account or view a course, from the same net, this problems jumps.

By the way as you say on time before I have to eliminate access to the chat program from Moodle by renaming the folders of the chat program, because, a similar problem notifies me the hosting provider.

I really don’t know what to do...

Sorry if my English it is not perfect.... It is not my natural language

回复Francisco Ivan Ruiz Garcia

Re: Windows server: WEB SERVER PERFORMANCE DEGRADATION WHIT MOODLE

Ken Wilson -
You may want to use the chat daemon instead of the usual method if you experience high loads. See the readme in moodle\mod\chat.

Although people have reported problems getting the daemon to work in windows, you need to make these changes in your php.ini:

1. Uncomment the line: extension=php_sockets.dll
2. Set the variable: allow_call_time_pass_reference = On

Make the changes in moodle Admin -> Config -> Modules -> Chat -> Settings as follows:

chat_method = Chat Server Daemon
Set chatserverhost and chatserverip accordingly.
Start with a small number in chat_servermax to test first.

Run the chat daemon as follows:

Start, Run, Cmd
cd moodle\mod\chat
php chatd.php --start

Leave the command prompt open. Once you see an improvement in chat performance run this as a service using the scheduler or svrany.

For more information, see the Chat Forum, especially this thread http://moodle.org/mod/forum/discuss.php?d=39315.

Ken
回复Francisco Ivan Ruiz Garcia

Re: Windows server: WEB SERVER PERFORMANCE DEGRADATION WHIT MOODLE

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
> It seems to be something like you say on the first point of your list

How do you know?

> Or why it is this happening, Moodle was working great with 5, or maybe 10 users, but when approximately 30 - 35 users try to access to Moodle to create an account or view a course, from the same net, this problems jumps.

Do you mean 30-35 were _chatting_ together?

BTW, another possibility I have missed.

4. Bug in moodle which sent the server out-of-control!



回复Francisco Ivan Ruiz Garcia

Re: Windows server: WEB SERVER PERFORMANCE DEGRADATION WHIT MOODLE

Michael Penney -
This message from your host is probably the main issue:

This type of usage can be caused if your website is very heavily trafficked and contains many dynamic elements.

If you don't mind the question, how much are you paying for your hosting? Most hosts that provide low cost hosting don't plan for more than a few people to access a database driven website at the same time.


回复Michael Penney

Re: Windows server: WEB SERVER PERFORMANCE DEGRADATION WHIT MOODLE

Marcus Green -
Core developers的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像
I think it is good service from your ISP that they are indicating the source of the high load. Plenty of lower end outfits will be far less helpful.
回复Michael Penney

Re: Windows server: WEB SERVER PERFORMANCE DEGRADATION WHIT MOODLE

Francisco Ivan Ruiz Garcia -

Well the it is really cheap my hosting provider i am paying about 7.96 at month

you can see the details in the next url http://www.easycgi.com/services/advanced.html

i am thinking that maybe that could be the problem.

So do you have any hosting server provider that hosts moodle and that you have prove it whit out any problem?

Sorry if my English it is not clear..

Ivan Ruiz