1 / 7

How to Reduce Server Load in Linux

It is important to check server load and troubleshoot high server load. Here's how to reduce server load in Linux. #linux #webdevelopment <br><br>Visit https://ubiq.co/tech-blog/how-to-reduce-server-load-in-linux/

Download Presentation

How to Reduce Server Load in Linux

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How to Reduce Server Load in Linux

  2. Optimize Website Images Images are responsible for up to 50% of a website’s bandwidth. There are many image compression tools that can compress JPG, PNG, GIF images by up to 80%. Compressed images reduce server load by decreasing its CPU usage. Use CSS effects instead of images, wherever possible. Similarly, use CSS sprites instead of separate icon images. CSS sprite is a collection of images put in a single image. So you can have a single CSS sprite that contains all your image icons. This will reduce your server load considerably, since it has to serve only one file, instead of separate icons. Also, consider using new-age image formats such as webp which are up to 26% smaller than PNG files. Avoid using high-resolution images on your website. A maximum image resolution of 1200×800 px is enough to look great on all devices.

  3. Compress HTML Resources There are many third-party tools like Minify and HTML Minifier that allow you to compress and minify CSS, JS and HTML files for your websites. These tools automatically remove any comments & whitespaces, and replace long variable names with shorter ones to reduce the file size.

  4. Compress your data Most popular servers such as Apache and NGINX allow you to compress data before sending it to the client browser, which is automatically uncompressed and rendered by the browser for its user. In fact, they even allow you to specify compression algorithm (gzip, bzip2, etc) to be used for data compression. Here’s how to enable GZIP compression in Apache.

  5. Host Images on Third-party websites Typically Ecommerce websites, photo sharing apps and social media platforms tend to have a lot images on their servers. In such cases, you may want to host these images on a third-party service such as Flikr or ImageShack, or even try a CDN.

  6. Review Most Frequent Code Every website and application has a set of features that are most frequently called upon by most users. For example, the product catalog, product details page and checkout pages are the most frequently accessed pages on an Ecommerce site. Review the back end code that goes behind the processing of requests to these pages. Look for loops, variables and files that can be optimized or removed, as these tend to consume a lot of memory as well as increase CPU usage. The key to reducing server load is to systematically compress every aspect of your website, and streamline most frequently used code on it. Hopefully, the above article will help you reduce server load in Linux.

  7. Thank You Visit for details https://ubiq.co/tech-blog/how-to-reduce-server-load-in-linux/

More Related