docker-compose up -d
Database connection information is in the .env file.
DB_HOST=127.0.0.1
DB_PORT=3310
DB_USER=sslcom
DB_PASSWORD=123123
DB_NAME=sslcom
DB_MAX_IDLE_CONN=150
DB_MAX_OPEN_CONN=480
DB_MAX_IDLE_LIFE_TIME=10
DB_MAX_CONN_LIFE_TIME=60
SERVER_PORT=7001
go run main.go
Jmeter Settings;
- Number of Threads
- Ramp-up Period
- Loop Count
By changing the values, different tests can be performed according to the maximum connection number.
After running the JMeter load test, a connection to the database can be established and active connections can be checked with the following SQL.
SELECT count(*) FROM information_schema.processlist WHERE DB = 'sslcom'