Moodle site Performance

Working with the content heavy LMS website is not easy task. Today, I come across the problem where site is getting slower when concurrent users are hitting system at the same time. Our client has set up LMS in their network which should be accessible on internal as well as external environment. There are a million ways to boost your LMS site performance. The three main areas that should work on first Hardware (Web server)/Network set up, Server side scripting Language and front end performance.

• Network Set up

You could ask list of questions to client about their network setup.

1. Reducing the number of unique hostname may increase response time.
2. How much network bandwidth in internal network?
3. How many workstations running in internal network and how much far from application server?
4. How many VM loaded on the Single Host?
5. Adding second NIC on application server
6. Memory overcommit on VM
7. Protocol acceleration for high latency
8. Out-of-band management can improve overall network performance through greater uptime
9. Adding caching/media server

• Web server side

1. Adding eaccelerator on Apache web server
Here is link for download eaccelerator :
http://www.sitebuddy.com/PHP/Accelerators/eAccelerator_windows_binaries_builds?page=2
http://www.sitebuddy.com/PHP/Accelerators/eAccelerator

PHP.ini setting (Make sure you have right version of eaccelerator based on PHP and thread/no- thread version)
extension=eaccelerator_ts.dll
eaccelerator.shm_size=”64″ ;
eaccelerator.cache_dir=”C:\eaccelerator”
eaccelerator.enable=”1″
eaccelerator.optimizer=”1″
eaccelerator.check_mtime=”1″
eaccelerator.filter=””
eaccelerator.shm_max=”0″
eaccelerator.shm_ttl=”0″
eaccelerator.shm_prune_period=”0″
eaccelerator.shm_only=”0″
eaccelerator.compress=”1″
eaccelerator.compress_level=”9″
eaccelerator.keys = “shm”
eaccelerator.sessions = “shm”
eaccelerator.content = “shm”
eaccelerator.admin.name=”admin”
eaccelerator.admin.password=”test”
eaccelerator.allowed_admin_path = “C:\test\eaccelerator\control.php”

2. Adding compression method on server.
You may need to add the mod_gzip compression on your server.It will help the PHP,HTML,CSS pages will be compressed before sent to the users’s browser.This reduces the file sizes of the transfer, which also reduce the connection time between your moodle server and client’s browser.So it should translate faster page loads!
Link for compression method:
http://www.neiland.net/blog/article/enable-gzip-compression-in-apache-httpd-with-moddeflate/
http://www.whatsmyip.org/http_compression/phpgzip/

• Front-end side

The front-end (i.e. your HTML, CSS, JavaScript, and images) is the most accessible part of your website.

http://sixrevisions.com/web-development/10-ways-to-improve-your-web-page-performance
http://sixrevisions.com/css/css_code_optimization_formatting_validation/
http://sixrevisions.com/web-development/site-speed-performance
http://www.cleancss.com
http://moz.com/blog/15-tips-to-speed-up-your-website

This entry was posted in Moodle(LMS). Bookmark the permalink.