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

How to get current busy worker threads which are serving clients ? #352

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. I am running with 50 threads when I am having many request at the same time 
server is taking a long time to response. 

What is the expected output? What do you see instead?

Is there a way I can get current working thread thread count which are busy in 
serving other user so I can increase number of thread according to the 
requirement. 


Original issue reported on code.google.com by [email protected] on 8 May 2012 at 7:36

@GoogleCodeExporter
Copy link
Author

How many cores does the machine actually have?
If it is less than 50 it doesn't make sense from the performance point of view.
Typically the the performance gets worse when more (~) threads than cores are 
running.

Original comment by [email protected] on 8 May 2012 at 7:53

@GoogleCodeExporter
Copy link
Author

My machine have only 2 cores. But all threads are doing only io operation.
Must of the time they are busy in IO.
Main question way is there way or variable which I can use to get current
working thread count ?

Original comment by [email protected] on 8 May 2012 at 8:10

@GoogleCodeExporter
Copy link
Author

Adding one more point I am running server as embedded server inside my 
function. I want to log when my all working threads are busy. 

Original comment by [email protected] on 8 May 2012 at 9:08

@GoogleCodeExporter
Copy link
Author

Probably it helps, at least for diagnostic, to define DEBUG - this way you have 
additional information, also about the worker threads.

Original comment by [email protected] on 8 May 2012 at 6:17

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

No branches or pull requests

1 participant