Optimizing HTTP/2 tests for SOA
HTTP/2 tests require a lot of CPU and memory resources. When you apply load on HTTP/2 tests using computers that do not have enough resources, the tests might fail. You might want to configure or tune the computers that run HTTP/2 tests.
CPU Usage
Memory usage and garbage collection
Ensure that enough memory is available for the test execution. You can configure the garbage collector and adjust the memory heap size.
- RPT_VMARGS
-
-XX:MaxGCPauseMillis=250 -XX:ParallelGCThreads=6 -XX:ConcGCThreads=3 -XX:GCTimeRatio=19
- RPT_VMARGS
- -Xms11024m
- RPT_DEFAULT_MEMORY
- 22412m
Thread Usage
Ensure that you start load testing with fewer virtual testers and gradually ramp up the workload. This practice helps in observing the changes in the workload, that is, the number of calls per second. In the graph, when the number of calls per second is flat, it indicates that the maximum capacity of the computer is reached and there is no need to add more virtual testers.
Platform tuning
Configure the TCP/Socket capabilities of your system by following these two links:
https://www.eclipse.org/jetty/documentation/jetty-9/index.html#high-load
https://www.microsoft.com/en-us/download/details.aspx?id=56495