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

JMX Improvements Phase V - Metrics Capture Performance [INT-3641] #7603

Closed
spring-operator opened this issue Feb 14, 2015 · 3 comments
Closed
Assignees
Milestone

Comments

@spring-operator
Copy link
Contributor

spring-operator commented Feb 14, 2015

Gary Russell opened INT-3641 and commented

  • Instead of capturing a moving average on the sending thread (causing lock contention on high-volume streams), consider off-loading the calculation to when the statistic is accessed instead (requires keeping n elapsed times in a FIFO collection or similar).
  • For high-volume streams, consider batching the response time over n messages, to avoid a StopWatch.start()/stop() on every send.

This issue is a sub-task of #7589

Referenced from: pull request #1386

@spring-operator
Copy link
Contributor Author

spring-operator commented Feb 18, 2015

Gary Russell commented

This may no longer be necessary; #7589 added the ability to turn off detailed stats at the individual component level.

@spring-operator
Copy link
Contributor Author

Gary Russell commented

Changed this back to a subtask.

Some prototyping (https://github.com/garyrussell/spring-integration/tree/INT-3641) has shown significant benefit.

I have been prototyping with bounded linked lists to retain the channel stats histories and, sending 100M (nulls) to NullChannel (which essentially just collects stats). With the new code, I am getting a send rate of 5.3 million/second. With the existing implementation, it's 2.5 M/sec.
This is on master; the same test on 4.1.x (proxies, old stats) yields 1.2 million/second.

At a minimum, we should make the Exponential* instances used the default metrics implementation pluggable and provide these as alternatives LazyExponential* or similar.

@spring-operator
Copy link
Contributor Author

Gary Russell commented

Merged by Artem Bilan

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

2 participants