-
Notifications
You must be signed in to change notification settings - Fork 751
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
Failed to start monitoring system clock changes #270
Comments
At the very least, it seems like we need to provide a mechanism that exposes the |
The ability to set |
Thank you. |
Would love to see the underlying issue fixed, it is a big problem that using Observable.Timer under heavy load causes the whole service to crash because of the InvalidOperationException being thrown in PeriodicTimerSystemClockMonitor.NewTimer after 100 retries. |
@baltie do you think the changes mentioned in this blog post are sufficient? The only reservation I have is this comment from @ButchersBoy in the above post:
We are currently talking about the scope for v4, and changing the default behaviour of the internals (especially around timing) might be possible. |
We are using Rx extensively throughout our system, also in some Windows services that doesn't include a message pump, so no, it wouldn't be sufficient. We've made our own, custom, PeriodicTimerSystemClockMonitor that basically removes the retry mechanism and just informs what the difference were no matter the size when a new timer is launched. It works for our purposes and it's better than having the system die on us because of heavy load. |
Moving to vNext so we can get 4.0 out asap. |
The
|
Occasionally see exception message "Failed to start monitoring system clock changes" and application termination on desktop PCs making heavy utilization of RX.
I really don't want to write this up again; full explanation is here:
https://dragablz.net/2015/06/09/dealing-with-rx-exception-failed-to-start-monitoring-system-clock-changes/
In summary
PeriodicTimerSystemClockMonitor
may occasionally "time out" and throw the error.It seems with RX v3 the work around described (and successfully running in our production instances) will no longer be possible.
So can the code in
PeriodicTimerSystemClockMonitor
be re-assessed?The text was updated successfully, but these errors were encountered: