Comments (4)
Also - in this scenario, udp is never even opened successfully, as firewall/network/load balancers are not properly forwarding udp to the riemann server - therefore, its just accumulating one extra stalled udp socket per createClient call (which is being invoked once per error condition on a failed riemann send).
I think the client should be refactored so that if the protocol to communicate is strictly tcp, it avoids any of the udp stuff (and probably vice-versa, otherwise its unnecessarily opening sockets it does not need to).
from riemann-nodejs-client.
Maybe this is a node / v8 issue as well
var p = require('process')
var net = require('net')
var udp = require('dgram')
var iter = 0
while (true) {
iter++
if (iter % 10000 === 0) {
var mu = p.memoryUsage()
console.log({ rss: mu.rss / 1024 / 1024, iter })
}
// { rss: 34.765625, iter: 4520000 }
//var s = net.Socket()
// { rss: 976.6484375, iter: 1160000 }
var u = udp.createSocket('udp4')
}
udp sockets are never GCed/reclaimed, even if no refs point to them, while tcp are as expected
from riemann-nodejs-client.
from riemann-nodejs-client.
Guessing this can be closed, thanks for the report!
from riemann-nodejs-client.
Related Issues (17)
- Query support needs to be added HOT 6
- data events from TCP are fragile
- add support for node 0.8.x
- Error handling and automatic reconnect HOT 12
- Consider moving to this protobuf library. HOT 12
- npm install delivers old version HOT 2
- Can't install using node 0.12.0 HOT 4
- No longer able to send non-string attribute values HOT 20
- Metric not sent with events HOT 10
- Doubt regarding the rate at which events are pushed to riemann
- Doesn't seem to work in Node 6.x? HOT 2
- Request for new release HOT 9
- client.send doesn't wait for proto.proto to be loaded HOT 10
- 2.0.0 loses metric value on serialization HOT 4
- Don't use `__dirname` when loading proto/proto.proto HOT 4
- Error while sending a simple event. 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 riemann-nodejs-client.