Hashbang.ca

Pages

  • Privacy Policy
  • About the author

Posts

  • Book review: Site Reliability Engineering
  • Diagnosing performance degradation under adverse circumstances
  • CSRF vulnerability at CloudAtCost.com
  • Legal issues in computer security research
  • Recovering from Heartbleed
  • Mike will be a Googler
  • Upgrading encrypted Android devices
  • Exploring Canada's computer crime laws: Part 3
  • Exploring Canada's computer crime laws: Part 2
  • Exploring Canada's computer crime laws: Part 1
  • How to run a question period
  • Validating SSL certificates for IRC bouncers
  • Introducing Hack::Natas
  • Presenting my Natas solutions at NSLUG
  • SSL configuration on nginx
  • Server-side security war games: Part 16
  • Server-side security war games: Part 15
  • Server-side security war games: Part 14
  • Server-side security war games: Part 13
  • Server-side security war games: Part 12

Tags

acme activemq advocacy agile android apache atlseccon bash bdfoy biella book-review bug busybox c-11 canada cfaa chromatic cli co-op coding-freedom conference copyright corba cpan crime crypto csp csrf curl cyanogenmod dagolden dal dancer dbix-class debian deployment design dhcp docs doy drdc drm dzil font foss gedit git google hacking hci heartbleed ide incident infosec ingy irc jacinta jamesgannon java journalism kentnl lawful-access leagueofmovabletype leont linux luks lvm lwp marketing memcached mgeist miyagawa mmims mock mod_perl modern-perl module-build moose movabletype mst natas nginx nickdepetrillo noose nslug obra oo p5p patch path-tiny performance perl perl5i php plack politics prepan psych pythian quinnorton regex release rjbs roadmap rolsky rwstauner schwern scm sf spying sql sre ssl survillance talks techpolicy testing thanks tls twitter typography ui unicode updated utf8 vuln wall waterfall wifi windows wordpress xss yanick yapc youtube

Links

  • Twitter
  • Instagram
  • Github
  • LinkedIn
  • CPAN
  • keybase.io

Customise

  • White
  • Black
  • Blue
  • Green
  • Grey

Diagnosing performance degradation under adverse circumstances

[This post is a few years old and was never published. Recently, I was reminded about memcached slab imbalance, which in turn reminded me of this post.]

At work, we encountered a sudden and precipitous performance regression on one particular page of a legacy application. It’s a Perl web application, running under mod_perl, using ModPerl::RegistryLoader to compile scripts at server startup, and Apache::DBI to provide persistent database connections.

Our users suddenly began complaining about one particular page being “three times slower than normal.” Later examination of the Apache logs showed a 20x(!!) slowdown.

Investigating this performance problem was interesting because we didn’t have good access to required data, and our technology choices slowed us down or completely prevented us from collecting it. Although we solved the mystery, the experience had several important lessons.

Read More...
Permanent link for post: /post/diagnosing-performance-degradation-under-adverse-circumstances/
Posted: Jun 3, 2015
Tags: apache  incident  linux  memcached  mod_perl  performance 

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 License .