CPU USAGE 100%

CPU USAGE 100%

by roc mehra -
Number of replies: 16

My CPU reach 100% while active 20 user .

Average of ratings: -
In reply to roc mehra

Re: CPU USAGE 100%

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Congratulations! That is one would call perfect planning.
smile

I don't see a question though. Please check the information in the header of this forum first.
In reply to Visvanath Ratnaweera

Re: CPU USAGE 100%

by roc mehra -

Hi,

I am using Moodle 2.2 Hosted on lan server not on internet.

And the server configuration as follows

Processot Pentium Dual Core 2.80 Ghz and Ram 4.00 G.b

And our testing team while run load test the server CPU usage reach 100% while 20 user cocurrently attempt the quiz.

In reply to roc mehra

Re: CPU USAGE 100%

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi roc

You wrote:
> And the server configuration as follows
>
> Processot Pentium Dual Core 2.80 Ghz and Ram 4.00 G.b

No operating system at all? I ask you because this is what the introduction to this forum https://moodle.org/mod/forum/view.php?id=596 says: "Please include as much background information as possible about your hardware, the operating system, the web server, the database server, the PHP scripting framework, etc."

> And our testing team while run load test the server CPU usage reach 100% while 20 user concurrently attempt the quiz.

Could you, or the testing team, post that report here? We all interested to know how Moodle perform in practice.

BTW, if your enviromnet is Microsoft only, there is a different forum, the "Windows-based servers" forum https://moodle.org/mod/forum/view.php?id=6799. I can shift the whole discussion to that forum if you wish. Just send me a message.
In reply to Visvanath Ratnaweera

Re: CPU USAGE 100%

by roc mehra -

I am using window7, xamp and mysql.
And my moodle site is not hosted on any web server. It just running on server which is accessible through networking only in mu company.

This is what my tester said

I have recorded the script as :-
1. Hit URL
2. Logged In
3. Clicked on the test Support Staff assessment Asr November 2
4. Answered 2 questions among all
5. Submit the test
6. User Log out

Test Design:-
Total users : 20
User Load : 2 after every 1 sec
Run Time : 30 mins

In reply to roc mehra

Re: CPU USAGE 100%

by roc mehra -

Hi,

So what i want to know what hardawre configuration should be required for cocurrently 100 users. So that cpu usage never reach 100%.

Thanks in advance.

 

In reply to roc mehra

Re: CPU USAGE 100%

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

I'm the wrong person to answer questions on Microsoft Windows, I'm sorry. I hope someone more knowledgeable will come to rescue.

More bad news: There was a dedicated "Windows-based Servers" forum which was scrapped very recently: https://moodle.org/mod/forum/discuss.php?d=218412&parent=951048.

From what I've heard a) Windows 7 is not a server operating system b) XAMPP is not meant for production use. I qoute: "The default configuration is not good from a securtiy point of view and it's not secure enough for a production environment - please don't use XAMPP in such environment." http://www.apachefriends.org/en/xampp.html

P.S. Sorry for what happened to your other post: https://moodle.org/mod/forum/discuss.php?d=218411. I need to clarify where it should go now.
In reply to Visvanath Ratnaweera

Re: CPU USAGE 100%

by roc mehra -

Hi,

Sorry but i did not get you. IF YOU COULD NOT ANSWER ME OR TOOK ME ON THE RIGHT TRACK.SO WHERE I HAVE TO SEARCH ON.

thanks

In reply to roc mehra

Re: CPU USAGE 100%

by Ken Task -
Picture of Particularly helpful Moodlers

Search term: 'hardware recommendations' if on Moodle.org.

Google: same http://bit.ly/106WF3L

Specific link:

http://docs.moodle.org/22/en/Installing_Moodle#Hardware

Would think that sending a script at a quiz might not really provide 'real world' usage - depends upon script.  Wonder how quickly any user could take a 20 question quiz - 2 seconds per question?  But ... that aside,  quiz is one of the heaviest in regards to processing in Moodle.

Recommendations one sees for memory is a forumla.  To make this easy ... max out the RAM on it ... whatever the box can take.

Running 64 bit or 32 bit?  That's another factor.  Not so much for apache but for DB.

Consider running a virtual OS where one could increase memory or number of cores easily.

'spirit of sharing', Ken

Average of ratings: Useful (1)
In reply to roc mehra

Re: CPU USAGE 100%

by Michael Penney -
Hi Roc, the main answer is that XAMMP is not meant for running a production system, its not built or tuned for that. The second part of the answer is that Windows 7 is not a server operating system, and also not suitable for the use you are using it for.

You will want to set up an actual windows server and set it to run via IIS. There is a good guide for that here: http://keshwarsblog.com/2011/how-to-install-moodle-2-0-on-windows-server-2008r2-with-mysql/

In reply to Michael Penney

Re: CPU USAGE 100%

by roc mehra -

Hi Micheal,

If i use IIS how does it impact on CPU Usage? Or currently i have 20 user simultaneously and i have to reach this limit 100 users.

What kind of server should be i mean (ram and processor)

Currently (4 gb ram and dual core processor)

 

In reply to roc mehra

Re: CPU USAGE 100%

by Gerrit Anderson -

Just to chime in, I had the newest release of moodle running on a 4.2 Ghz Quad Core, with 8 GB of ram.  Running Windows Server 2008 R2 Standard, IIS, MySQL, and PHP 5.4 (I believe it was 5.4), and really had very poor results...  I then created a Hyper V virtualized Ubuntu 10.04 server, allocating 1 core at 100%, and 2 GB of ram, and I have had no issues since.  Truthfully, if you wish to succeed at that amount of concerent users, you should switch to a linux box.

 

What you currently have, running in a LAMP environment, will blow your mind by performance difference.  Atleast it did in my situation.

In reply to Gerrit Anderson

Re: CPU USAGE 100%

by roc mehra -

Hi Gerrit,

Thanks for your answer. How many user you have which can cocurrently access your site with linux configuration.

 

In reply to roc mehra

Re: CPU USAGE 100%

by roc mehra -

Hi ,

I am thinking to move on ubuntu with moodle 2.2

Which version of ubuntu should be used.

Thanks in advance

In reply to roc mehra

Re: CPU USAGE 100%

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi roc

- If Ubuntu and for professional use, take the server version http://www.ubuntu.com/download/server, the command line version without a graphical user interface.
- If on state-of-the-art 64 bit http://en.wikipedia.org/wiki/X86-64 hardware the 64 bit version of Ubuntu is right.
- For long term stability 12.04 LTS (long-term support) is highly advised.

I wrote down a set of instructions starting from the installation of Debian/Ubuntu here http://docs.moodle.org/22/en/Installing_Moodle_on_Debian_based_distributions (don't let the /22/ in the URL distract you, those instructions are valid for all Moodle versions between 1.6 and 2.4.) Your feedback is welcome.

For Moodle unrelated problems with Ubuntu there are plenty of support forums, news groups, local user groups, etc.
Average of ratings: Useful (1)
In reply to Visvanath Ratnaweera

Re: CPU USAGE 100%

by roc mehra -

Hi Visvanath ,

Thanks For Your fast reply. I will install soon and i would like to share my experience after this.

Thanks

In reply to roc mehra

Re: CPU USAGE 100%

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi roc

You're welcome! I'm keen to get feedback from the users.

As already mentioned, for the components unrelated to Moodle you should consult other sources. During the installation of Moodle the correct forum is "Installation problems". See for example https://moodle.org/mod/forum/discuss.php?d=217081.

If performance related this forum (Hardware and Performance) is the right one. Please start a new discussion though.