[jdev] stressing xmpp servers

Eric Will rakaur at malkier.net
Fri Oct 3 12:01:38 CDT 2008


Has anyone out there written/heard of/used an app to stress test a
server? I need to do some profiling, and I'd rather not have to write
my own. :) Just something that connects a few clients over and over
for a while, sends some stanzas, disconnect, do it again, etc.

I did this myself, manually, with a couple clients open, and I got this profile:

  %   cumulative   self              self     total
 time   seconds   seconds    calls  ms/call  ms/call  name
  6.99     3.69      3.69    12435     0.30     8.77  Array#each
  3.71     5.65      1.96     1571     1.25     2.37
REXML::Parsers::BaseParser#pull
  3.47     7.48      1.83     3073     0.60     1.84  Hash#each_value
  2.98     9.05      1.57      209     7.51   223.97
REXML::Parsers::SAX2Parser#parse
  2.77    10.51      1.46     2344     0.62     6.04
REXML::Formatters::Default#write_element
  2.73    11.95      1.44     5582     0.26     0.42  REXML::Element#root
  2.62    13.33      1.38     3083     0.45     5.33
REXML::Formatters::Default#write
  2.50    14.65      1.32     1518     0.87     4.82  REXML::Attributes#[]=
  2.27    15.85      1.20     6428     0.19     0.33  REXML::Entity#value
  2.05    16.93      1.08        1  1080.00  1430.00  String#each_byte

I'm guessing REXML is going to be an issue if I want it to scale, but
otherwise I'm spending the most time in native Ruby methods.

-- xmpp:rakaur at malkier.net



More information about the JDev mailing list