Wolfgang Hoschek - DSD Staff wrote:
- disabling stale connections with
connectionMgr.setConnectionStaleCheckingEnabled(false)
improves performance by a factor of 50 (note: factor, not percent).
This is because stale connection checking adds a constant penalty time,
which for very quick requests
Oleg,
Thanks for the kind help with working, well-performing code, which
resolves the problem according to bench runs here.
Just for the record, so that others may benefit as well,
bench runs for *this* use case show the following:
- GetMethod vs. PostMethod makes no noticeable difference
- Simp
Wolfgang,
Please allow me to point out that your comparison is not completely accurate. Apache
benchmark (I assume) uses HTTP GET requests, whereas your test application uses HTTP
POST requests. Besides, you should have used HttpCliet's simple (non-multithreaded)
connection manager to be on an
Wolfgang,
please try using the SimpleHttpConnectionManager instead of
MultiThreadedHttpConnectionManager.
Odi
Wolfgang Hoschek wrote:
I am planning on sending and receiving MANY (tens of tousands) small
SOAP-like serial messages over the same persistent HTTP 1.1 connection,
using a single cli