-
Notifications
You must be signed in to change notification settings - Fork 4
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
Multitread Support #4
Comments
You need to set the environment variable GOMAXPROCS. Go will only use one CPU/Core by default unless you set GOMAXPROCS. See http://golang.org/doc/faq#Why_no_multi_CPU for more details. |
How did GOMAXPROCS go? Can I close this one off? |
Well that certainly shouldn't be the case. Does it slowly ramp up, or does it reach a point where it suddenly blasts your CPUs? Can you dig through the logs and let me know how many people are connected and how many rooms you have? |
Hi, the rump up, is quick just when we enabled and start to send traffic to the tracker increase in seconds to reach high CPU use. The max numbers of users into a room was: But i see many lines equal except by the ID, look like something be wrong. Here 10 min full log I think you will understand better what check into the logs... thanks! |
Sorry. I'm logging everything at the moment. I have toned things down a little in your branch and evaluating leveled logging libraries for go. This one here -- https://github.com/golang/glog -- is looking like the winner at this stage. I also need to write some load tests. Lemme know if the turning down logging improves things much. |
Hi, after this changes, the CPU use is much lower, but I see 1 process using 100% of 1 core... and the other process just less than 5% average... something still happen with this tread... and when this reach 100% can't accept more users, websocket deny new connection by timeout. Logs of this can downloaded here: Let me know if need any new test |
Hi, today I running signalbox ([email protected] branch) with a good amount of concurrent users, but my doubt is about multitread support, why into TOP I see the CPU used al 100% and never grow more than this...
Video here: https://www.dropbox.com/s/307qg3lek73ip4t/htop-signalbox.mp4?dl=0
Thanks for any advice!
The text was updated successfully, but these errors were encountered: