Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.0.3版本压测报告 #25

Closed
xlorne opened this issue Dec 23, 2017 · 5 comments
Closed

v4.0.3版本压测报告 #25

xlorne opened this issue Dec 23, 2017 · 5 comments

Comments

@xlorne
Copy link
Contributor

xlorne commented Dec 23, 2017

No description provided.

@xlorne xlorne added this to the v4.0.3版本 milestone Dec 23, 2017
@tianpeijun
Copy link

生产环境是否可以使用了?

@xlorne
Copy link
Contributor Author

xlorne commented Dec 25, 2017

可以使用的,但是建议多了解一下原理,在环境下遇到问题时也可以及时我们沟通。

@tianpeijun
Copy link

ok,谢谢!

@xlorne
Copy link
Contributor Author

xlorne commented Jan 1, 2018

本次是在没有做性能优化之前的测试报告

本次测试是基于最新的master源码打包的测试
我现在是用的springcloud-lcn-demo下的mybatis demo测试的。
环境介绍:

电脑硬件:
4核I7处理器
16G内存
256固态

mysql:
5.6

redis:
4.0.2

目前所有的软件服务都是在本机上的。

注意:我发现在开启断路器下明显下降,因此先关闭了断路器功能。

#feign.hystrix.enabled=true

## 关于springcloud-hystrix机制 http://www.jianshu.com/p/b8d21248c9b1
#hystrix.command.default.execution.isolation.strategy= SEMAPHORE
#hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=5000


下面是开启LCN在1000线程循环10次的结果:
lcn_1000x10

数据是正常的。

data_1000x10

下面是关闭LCN以后的测试结果:

no_1000x10

关于如何关闭的LCN:

    @Around("execution(* com.example.demo.service.impl.*Impl.*(..))")
    public Object around(ProceedingJoinPoint point)throws Throwable{
        return point.proceed();//txManagerInterceptor.around(point);
    }

只是关闭了切面拦截。

数据少了些:(不过也属于正常)

no_1000x10_2

测试代码:
https://github.com/codingapi/springcloud-lcn-demo/tree/test_01

@baixu19900206
Copy link

我在本地启动tx-manager、springcloud-mybatis-demo1、springcloud-mybatis-demo2后,访问http://localhost:8081/demo/save后,页面返回下面这个错误:请问有谁遇到过或怎么解决。

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Mon Sep 03 18:06:42 CST 2018
There was an unexpected error (type=Internal Server Error, status=500).
status 500 reading Demo2Client#save(); content: {"timestamp":1535969201947,"status":500,"error":"Internal Server Error","exception":"java.lang.reflect.UndeclaredThrowableException","message":"No message available","path":"/demo/save"}

@xlorne xlorne closed this as completed Jan 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants