DuiC 统一配置管理
https://github.com/zhudyos/duic
CPU 信息
processor: 0
vendor_id: AuthenticAMD
cpu family: 16
model: 8
model name: AMD Opteron(tm) Processor 4133
stepping: 1
microcode: 0x10000d9
cpu MHz: 800.000
cache size: 512 KB
physical id: 0
siblings: 4
core id: 0
cpu cores: 4
apicid: 0
initial apicid: 0
fpu: yes
fpu_exception: yes
cpuid level: 5
wp: yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr hw_pstate npt lbrv svm_lock nrip_save pausefilter
bogomips: 5600.33
TLB size: 1024 4K pages
clflush size: 64
cache_alignment: 64
address sizes: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
processor: 1
vendor_id: AuthenticAMD
cpu family: 16
model: 8
model name: AMD Opteron(tm) Processor 4133
stepping: 1
microcode: 0x10000d9
cpu MHz: 800.000
cache size: 512 KB
physical id: 0
siblings: 4
core id: 1
cpu cores: 4
apicid: 1
initial apicid: 1
fpu: yes
fpu_exception: yes
cpuid level: 5
wp: yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr hw_pstate npt lbrv svm_lock nrip_save pausefilter
bogomips: 5600.33
TLB size: 1024 4K pages
clflush size: 64
cache_alignment: 64
address sizes: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
processor: 2
vendor_id: AuthenticAMD
cpu family: 16
model: 8
model name: AMD Opteron(tm) Processor 4133
stepping: 1
microcode: 0x10000d9
cpu MHz: 800.000
cache size: 512 KB
physical id: 0
siblings: 4
core id: 2
cpu cores: 4
apicid: 2
initial apicid: 2
fpu: yes
fpu_exception: yes
cpuid level: 5
wp: yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr hw_pstate npt lbrv svm_lock nrip_save pausefilter
bogomips: 5600.33
TLB size: 1024 4K pages
clflush size: 64
cache_alignment: 64
address sizes: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
processor: 3
vendor_id: AuthenticAMD
cpu family: 16
model: 8
model name: AMD Opteron(tm) Processor 4133
stepping: 1
microcode: 0x10000d9
cpu MHz: 800.000
cache size: 512 KB
physical id: 0
siblings: 4
core id: 3
cpu cores: 4
apicid: 3
initial apicid: 3
fpu: yes
fpu_exception: yes
cpuid level: 5
wp: yes
flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr hw_pstate npt lbrv svm_lock nrip_save pausefilter
bogomips: 5600.33
TLB size: 1024 4K pages
clflush size: 64
cache_alignment: 64
address sizes: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
操作系统
CentOS 7.2 x86_64
JDK 版本
1.8.0_131
JVM 参数配置
-server -XX:+UseG1GC -Xms1g -Xmx1g -XX:MetaspaceSize=128m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=logs/ -XX:+PrintGCDateStamps -verbose:gc -XX:+PrintGCDetails -Xloggc:logs/gc.log
测试工具
https://github.com/tsenart/ve...
测试报告
2000 并发/s
连续 Full GC 测试失败,GC 报告
1800 并发/s
GC 正常,没有出现 Full GC,GC 报告
HTTP 响应报告:
Requests [total, rate] 108000, 1785.25
Duration [total, attack, wait] 1m32.875189975s, 1m0.495831916s, 32.379358059s
Latencies [mean, 50, 95, 99, max] 287.164093ms, 249.177263ms, 778.618329ms, 1.729048006s, 39.374912915s
Bytes In [total, mean] 676296000, 6262.00
Bytes Out [total, mean] 0, 0.00
Success [ratio] 100.00%
Status Codes [code:count] 200:108000
Error Set:
因最大响应延迟高达 1.729048006s
导致平均响应延迟也增大 287.164093ms
。
1600 并发/s
GC 正常,未出现 Full GC。
HTTP 响应报告:
Requests [total, rate] 96000, 1584.58
Duration [total, attack, wait] 1m0.587331647s, 1m0.583808213s, 3.523434ms
Latencies [mean, 50, 95, 99, max] 4.412991ms, 3.442793ms, 10.519968ms, 16.577343ms, 52.471998ms
Bytes In [total, mean] 601152000, 6262.00
Bytes Out [total, mean] 0, 0.00
Success [ratio] 100.00%
Status Codes [code:count] 200:96000
Error Set:
在每秒 1600 并发时表现的非常好,最大响应延迟 52.471998ms
,平均响应延迟 4.412991ms
。
总结
在该机器上 DuiC 性能能达到第秒 1600 并发并且快速响应,我对该结果非常的满意。
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。