issues
search
thubbo
/
jmeter-plugins-for-apache-dubbo
Dubbo Plugin for Apache JMeter, It is a plug-in developed for testing Dubbo in Jmeter.
Apache License 2.0
565
stars
290
forks
source link
Bugfix service reuse for 2.7.4
#159
Closed
Taaang
closed
1 year ago
Taaang
commented
1 year ago
What is the purpose of the change
高并发压测场景下存在性能问题:
每次调用sample时,DubboSample中ReferenceConfig重复创建带来的额外开销;
每次调用sample时,ReferenceConfigCache获取ReferenceConfig,再通过ReferenceConfig的get方法重复获取Service实例带来额外开销。
2.7.x版本Dubbo中,ReferenceConfig的get为synchronize方法,并发场景下存在锁竞争问题,导致发压端发压吞吐无法提升。
Brief changelog
Cache and reuse dubbo service. dubbo service实例通过静态变量缓存,并在每次调用sample时进行复用,避免重复get带来的锁竞争问题
Initialize static dubbo service object when null.
Verifying this change
在单肉鸡20并发场景下,修改前后的吞吐量对比如下:
What is the purpose of the change
高并发压测场景下存在性能问题:
Brief changelog
Verifying this change
在单肉鸡20并发场景下,修改前后的吞吐量对比如下: