Git Product home page Git Product logo

Comments (10)

mcollina avatar mcollina commented on May 22, 2024

Yes, this is perfectly "normal", and described in #60.
Most of the code is highly synchronous for performance reason, but it might use a process.nextTick in a couple of places (like in the memory persistence).

PR is welcomed.

from aedes.

eladnava avatar eladnava commented on May 22, 2024

@mcollina It's normal that Aedes is unable to handle 10k connections? Am I doing something wrong?

Or is the MemoryPersistence unable to handle 10k connections?

from aedes.

mcollina avatar mcollina commented on May 22, 2024

It's normal that it crashes with RangeError: Maximum call stack size exceeded.
It's not looping, Aedes works heavily on the stack, specially with the in-memory mq and persistence.

node --stack-size=X solves this, where X is big enough.

wrapping the callbacks in process.nextTick in the memory persistence will probably solve your issue.

from aedes.

eladnava avatar eladnava commented on May 22, 2024

I ended up going with mqtt-connection since I don't need any kind of persistence. Seems to work well so far for me.

from aedes.

mcollina avatar mcollina commented on May 22, 2024

Perfect, I'm closing this now.

from aedes.

GavinDmello avatar GavinDmello commented on May 22, 2024

Hey, I'm facing a similar issue after 15k connections.The process becomes unresponsive for quite some time and then starts working again. I'm not sure if gc is the culprit here as it is synchronous and takes quite a bit of time.

from aedes.

mcollina avatar mcollina commented on May 22, 2024

@GavinDmello with the same error? what is the memory usage? Can you produce a script to reproduce artificially?

from aedes.

GavinDmello avatar GavinDmello commented on May 22, 2024

The server doesn't crash in my case and memory is well under control. It's just the CPU which is cranking up to 100 % and stays there with nothing happening(no logs) and comes back to normal after some time.

from aedes.

mcollina avatar mcollina commented on May 22, 2024

@GavinDmello if I can reproduce, I can help fixing it. Tools like http://npm.im/0x, dtrace, perf, etc, are built to solve those kind of issues.

from aedes.

cordovapolymer avatar cordovapolymer commented on May 22, 2024

related to #88

from aedes.

Related Issues (20)

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.