While Drupal is an effective CMS it can be quite draining on your PC as far as your RAM and CPU usage, but there are things you can do to minimize the effect. Being able to speed up the load time of your web pages and keep the site running smoothly is very important which is why currently over 800,000 websites are using Drupal. The following are 5 basic yet beneficial tips on how to optimize the performance of Drupal on your website while conserving as much PC memory and power as possible.
1 Disable Statistics Module
If you’re implementing new methods to help increase traffic or site visibility then the Statistics module is a great tool to have because it has the ability to track every single pageview and referrer which lets you see the overall productivity of your sight. But the fact that it does track every single pageview and referrer can pose a problem on your CPU. With such a significant load, CPU usage can easily increase to 40% especially when your site is experiencing peak traffic. If you’re not testing new traffic strategies or observing ad performance then simply disable the Statistics module and turn it on only when you need it.
2 Clear Sessions Table
If you have a high traffic site and frequently receive new visitors, the sessions table can quickly grow to unnecessary volumes. This is especially apparent when you have a lot of SPAM that come through your site. At least once a week you should completely clear and empty the sessions table. This action will automatically log all current users out and will require a log-in action the next time they visit the site. It’s a minor inconvenience to an action that will help to free up valuable memory space.
3 RAM Upgrade
Many people look over the option of upgrading their RAM to a larger capacity thinking it would do little to help conserve memory and power, but in essence it might be one of the most simplest yet effective things you can do. For example, by upgrading your server from a 1 GB RAM to a 2 GB RAM, your usage can decrease by up to 50%. This in turn can also bring down your swap usage to 0%. When your server doesn’t have to revert to using swap space you will noticeably see an increase in the speed of your PC, site and Drupal.
4 Remove Modules Not In Use
You’d think this seemingly insignificant action would be a no-brainer to many, but in reality there are a lot of individuals who keep unused modules in their settings. Whether they realize it or not, these deactivated modules are still taking up some valuable memory space so it would be best to just completely remove them altogether from the module’s directory.
5 Activate Drupal Cache
If you’d like to save your memory from having to deal with tons of database queries for a page to build then activate Drupal cache. It stores the entire HTML of a page in the database for quick access. Not only will it speed up your site’s performance, but it too saves memory.
While Drupal may be an excellent CMS, there are still plenty of things you can do to improve its overall performance. Implementing simple tips like the ones above can make a world of difference to the efficiency of Drupal and your site.