Performance testing a WordPress site locally?

Why do you want to test it on localhost if this doesnt reflect your real server envirement? You can do these kind of test (but not on localhost) with a website called https://www.blitz.io/ It shows you exactly the response times for your server, how many users it can handle till producing errors, etc. But you … Read more

Calling various CSS sheets in header a good idea?

Instead of directly outputting the stylesheets to your header, you should use wp_enqueue_stylesheet. Take a look at this example: add_action( ‘wp_enqueue_scripts’, ‘my_scripts’ ); function my_scripts(){ if (is_page([505,981,928,1035,1036])) wp_enqueue_style( ‘css1′, get_template_directory_uri().’/start-here.css’); if (is_page([37,40])) wp_enqueue_style( ‘css2′, get_template_directory_uri().’/faq-links.css.css’); if (is_page(’27’)) wp_enqueue_style( ‘css3′, get_template_directory_uri().’/contact-form.css’); if (is_front_page()) wp_enqueue_style( ‘css4′, get_template_directory_uri().’/slider.css’); } This way, you don’t have to mess with your … Read more

High load average, low CPU usage – why?

With some further investigation, it appears that the performance problem is mostly due to a high number of network calls between two systems (Oracle SSXA and UCM). The calls are quick but plenty and serialized, hence the low CPU usage (mostly waiting for I/O), the high load average (many calls waiting to be processed) and … Read more

Measure WordPress performance on different hosts

IMHO Your attempt is pointless. On shared hosting you are not going to get consistent results as the results will depend on load generated by other sites on the server, or other sites using the DB server. even worse, the results might change after you have done the testing if new sites were added to … Read more

How can a single disk in a hardware SATA RAID-10 array bring the entire array to a screeching halt?

I hate to say “don’t use SATA” in critical production environments, but I’ve seen this situation quite often. SATA drives are not generally meant for the duty cycle you describe, although you did spec drives specifically rated for 24×7 operation in your setup. My experience has been that SATA drives can fail in unpredictable ways, … Read more

FreeBSD performance tuning: Sysctl parameter, loader.conf, kernel

I’d recommend against options IPFIREWALL_DEFAULT_TO_ACCEPT. The default is to Default to Deny. The firewall comes up with just one rule deny ip from any to any and stays that way until a script configures exactly what traffic should get through. Follow-Up Note: RSA (one of the world’s leading security technology companies) was hacked recently when … Read more

Are networks now faster than disks?

Here are some numbers that you are probably looking for, as quoted by Jeff Dean, a Google Fellow: Numbers Everyone Should Know L1 cache reference 0.5 ns Branch mispredict 5 ns L2 cache reference 7 ns Mutex lock/unlock 100 ns (25) Main memory reference 100 ns Compress 1K bytes with Zippy 10,000 ns (3,000) Send … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)