Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 593253 Details for
Bug 834019
Measurements not collected for agents with a large number of scheduled measurements
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Proposed patch for RHQ 3.0 and 4.4
patch.txt (text/plain), 1.84 KB, created by
Andreas Veithen
on 2012-06-20 15:36:34 UTC
(
hide
)
Description:
Proposed patch for RHQ 3.0 and 4.4
Filename:
MIME Type:
Creator:
Andreas Veithen
Created:
2012-06-20 15:36:34 UTC
Size:
1.84 KB
patch
obsolete
>Index: plugin-container-3.0/src/main/java/org/rhq/core/pc/measurement/MeasurementManager.java >=================================================================== >--- plugin-container-3.0/src/main/java/org/rhq/core/pc/measurement/MeasurementManager.java (revision 141630) >+++ plugin-container-3.0/src/main/java/org/rhq/core/pc/measurement/MeasurementManager.java (revision 141631) >@@ -484,6 +484,13 @@ > this.scheduledRequests.offer(scheduledMeasurement); > } > } >+ >+ public synchronized void reschedule(Set<ScheduledMeasurementInfo> scheduledMeasurementInfos, long interval) { >+ for (ScheduledMeasurementInfo scheduledMeasurement : scheduledMeasurementInfos) { >+ scheduledMeasurement.setNextCollection(scheduledMeasurement.getNextCollection() + interval); >+ this.scheduledRequests.offer(scheduledMeasurement); >+ } >+ } > > /** > * Sends the given measurement report to the server, if this plugin container has server services that it can >Index: plugin-container-3.0/src/main/java/org/rhq/core/pc/measurement/MeasurementCollectorRunner.java >=================================================================== >--- plugin-container-3.0/src/main/java/org/rhq/core/pc/measurement/MeasurementCollectorRunner.java (revision 141630) >+++ plugin-container-3.0/src/main/java/org/rhq/core/pc/measurement/MeasurementCollectorRunner.java (revision 141631) >@@ -71,7 +71,7 @@ > log.debug("Measurement collection is falling behind... Missed requested time by [" > + (System.currentTimeMillis() - requests.iterator().next().getNextCollection()) + "ms]"); > >- this.measurementManager.reschedule(requests); >+ this.measurementManager.reschedule(requests, 30000L); > return report; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 834019
: 593253