Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection_closed_abruptly #14

Open
mkozjak opened this issue Mar 12, 2015 · 7 comments
Open

connection_closed_abruptly #14

mkozjak opened this issue Mar 12, 2015 · 7 comments

Comments

@mkozjak
Copy link
Contributor

mkozjak commented Mar 12, 2015

Even with the latest amqp library, I still get this.

@PuKoren
Copy link

PuKoren commented Nov 6, 2015

+1, lots of connection close errors

@mkozjak
Copy link
Contributor Author

mkozjak commented Nov 10, 2015

I do not recommend this library for production uses. Had lots of problems with it. Memory leakage is huge (because of its dependency, 'amqp').

After some time profiling the memory, I ended up rewriting the whole project without rabbitmq.

@PuKoren
Copy link

PuKoren commented Nov 10, 2015

We made our own RPC implementation in the meantime:
https://github.com/dial-once/node-rabbitrpc

@mkozjak
Copy link
Contributor Author

mkozjak commented Nov 10, 2015

Lookin' good! :)
Have you used this in production? amqplib should perform nice. :)

@PuKoren
Copy link

PuKoren commented Nov 10, 2015

It is in production ATM yes, but not tested on modules with more than 100 msg/sec yet

@mkozjak
Copy link
Contributor Author

mkozjak commented Nov 10, 2015

amqp made problems even with a few msgs per second. I had 10mb per minute memory growth.
Do you see any abnormal memory consumption with your wrapper so far?

@PuKoren
Copy link

PuKoren commented Nov 10, 2015

I wrote a benchmark on the module since you asked for it, if you are interested you can launch it with node test/benchmark.js

Memory climbs from 37MB to 91MB and then stops to grow. The process took almost 800 sec and you can see the lasts ticks on my machine:

Running for: 780.071 secs. Current tick: 77
Current bitrate (this tick): 93.5 /sec.
Memory usage: 91983.872 kb
Running for: 790.072 secs. Current tick: 78
Current bitrate (this tick): 95.1 /sec.
Memory usage: 91983.872 kb
Running for: 800.073 secs. Current tick: 79
Current bitrate (this tick): 97 /sec.
Memory usage: 91983.872 kb
Running for: 810.074 secs. Current tick: 80
Current bitrate (this tick): 95.4 /sec.
Memory usage: 91983.872 kb
Running for: 820.075 secs. Current tick: 81
Current bitrate (this tick): 94.9 /sec.
Memory usage: 91983.872 kb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants