Git Product home page Git Product logo

Comments (5)

tianpeijun avatar tianpeijun commented on August 14, 2024

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

from tx-lcn.

xlorne avatar xlorne commented on August 14, 2024

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

from tx-lcn.

tianpeijun avatar tianpeijun commented on August 14, 2024

ok,谢谢!

from tx-lcn.

xlorne avatar xlorne commented on August 14, 2024

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

本次测试是基于最新的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

from tx-lcn.

baixu19900206 avatar baixu19900206 commented on August 14, 2024

我在本地启动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"}

from tx-lcn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.