Informative articles on various technologies ...
Many tools are discussed, including: top, htop, atop, vmstat, netstat, ntop, vnstat, iostat, strace, systemtap, oprofile, apachetop, MySQL processlist, Munin, Awstats, and Google Analytics.
These are the slides from a talk done at the Free Software and Open Source Symposium (FSOSS) at Seneca College in Toronto. The attendance was overwhelming with several people standing at the back of the room.
The talk is titled: Open Source for Fun and Profit: making a career out of FOSS, and draws heavily from Khalid's experiences in the Drupal community.
We have posted before on how to display previous/next thumbnails for image nodes. We also have a module that is basically a Previous/Next API for high volume / high performance sites.
But sometimes you need a simpler solution for regular nodes, just using the node title and a link to it. This article explains how to achieve that for Drupal 6 in one simple function and a few changes to one .tpl.php file.
First, we start off with the code that does the heavy lifting.
In your theme's template.php add the first function from the attached file. By default it provides paging for blog posts only. You can change that to another type of node (or multiple types).
The code is fast, since it uses the nid as an index. So if you use this on large sites, it would not slow them down.
Then in your node.tpl.php, or node-TYPE.tpl.php, add the second snippet in the attached file. This provides calls to the next/previous node with hyperlinked titles.
For the styling, add the CSS from last snippet in the attached file.
On Monday Sept 14th, Khalid presented on the Apache Web Server at the Kitchener Waterloo Linux Users Group (KWLUG).
The presentation starts with an overview of the HTTP protocol, then shows off Apache's market share and popularity, as well as use within the top 20 web sites worldwide. Then it delves into the details of installation and configuration, ending with performance and security.
The slides from the presentation are attached.
However, the result was less performance for this server that was humming alone happily with the older version.
The Munin graphs tell it all: look at the change at 12:00 noon.
Here is the CPU graph, showing double the CPU utilization on this sever.
Too often when someone asks for a feature "Can Drupal do xyz"? The answer is "just install the whatever module". While this is the correct answer in 90% of the cases, there are other cases where an additional module is bad thing to have.
Performance troubleshooting and tuning of web sites is often, to paraphrase Winston Churchill, "a puzzle inside a riddle, wrapped in an enigma".
One of those puzzles is how sites are put together: in this case: multiple layers of modules that obscure the real cause of where the slowness of a site is, and a theme for the topping.
Problem and symptoms
In some large client sites, we see many queries from the session handling code in drupal, mostly from the sess_write() function in includs/session.inc.
Examples of creating a new session:
INSERT INTO sessions (sid, uid, cache, hostname, session, timestamp) VALUES ('744e888350d5c759f067d58380f6874e', 0, 0, '10.1.1.1', '', 1243567441)
And examples for updating a session:
Is your Drupal or Backdrop CMS site slow?
Is it suffering from server resources shortages?
Is it experiencing outages?
Contact us for Drupal or Backdrop CMS Performance Optimization and Tuning Consulting