Description
【nacos version】:1.3.0
【Machine configuration】:16U32G
【startup parameter】:startup.sh -p embedded
/opt/jdk1.8.0_271/bin/java -DembeddedStorage=true -server -Xms20g -Xmx20g -Xmn10g -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/nacos/logs/java_heapdump.hprof -XX:-UseLargePages -Dnacos.member.list= -Djava.ext.dirs=/opt/jdk1.8.0_271/jre/lib/ext:/opt/jdk1.8.0_271/lib/ext -Xloggc:/opt/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -Dloader.path=/opt/nacos/plugins/health,/opt/nacos/plugins/cmdb,/opt/nacos/plugins/mysql -Dnacos.home=/opt/nacos -jar /opt/nacos/target/nacos-server.jar --spring.config.location=classpath:/,classpath:/config/,file:./,file:./config/,file:/opt/nacos/conf/ --logging.config=/opt/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288
【pressure measuring tools】:jmter
【url—registration services】:like POST '172.16.0.93:8848/nacos/v1/ns/service?serviceName=TestService${__UUID()}&protectThreshold=0'
【result】:TPS is only about 230
100 concurrent:
Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445
summary + 1 in 00:00:00 = 4.9/s Avg: 29 Min: 29 Max: 29 Err: 0 (0.00%) Active: 92 Started: 92 Finished: 0
summary + 5846 in 00:00:25 = 238.3/s Avg: 416 Min: 25 Max: 438 Err: 0 (0.00%) Active: 100 Started: 100 Finished: 0
summary = 5847 in 00:00:25 = 236.3/s Avg: 416 Min: 25 Max: 438 Err: 0 (0.00%)
summary + 7095 in 00:00:30 = 236.5/s Avg: 422 Min: 405 Max: 451 Err: 0 (0.00%) Active: 100 Started: 100 Finished: 0
summary = 12942 in 00:00:55 = 236.4/s Avg: 419 Min: 25 Max: 451 Err: 0 (0.00%)
summary + 7050 in 00:00:30 = 235.0/s Avg: 425 Min: 409 Max: 484 Err: 0 (0.00%) Active: 100 Started: 100 Finished: 0
summary = 19992 in 00:01:25 = 235.9/s Avg: 421 Min: 25 Max: 484 Err: 0 (0.00%)
500 concurrent:
Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445
summary + 1 in 00:00:00 = 4.9/s Avg: 18 Min: 18 Max: 18 Err: 0 (0.00%) Active: 112 Started: 112 Finished: 0
summary + 5980 in 00:00:26 = 232.1/s Avg: 2045 Min: 16 Max: 2243 Err: 0 (0.00%) Active: 500 Started: 500 Finished: 0
summary = 5981 in 00:00:26 = 230.3/s Avg: 2045 Min: 16 Max: 2243 Err: 0 (0.00%)
summary + 7004 in 00:00:30 = 233.5/s Avg: 2143 Min: 1258 Max: 2261 Err: 0 (0.00%) Active: 500 Started: 500 Finished: 0
summary = 12985 in 00:00:56 = 232.0/s Avg: 2098 Min: 16 Max: 2261 Err: 0 (0.00%)
summary + 7065 in 00:00:30 = 235.5/s Avg: 2122 Min: 1257 Max: 2251 Err: 0 (0.00%) Active: 500 Started: 500 Finished: 0
summary = 20050 in 00:01:26 = 233.2/s Avg: 2106 Min: 16 Max: 2261 Err: 0 (0.00%)
But when use the registration instance interface,the TPS can reach 10000.
Waiting for possible Shutdown/StopTestNow/HeapDump/ThreadDump message on port 4445
summary + 367188 in 00:00:17 = 22065.3/s Avg: 4 Min: 0 Max: 475 Err: 0 (0.00%) Active: 100 Started: 100 Finished: 0
summary + 320148 in 00:00:30 = 10695.1/s Avg: 9 Min: 0 Max: 3047 Err: 4 (0.00%) Active: 100 Started: 100 Finished: 0
summary = 687336 in 00:00:47 = 14757.6/s Avg: 6 Min: 0 Max: 3047 Err: 4 (0.00%)
summary + 162019 in 00:00:30 = 5416.5/s Avg: 18 Min: 0 Max: 2901 Err: 2 (0.00%) Active: 100 Started: 100 Finished: 0
summary = 849355 in 00:01:16 = 11104.6/s Avg: 8 Min: 0 Max: 3047 Err: 6 (0.00%)
【My expectations】:Is there something wrong with my test method? thx.