-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bzm - http2 sampler number of connections #50
Comments
Hi @heysarthak Each thread has its own http client and each http client manages connections according to the http specification. When each thread terminates, it sends that thread's client to recycle, thereby closing connections that will not be used again. The http2 plugin supports multiplexing, so multiple requests can be sent on the same connection as opposed to how JMeter's http1 implements it, where for each request it uses a different connection. To allow requests to run in parallel, you must group them in a new controller element "HTTP2 Controller" available in the alpha version. The requests that are incorporated there will run in parallel and take advantage of the multiplexing benefit. There are multiple properties that allow you to adjust the configuration of the http client, but we need to know exactly what you mean by connections in order to see which case should be adjusted. It would be convenient for you to explain a little more in detail about the problem you are detecting. Regards |
I am currently running the whole setup on cloud based infra with Kubernetes, on running the sample request, i can find the total number of connections to 20 nodes on which the server pods are deployed are around 1400+ ps -aef |grep 'java' |grep '-router'|awk '{print "sudo nsenter -t " $2 " -n netstat -nap | grep :8080"}'|sh | awk '{print $4}'|grep '8080'|wc -l i did try changing httpJettyClient.minThreads to 30 or 50, but anyhow i was facing this error. 2023-06-06 13:00:35,693 ERROR o.a.j.s.BatchSampleSender: sampleOccurred |
Hi @heysarthak 1 - The stack it's related to a failure in JMeter RMI communication in JMeter distribute mode. 2 - Currently only recommended use native Thread Group from JMeter. There are other solutions that use thread creation as a solution to trying to simulate concurrency in a JMeter not intended for asynchronous execution. The http2 plugin using the http2 controller supports asynchronous execution, but requires that the main thread created by JMeter's Thread Group not be recreated or manipulated, as it maintains state at the thread level. Other solutions may interfere with that and you may end up creating more instances of the HTTP2 client than you should. My recommendation is to first start simulating http2 execution using asynchronous execution with the http2 controller inside a JMeter thread group. |
Hi @heysarthak The HTTP error 413 Request Entity Too Large it's a server-side control, usually related to the file size limit on upload but in some web frameworks or web servers also it's used in other size limits like "body size limit". It must be analyzed on the server side what is related or associated with the 413 error, it is possible that it is used by some other type of control of size limits. |
Hi,
I was using http2 sampler 2.0.2, in which i am not able to control number of connections made with the server. if the number of threads are decreased, connections are decreased. But so does the performance of load testing.
is there a way to make controlled number of connections with the server per sampler.
i checked 2.0.2-alpha-3 release, it is not well documented yet so cannot find my use case over there.
The text was updated successfully, but these errors were encountered: