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

Monitor the waiting time for a network request to execute #18

Open
raskasa opened this issue Jul 22, 2015 · 0 comments
Open

Monitor the waiting time for a network request to execute #18

raskasa opened this issue Jul 22, 2015 · 0 comments
Milestone

Comments

@raskasa
Copy link
Owner

raskasa commented Jul 22, 2015

When troubleshooting a single network request it's worthwhile to see how much time passed between submitting the request and actual execution. This duration should preferably be close to 0 (when there was some idle thread in a pool), however it will grow when task has to be "queued". Moreover, if the pool doesn't have a fixed number of threads, running a new task might require spawning thread (also consuming short amount of time).

NOTE: Monitoring how long a task takes to execute is different from how long it took between when the task was submitted and when it was executed.

SEE: http://www.nurkiewicz.com/2014/11/executorservice-10-tips-and-tricks.html

@raskasa raskasa changed the title Monitor the waiting time in the queue Monitor the waiting time for a network request to execute Jul 22, 2015
@raskasa raskasa added this to the 0.2.0 milestone Jul 22, 2015
@raskasa raskasa modified the milestones: Icebox, 0.2.0 Dec 16, 2015
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