Giter Club home page Giter Club logo

concurrent-test's Introduction

并发测试

问题

  1. BIO ServerSocket实现的服务, 服务端一个线程服务一个Client, 即一个Socket, 无多线程时只能服务一个Client, 其他连接均被阻塞, 配合多线程可以实现异步,但是客户端可能突破jvm能创建的线程上限 即使调优Xss, 使用线程池处理,可以限定最高线程数资源,其他Client连接进入队列等待处理?

    Q1: Client网络请求连接 ---> jvm Thread, TCP 状态变化? 已接入应用层 ESTABLISHED, TCP连接保持? 内核,JVM线程

  2. Nodejs 单线程就能支持高并发

    Q1. 线程模型 与 Java NIO 2.0 对比, 连接

    Q2. 异步,线程 栈的处理? 事件?

测试结果: result-report

异步提高吞吐量

CallableController/DeferredController/WebAsyncTaskController

缓存,让数据更接近要使用它的地方

浏览器缓存--> CDN --> 反向代理缓存 --> 应用缓存(堆内/堆外/磁盘) 线程工作内存 --> JVM主内存

连接池化

数据库连接池/HttpClient连接池/Java线程池

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.