I have been working on a quick and dirty load testing script using LWP::UserAgent, LWPx::TimedHTTP and Parallel::ForkManager. So far it seems to be working out well, however, I am a little baffled by some of the results I am getting from LWPx::TimedHTTP, so I thought I would ask the monastary and see what people knew.
The docs for LWPx::TimedHTTP show 4 values you can query about your timed request.
- Client-Request-Connect-Time - The time it took to connect to the remote server
- Client-Request-Transmit-Time - The time it took to transmit the request
- Client-Response-Server-Time - Time it took to respond to the request
- Client-Response-Receive-Time - Time it took to get the data back
All my values seem pretty normal (less than a second), except for the occasionally
very long times from
Client-Request-Transmit-Time. I am seeing like 100+ seconds for some of these, the other values for that particular page test are less than a second each. I am wondering why such a dramatic skew in one phase of the transaction would not show in the other phases? Could this just be network interference? Is it just a traffic jam leaving my network card? Could
LWPx::TimedHTTP be giving me incorrect numbers? Any thoughts?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.