[Cppcms-users] Idle time in handling post requests
Brought to you by:
artyom-beilis
|
From: Dr. P. G. <pet...@si...> - 2014-11-20 13:26:55
|
Hi,
We are using a CppCMS server and its performance is very low for post
requests when the post messages reach a certain size of some kB. This
already happens with minimal server examples from the beginners tutorial.
The weird thing is that the server spends only 6 milliseconds in the
main function (in total) but one or two seconds between two calls.
1. What is CppCMS doing in this time?
2. And more importantly, how can this time be shortened?
3. Is it an issue of the thread pool?
4. Is there some expensive treatment for the post messages? (I read
something about compression) Can it be turned off or accelerated?
Post requests with small data did not show these idle phases.
9 post requests with XML files between 8 and 10kB took 10 seconds wall
clock time without even treating the requests. The user time was only 45ms.
The same post requests take less than half a second with a similarly
minimalistic node.js server. I tried different configurations and read a
lot of dox and posts put couldn't find something that explains these
long idle times. Any help is welcome. I can send the code and the
configurations if this helps.
Thank you in advance,
Peter
---
curl> time post_xml_files.sh
Hello from CppCMS after 0.000135s
Hello from CppCMS after 0.00111s
Hello from CppCMS after 0.001995s
Hello from CppCMS after 0.002756s
Hello from CppCMS after 0.00354s
Hello from CppCMS after 0.004228s
Hello from CppCMS after 0.004865s
Hello from CppCMS after 0.005481s
Hello from CppCMS after 0.006174s
real 0m10.154s
user 0m0.046s
sys 0m0.064s
|