Giter VIP home page Giter VIP logo

Comments (4)

ahungry avatar ahungry commented on June 7, 2024

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.

ahungry avatar ahungry commented on June 7, 2024

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.

ahungry avatar ahungry commented on June 7, 2024

nodejs/node#28143

from riemann-nodejs-client.

perezd avatar perezd commented on June 7, 2024

Guessing this can be closed, thanks for the report!

from riemann-nodejs-client.

Related Issues (17)

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.