Comments (11)
今天上午排查一下
from aliyun-ons.
不确定真的完全修复,不过可以试试新的 1.5.0。
如果还有问题可能要思考下官方 C++ 版的 SDK 了。
from aliyun-ons.
依然内存泄露
from aliyun-ons.
#9 PR 进行时,也可以帮忙一起来看看。
from aliyun-ons.
关于
重启服务经常会报
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::thread_resource_error> >' what(): boost::thread_resource_error: Resource temporarily unavailable terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::thread_resource_error> >'Aborted live@biz26:/data/projects/pusher$ terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::erro
这一条是因为程序退出了然后 ONS 官方 C++ SDK 的线程还没完全退出导致的。
在接下去发的版本里面会强调这个问题,退出之前需要先把启动的 ONS 给 stop()
掉才行,1.5.0
其实也可以这么支持了。
process.on("SIGINT", function() {
consumer.stop();
});
上面只是一个例子。
对于内存泄露和 CPU 过高的问题,我还在复现~~——好像我这边暂时并没有复现~~。
from aliyun-ons.
from aliyun-ons.
process.on("SIGINT", function() {
consumer.stop();
process.exit(0);
});
from aliyun-ons.
实测加入 process.exit(0); 对正常结束进程, 并没有帮助
从20M, 上升到 80M..并且在持续上升
from aliyun-ons.
问一下出现这个问题的确实是 consumer
而不是 producer
?
from aliyun-ons.
是 consumer. 接收消息后未做任何处理后直接调用 ack.done
from aliyun-ons.
从目前阿里云 ONS C++ SDK 开发者的反馈来看,这应该不是内存泄露,并且是一个 feature 而不是 bug,并不是我这边能阻止的,因为我是基于 C++ SDK 封装的。
详情可以参考 #8 (comment)
from aliyun-ons.
Related Issues (20)
- producer 如何指定 mqttSecondTopic,两个consumer 消息会重复怎么搞 HOT 2
- 提示 Segmentation fault HOT 5
- Error: Error relocating /app/node_modules/ons/build/Release/ons.node: backtrace_symbols: symbol not found HOT 6
- 中文文档send()参数顺序错误 HOT 1
- [需求]作者有没有计划基于RocketMQ来实现 HOT 6
- 阿里云顺序发送消息的发送时间异常 HOT 24
- npm install --save ons windows linux 都安装不了 HOT 1
- Working with a local instance of RocketMq HOT 1
- 还更新吗? HOT 1
- 请教下,怎么连TCP协议? HOT 1
- 包安装出错
- 稳定性有保障吗 HOT 2
- 棒
- 请问这个库支持连接rocketmq集群吗 HOT 2
- 安装失败 HOT 1
- To based on rocketmq-nodejs SDK
- options参数设置太少
- the error when pass `undefined` options to producer HOT 1
- One CID can't subscribe two Topic
- 创建生产者错误,这是为什么? HOT 1
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 aliyun-ons.