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

use this at high traffic causes server hang? #10

Open
raitucarp opened this issue Mar 7, 2015 · 4 comments
Open

use this at high traffic causes server hang? #10

raitucarp opened this issue Mar 7, 2015 · 4 comments

Comments

@raitucarp
Copy link

I don't know what happens, but could you run test with scenario high traffic?

Because my server hang and can't restart with PM2. If that is happens with node 0.12.0, I switch to 0.10.34 or 0.10.36, it is still causes hang.. Thanks

ps: the complete indication of my server hang is the first post, FYI:
Unitech/pm2#1072

@mattcg
Copy link
Owner

mattcg commented Mar 10, 2015

Thanks for reporting. Could you give a little bit of context please? How many connections per second are you making? Are they all to different hosts?

@raitucarp
Copy link
Author

the complete description is in the first post that I reference above (PM2 issue)

I use default maxsockets setting of node 0.12.0, which is Infinity. I don't know, this is weird, some times causes server to hang, and can't be kill by PM2, except do it manually kill -9

I don't count the connections per second, because my website is crawled by search engine, and difficult to count how many hits, crawler access my website.

@mattcg
Copy link
Owner

mattcg commented Mar 11, 2015

Have you tried setting maxsockets to something low? Does it still hang when you do that?

You could set it to 1000, test, if it still hangs set it to 500, test again, and so on until it stops hanging.

@raitucarp
Copy link
Author

yes, I tested it, and still down sometimes, also return socket hangsup if I limit maxsockets

Maybe I should tune what the right value of maxsockets, and I will update this issue, thanks

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