Wiki
 

How to improve my site's performance

Is your site running slow? Are you going to run some performance/benchmark tests? Here are some tips which should boost site performance dramatically.

  • You should consider using one of our LiteSpeed Cache Plugins. These should make your site fly.
  • Try PHP 7 instead of PHP 5.x. PHP 7 claims to be twice as fast as php 5.x.
  • Install and enable PHP opcode cache.
  • Check the real time stats for the number of PHP processes during peak time(LSWS Web Admin → Actions → Real-Time Stats→External Application), check “In Use”, “Idle”, and “WaitQ”. If WaitQ is frequently more higher than 0, the PHP max concurrency setting may need to be increased. For shared hosting environments, where PHP SuEXEC is normally used, PHP suEXEC Max Conn needs to be increased. See our PHP Concurrency wiki for more information on determining if PHP SuEXEC is used and how to increase the max concurrency of PHP.
  • Upgrading to a higher CPU LiteSpeed license should give more processing power.
  • If the server has enough free memory, put PHP sessions and opcode cache disk storage under /dev/shm. If server I/O wait is high, enable AIO logging.
  • Check your “top” output to determine which processes are using too much CPU/memory. Buggy PHP code could be causing these performance issues.
  • For cpanel/WHM user, disable PHP open_basedir feature.
  • Mod_Security firewall checks may slow down the server and sites.
  • Hitting your CloudLinux LVE limits may negatively impact the server's performance.
  • Are Bandwith throttlings enabled for your virtual host to slow down the sites?
  • Is the speed of your network card a bottleneck?
  • Are your server kernel settings configured for high traffic?

Addressing any of the above may improve the performance of your server. However, performance issues may be related to something entirely different. Your situation may vary greatly, because of this, we recommend ordering our LiteSpeed premium support service for a professional review, fine tuning, and installation/enabling of necessary elements to optimize your server and maximize site performance.

 
litespeed_wiki/php/improve-performance.txt · Last modified: 2016/11/21 14:06 by Jackson Zhang