web load testing with siege on CentOS 5

Recently I’ve needed to do some heavy load/stress testing of a web service at work. We have an API load test tool, but it’s designed to hit our soap server. I needed to hit a javascript file through our new load-balancer – and hit it hard.

We started with Apache Bench (ab) which worked well enough until we realized that it wasn’t doing ssl. The address uses https protocol. So I did a bit of research and found seige.  It’s an ideal tool for this purpose – easy to use from the command line and also supports a configuration file.

Here’s some basic instructions to get it up and running on CentOS 5:

  • Get the latest version:

$ wget ftp://ftp.joedog.org/pub/siege/siege-latest.tar.gz

  • expand the archive
  • make sure you have the ssl libs installed:

$ sudo yum install mod_ssl openssl

  • cd into the siege directory
  • build and install:

./configure --with-ssl=/usr/bin/openssl
sudo make install

  • confirm:

siege -V

  • Note: the instructions suggest installing the tool in a more obvious place that the default, but I didn’t do that.
  • Now you can copy the sample siegerc to your home directory to change the default options:

$ cp docs/siegerc ~/.siegerc
$ cd ~
$ vim .siegerc

  • The default siegerc file is well documented and easy to configure.
  • Time to run it:

$ siege https://www.[yoursecuresite].???

Here’s an example summary report that you get after the test is done or stopped:
HTTP/1.1 200 0.08 secs: 7914 bytes ==> /index.html

Lifting the server siege... done.
Transactions: 311 hits
Availability: 100.00 %
Elapsed time: 1.13 secs
Data transferred: 2.35 MB
Response time: 0.11 secs
Transaction rate: 275.22 trans/sec
Throughput: 2.08 MB/sec
Concurrency: 30.55
Successful transactions: 311
Failed transactions: 0
Longest transaction: 0.35
Shortest transaction: 0.02

installing wine on Snow Leopard

For the most part Snow Leopard was an almost seamless upgrade from Leopard for me. Whenever there’s a major OS X update, some things take a little while to catch up. So I have some understanding when lower level tools require some extra steps to get working.

Wine took a bit of debugging and googling to figure out. Maybe this will help someone else.


I pretty much followed these instructions, with a little variation at the end: http://davidbaumgold.com/tutorials/wine-mac/ Here’s a summary:

  1. install the Xcode dev tools from the Snow Leopard DVD. These are not installed be default. Make sure you select the X11 tools to be installed
  2. Install or upgrade MacPorts: http://www.macports.org/install.php
  3. Install wine with MacPorts:

>> sudo port install wine-devel +universal

Now that should work. However, I didn’t do it that way. I did it without the ‘+universal’ switch and that’s where my troubles began. If you are now in a place where you’re getting this error:

>>sudo port install wine-devel
---> Computing dependencies for wine-devel
---> Extracting wine-devel
Error: You cannot install wine-devel for the architecture(s) i386
Error: because /opt/local/lib/libexpat.dylib only contains the architecture(s) x86_64.
Error: Try reinstalling the port that provides /opt/local/lib/libexpat.dylib with the +universal variant.
Error: Target org.macports.extract returned: incompatible architectures in dependencies
Error: Status 1 encountered during processing.
You need to figure out what port uses that lib and force a universal upgrade. Here's how:
>>port provides /opt/local/lib/libexpat.dylib
/opt/local/lib/libexpat.dylib is provided by: expat

So expat is the culprit. Now lets get it upgraded:

>>sudo port upgrade --enforce-variants expat +universal

I ended up doing this about a dozen times, once for each of the wine dependancies that wine complained about. I eventually got wine installed.

I suppose you could script this by getting all the Wine deps and doing some copy and pasting. That would probably be quicker.


Here’s a post I found that streamlines the process a bit.

selections from my trip-hop playlist

I spent last weekend at a board gaming retreat we call WBC-West. We stayed at Doug’s family’s house in central Oregon and played (mostly) board wargames. When you’re hanging out inside all day playing games, it’s nice to have some tunes going and several of our iPods took turns as DJ.

I put on my trip-hop playlist that I have been building, pruning and refining over the last several years. It’s a mix of techno downtempo, chill and trip-hop that I listen to at work. For me, it’s a great mix to listen to while working as there are not a ton of lyrics to distract, but there’s always good beat to keep you going. I think it works well as gaming background for similar reasons. I got some complements and inquires on the playlist – Eric even said that he’s going to spend his next month’s eMusic quota on bands from the list. So now after 2 post-weekend emails requesting more info on the list, here’s the scoop:

  • 9 Lazy 9
    • The Herb
  • Amon Tobin
    • Bricolage
    • Out From Out Where
    • Permutation
    • Remixes & Collaborations
    • Supermodified
  • Blockhead
    • Downtown Science
    • Music By Cavelight
    • Uncle Tony’s Coloring Book
  • Bonobo
    • Animal Magic
    • Days to Come
    • Dial ‘M’ for Monkey
    • Live Sessions EP
    • One off Remixes and B-Sides
    • Solid Steel Presents: It Came from the Sea
    • Sweetness
  • Chris W. Paine
    • Weird Conversations
  • Cut Chemist
    • The Audience’s Listening
  • Czarny Wladek
    • Wolnosc
  • DJ /rupture
    • Uproot
  • DJ Krush
    • Kakusei
  • DJ Shadow
    • Entroducing……
    • Preemptive Strike
    • Private Press
    • Bombay the Hard Way
  • Free the Robots
    • Free the Robots EP
  • Gotan Project
    • Inspiracion-Espiracion Remix
    • La Revancha del Tango
    • Lunatico
    • Mare Tranquillitatis
  • Greyboy
    • Land of the Lost
  • Groove Armada
    • AnotherLateNight
    • Back to Mine
    • Goodbye Country (Hello Nightclub)
    • Love Box
    • Northern Star
    • Vertigo
  • Helicopter Down!
    • Junshi
  • Kruder Dorfmeister
    • The K&D Sessions
  • Massive Attack
    • 100th Window
    • Blue Lines
    • Mezzanine
    • Nexus (Bootleg)
    • No Protection: Massive Attack Vs. Mad Professor
    • Pi (Symbol)
    • Protection
    • Rising Tears
    • the karmacoma e.p.
  • Mocean Worker
    • Aural & Hearty
    • Enter The MoWo!
    • Home Movies From The Brainforest
  • Orbital
    • Snivilisation
  • Portishead
    • Dummy
    • Portishead
    • Third
  • RJD2
    • Dead Ringer
  • St. Germain
    • Tourist
  • Strange Republik
    • Infiltration
    • No Tomorrow
  • Thievery Corporation
    • 18th Street Lounge Comp.
    • DJ Kicks
    • Hi-Fidelity Lounge
    • Om Lounge, Vol. 1
    • Radio Retaliation
    • Sounds From The Thievery Hi-Fi
    • The Cosmic Game
    • The Mirror Conspiracy
    • The Outernational Sound
    • The Richest Man In Babylon
  • Thunderball
    • Scorpio Rising
  • U.N.K.L.E
    • Psyence Fiction
  • Ulrich Schnauss
    • A Strangely Isolated Place
    • Far Away Trains Passing By
  • Wax Tailor
    • Hope And Sorrow
    • Tales Of The Forgotten Melodies
  • Zero 7
    • Simple Things

Wow, that’s a long list. I regularly refine it, so not all tracks from all these albums are actually part of it, but still…

If you have any suggestions of other bands or albums for me, please comment.

Enjoy the chill.

Mac Tips and Tricks – part 1 – Handy apps and utils

This is the first installment in a series I will be posting about how to get the most from your Mac. I run into a lot of switchers and often get questions about how to do stuff on the Mac. So instead of copying, pasting and updating the same email repeatedly, I can now refer them to my blog 😉

Let me know if there are any specific areas that you would like me to cover in the future.

Disclaimer: The opinions expressed in this article (and my whole blog for that matter) are mine and mine alone. Additionally, I have not received compensation related to any of the software mentioned here.

Part 1 – Handy applications and utilities

OS X 10.5.x (leopard) has a pretty nice set of built-in features and applications. But there’s always room for improvement. The following is a list of free, shareware and commercial tools that I recommend.

System Utilities
LaunchBar – A keyboard driven launcher, navigator and general productivity tool. This is the first thing I install on any Mac that I use. Shareware. An alternative to quicksilver, very similar, but some feature differences. Quicksilver is free and will probably work just fine for you. They’re charging a bit more for the latest version of LaunchBar (24 euros – about $31) and it’s probably a bit too much. I got the first version for $12 and have been upgrading since.

Growl – system wide notifications, lots of supporting apps – free

MenuMeters – all your machine’s vitals in configurable displays in your menu bar – free

Adium – All-in-one instant messaging client. Supports a ton of different protocols in a highly configurable app. Free

Google Notifier – If you use gmail or google canendar, I highly recommend this.

Default Folder – Simply brilliant. Besides remembering where you last opened files from on a per app basis and giving hot keys to specific locations, this will allow you to mouse-over a Finder window and have your open/save dialog goto that directory. Just try it or let me demo if for you. Unfortunately, the latest version is a bit expensive at $35.

Network and File utilities:

Chicken of the VNC – handy VNC client for your remoting needs – free

RDC – Remote Desktop Connect. Open a VNC-like network session with a windows box, only faster. The best Mac app that M$ has released, evar.

Parallels – Virtualization for when you have to foray into other OS’s locally. Latest version has coherence and supports most USB devices (even ones not supported by OSX). Commercial.

Toast – CD/DVD burning app. Commercial.

muCommander – General purpose file manager with excellent network features, based on Norton Commander. Free.

Cyberduck – Handy s/ftp app – if you do that sort of thing with a GUI. Free/Nagware.

Laptop Specific stuff
SlimBatteryMonitor – big improvement over the one built into the OS , and free.
Note: I used to have more of these, but the MBP and Leopard have incorporated their functionality.

Dev tools
TextMate – A fantastic editor and IDE. Configurable, scriptable, pluggable. BBEdit is a fading memory for me. Commercial, $54.
iTerm – Replacement for Terminal.app – tabbed interface, uses Linux compatible keyset, bookmarks. – free
CocoaMySQL – GUI for management of your MYSql DBs – free
svnX – GUI for SVN. A little rough around the edges, but stable and useful – free

Data management and prodctivity:

Dropbox – Secure, remote file storage and syncing. I use this for application specific data files and small backups. Free for your first 2BG, pay for more.

Evernote – My current favorite tool. This is the data management solution that I have been trying to find/hack/create for years. It’s a personal wiki/cms with rich formatting, tags, categories and easy importing from email and web. But what really sells it for me are the client apps with syncing and offline use. There are clients for Mac, Win, iPhone and others. They all keep synchronized with each other and allow offline editing. I can’t tell you how much time I’ve spent trying to solve this problem for myself with combinations of web apps, Mac apps, scripts, etc. Finally I have one place to put all my data where I can access and update it whether I’m at home, work, on the bus or at a coffee shop. The first 40MB a month are free – which is plenty if you’re mostly storing text, like me. You can pay for more.

VoodooPad – A wiki wrapped up in an application. Great for notes, lists, reference, etc. However I think Evernote will soon completely replace this for me. Shareware.

1Password – Secure, encrypted login/password/data storage with excellent browser and iPhone integration. $40, but you can often find it discounted or even free bundled with other apps.

Things – A well designed todo list and task manager, one of the best I’ve ever used. It’s based on GTD, but you don’t have to use it that way. Has an iPhone app that is useful independently and well integrated, but costs additional also. $50 for the Mac, $10 for iPhone.

Skitch – Uber-screenshot tool. Capture screens, edit the images, share them on the web, all-in-one. Free.


Twitterific – Handy twitter client. Free with ads, pay to get rid of them.

VLC – Plays just about any video you throw at it. Can be controlled by the IR remote that comes with your MBP. Cross platform. Free

Graphic Converter – Reads and writes most ANY graphic format. Does decent editing and even has some automation/script-ability. Also a quick image browser. Shareware. If you want something free that does a bit more than iPhoto, try Seashore.

GimmeSomeTune – iTunes extension with great hotkey functionality and some other nice features.

That’s my current list. I’d be interested in your opinions on these. What apps do you use and like?

One Monster after Another

Griffin’s first play:

Link to the movie: One Monster after another

Check out the costume that Kelle made and Denyce helped decorated.

Griffin the comedian

For a while now, Griffin has been reading by flashlight when he goes to bed. We often hear him talking about or laughing at the stories he’s reading. Fortunately, Tober goes to sleep fast and hard so he’s not bothered by this.

Griffin has been into joke books lately. So of course he has also been trying his hand at authoring some jokes. The other night when I went in to tell him lights out, he told me this little gem:

“What do you use to make cookies and is at a baseball game?”

That’s right: “A Batter”

Not bad, huh? We’re encouraging him to write them down, he already has a bunch.

Best name for a fictional cheese shop ever

“Cheese Gotta have it”

Mentioned on this week’s episode of Weeds.

Previous Older Entries