Comments (4)
#413 发现byte[] 长度为65560 一直占用增长未被释放,个人认为是netty 的ByteBuf未被释放,但是TransportMessageChannelHandlerAdapter里已经加了 ReferenceCountUtil.Release(buffer); 都手动释放了。
from surging.
大佬,将代码
await Task.Run(() =>
{
MessageListener.OnReceived(sender, message);
});
调整为
await MessageListener.OnReceived(sender, message);
好像可以解决问题,不知是否合适?
from surging.
首先netty 是通过EventLoop 串行执行,必然要通过Task.Run异步执行,要不然会阻塞,刚刚看了代码在ChannelRead 已经加了Task.Run,你可以试试按照以上方式修复下。
from surging.
字面意思应该不是这个问题,简单描述我的理解,就是使用了异步(其他线程执行),有些资源跨线程了,导致没有被合理的释放!
没看代码,有代码的不凡测测!
from surging.
Related Issues (20)
- hh
- 单服务热加载问题 HOT 3
- 用jmeter对sayhello做压力测试时,返回结果不一致,entity为1 HOT 1
- k8s
- k8s中单服务重发之后 提示如下 HOT 3
- The community version is the last version. HOT 3
- new feature Protokollwandler component will be updated in SurgingVista version
- 统计一下有多少人使用社区版 HOT 1
- Hot deployment modules and components
- 请问Surging 中使用的 WebSocketCore 的源码是这个地址吗 HOT 1
- server进程占用的内存一直增长,直到进程崩溃,是什么原因? HOT 11
- NLog HOT 6
- surgingSettings.json配置中的Consul 连接ConnectionString配置 HOT 1
- Surging.Core.KestrelHttpServer HOT 1
- 请求参数
- 开源**NCC介绍 HOT 4
- TCP network components that support configuring properties
- 服务间通讯导致内存持续增加 HOT 5
- skywalking报错 HOT 2
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 surging.