Re: moodle system going down/getting stuck very often (II)

Re: moodle system going down/getting stuck very often (II)

by Sam McNeill -
Number of replies: 5

[quote]If you're high in 'user', then you might find that you've not got your web server tuned adequately and it's killing the rest of the server.[/quote]

We also have this issue of high user CPU load when submitting assignments. We had 33 users online of which around 20 were uploading small Word documents for "Assignment - upload a single file" type submission.

Our setup is:

Ubuntu 12.04

4GB RAM

4 core CPU

PHP 5 / mySQL 5

Moodle 2.2.2

RAM is only 3GB used and no swap at all, but our CPU usage and overall load is very high - it got to over 20 just now.


We anticipate much higher usage from our Moodle config, but are concerned that when users are all submitting files the load grinds the box to a halt.

What aspects of tuning the web server could address this specific issue?

 

Cheers

(Splitting from this discussion as this is a different case.
Edited by Visvanath Ratnaweera - original submission Thursday, 31 May 2012, 12:42 AM
)

Average of ratings: -
In reply to Sam McNeill

Re: moodle system going down/getting stuck very often

by Frank B -

Put the database on it's own server. You've reached critical mass on that server. If you don't want to disable any features. Disabling some features might buy you some time. I'm hosted on an amazon EC2 and have a seperate RDS instance for the database. It helps me monitor and track usage that way. Definitely get another server for the database. Or increase memory. But you are eventually gonna hit another wall soon, even with 8 gigs. I did.

In reply to Frank B

Re: moodle system going down/getting stuck very often

by Sam McNeill -

Hi Frank,

Thanks for your quick reply. I agree that putting the mySQL on a different server is something to explore, but I'm not convinced this is a RAM issue at this point, since despite the heavy load and CPU usage, we've never hit swap at any point.

Addititionally, this type of load has been completely atypical. Previously, we've had 30+ users on at once and the 15min load average has never exceeded 2, let alone 4.

We could easily move the mySQL to a different VM and see if improves performance at all.

In reply to Sam McNeill

Re: moodle system going down/getting stuck very often (II)

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Is this a virtual machine? If so please mention the resources separately (see the introduction to this forum).

We had discussions in this forum where the root cause was poor I/O performance of virtualization (try the 'advanced search facility' mentioned in the intro).
In reply to Visvanath Ratnaweera

Re: moodle system going down/getting stuck very often (II)

by Sam McNeill -

Yes, it is a VM - apologies for the oversight.

I'll try and advanced search and see what it reveals.

Many thanks.