Articles tagged with: performance

Let browsers cache static files to greatly speed up your site

Posted by Andreas on Thursday, January 22, 2009 at 14:06 (CET)

There are many factors that determine how long a page takes to show up in a browser. When a page is requested by a browser, the server needs some time to compute the page contents (controller, model/database, view) and returns HTML to the browser. Besides network latency and throughput (which can be optimized by choosing a good hosting provider), there are several ways to speed up the page generation itself (like memoization, action/fragment/query-caching, using memcached, and so on).

But even after the HTML page itself has been transferred to the browser, the page is not necessarily ready to display yet. A page usually references more resources like stylesheets, javascripts and images that need to be requested and transferred. These are mostly static files (located in the public folder of a Rails application) and are directly served by the webserver without invoking the Rails application. So these files takes very little computation time on the server, but they still need some time and bandwith to transfer, which can be optimized.

Read more »
• Tags: , , ,
CommentsPermalink

syslog-ng eating up CPU time for no particular reason

Posted by Andreas on Tuesday, March 04, 2008 at 00:16 (CET)

I encountered a really odd phenomenon with syslog-ng yesterday. A mail- and web-server with considerable traffic was disconnected from the net for some hours during a router failure. After the router came back online and the server was reachable again, I noticed an unusual high system CPU load. Strangely, the server itself wasn’t changed in any way (it wasn’t even shut down) and suddenly the CPU utilization raised to around 80%, whereas it normally stays under 20%. Strange thing was, that most CPU time seemed to be eaten up by the syslog-ng daemon.

Read more »
• Tags: , , ,
CommentsPermalink