My flask_socketio api is very long in load #1628
Replies: 2 comments 2 replies
-
You are using eventlet, which is probably confusing your profiler. I suggest that for profiling you use the threading mode, which is fully compatible with the werkzeug profiler. Can I ask you to repeat the test that way? |
Beta Was this translation helpful? Give feedback.
-
Thanks this help me find the issue. Here is my code to manage the connections to the database :
When I need a connection I call getConn and then I use it I call putConn |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have noticed that when I test my api with jmeter and send more than 20 requests per second the response time starts to increase exponentially.
Even for a request that only returns "hello".
I tested on a not very powerful machine (2 giga of ram and 2 core) and also on a very powerful machine (32 giga and 12 core) and the result is almost the same
Here are the results of the werkzeug profiler :
Beta Was this translation helpful? Give feedback.
All reactions