Comments (3)
去掉disruptor库,使用默认eventloop解决了
from java-kcp.
其实这个问题是,你使用的 disruptor 等待策略采用了 YieldingWaitStrategy 这种,并不是默认的 BlockingWaitStrategy。
YieldingWaitStrategy 仅适合在消费者线程远小于 cpu的物理核心数时使用,它会采用 自旋 + yield 的方式,肯定cpu 占用高了。
from java-kcp.
其实这个问题是,你使用的 disruptor 等待策略采用了 YieldingWaitStrategy 这种,并不是默认的 BlockingWaitStrategy。 YieldingWaitStrategy 仅适合在消费者线程远小于 cpu的物理核心数时使用,它会采用 自旋 + yield 的方式,肯定cpu 占用高了。
默认使用的就是 BlockingWaitStrategy
from java-kcp.
Related Issues (20)
- 实现广播 HOT 6
- Fec支持一下linux? HOT 1
- 请问支持在不自定义源码的情况下,绑定地址和处理自定义的握手包吗? HOT 3
- 新加的conv支持 在user创建时 存在bug HOT 5
- 可以支持udp和tcp切换吗?如类似:https://github.com/hjcenry/ktucp-netty HOT 1
- 关于Ukcp中input 方法里面采用fecDecode时两次input(data, true,current)的问题 HOT 2
- 有没有针对Wireshark解析KCP包的lua插件? HOT 1
- 不用像TCP一样用分隔符或者长度进行协议解包吗?
- 吞吐测试有和tcp对比过吗? HOT 1
- 请问怎么去掉包头 前几个字节是乱码 HOT 1
- 是不是可以发个新版本,把 netty 升级一下:) HOT 2
- 提个需求,可否将 User getLocalAddress() 改为 public ? HOT 2
- 反馈个问题(不知道算不算bug),一个客户端程序,如果建立两个KcpClient实例,去连接服务端。第2实例在服务端不会触发 onConnected事件 HOT 6
- 1.6.1 什么时候发啊?另外 Conv 是什么意思,作什么用的? HOT 6
- 移植到android上,客服端发送消息服务端接收不到 HOT 1
- 是否支持UDP组播? HOT 1
- KCP Disconnected And Reconnected Frequently HOT 11
- 判断一条消息是否接收完毕除了seg.frg == 0还有哪些情况呢 HOT 1
- Has this framework undergone performance comparison testing with TCP? HOT 1
- 使用conv模式情况下,客户端连上服务器后,关闭客户端再登录,大概率会导致通讯失败。使用KcpReconnectExampleClient示例很容易出现。 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-kcp.