Performance optimization cases
1. Performance optimization case 1: adjusting heap size to improve service throughput
1.1. Modify tomcat JVM configuration
In the production environment, Tomcat does not recommend configuring variables directly in catalina.sh, but in setenv.sh under the same level directory (bin directory) as Catalina.
1.2 initial configuration
Writ ...
Posted by skattabrain on Wed, 24 Nov 2021 20:55:20 -0800
Locust stress test
(the catalog is on the right →
Official website
file
configuration parameter
Code file address of this article
The preparation section is of personal interest. You can directly see the use section of locust. You can find a public interface test, such as https://www.baidu.com
prepare
database
Start a database
# Lifting container
do ...
Posted by CodeBuddy on Tue, 23 Nov 2021 13:27:38 -0800
curl get request time statistics
When testing http services, you usually use curl to send http requests to the server. Curl will simulate the browser's request and help you establish a tls/ssl connection with the server. Sometimes we want to get the time-consuming in the request process to optimize the client experience. At this time, we usually use the - w parameter of curl. ...
Posted by creekriot on Tue, 16 Nov 2021 22:21:40 -0800