Bug 759469

Summary: Event viewer loads all events at once
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: EventsAssignee: Ian Springer <ian.springer>
Status: CLOSED NOTABUG QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: 4.2CC: ccrouch, hrupp, ian.springer
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-14 15:01:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 760116    

Description Heiko W. Rupp 2011-12-02 13:08:21 UTC
Do logfile tailing for events (e.g. syslog) on a box creating many logfile events.

Leave it tracking stuff for a while, then go to the events tab.
This contains in my case 27k rows, tendency growing.

In the longer run, this may result in memory issues (either the bowser growing too big or the server running oom while loading the items from the DB).

We should introduce paging with e.g. 1k events per page.

Comment 1 Ian Springer 2011-12-13 20:20:10 UTC
The events list view should be paged with 50 items per page just like most of the other list views in the GUI. When I got to the events list view in hosted mode, I see the following in logs on the hosted mode console:

[INFO] (RPCDataSource.java:131) 2011-12-13 15:16:11,439 [DEBUG] org.rhq.enterprise.gui.coregui.client.inventory.common.event.EventCompositeDatasource using [PageControl[firstRow=0, size=50, sort[timestamp DESC]]] for fetch request.
[INFO] (TrackingRemoteServiceProxy.java:109) 2011-12-13 15:16:11,458 [DEBUG] RPC method invocation: EventGWTService_Proxy.findEventCompositesByCriteria

This most likely means events are being paged correctly.

Heiko, what led you to think the events were not being paged?

Comment 2 Heiko W. Rupp 2011-12-13 20:41:33 UTC
I guess you are right - what led me to this was the missing page buttons like we have/had in Struts/JSF land.

Actually I've opened another BZ where the paging shows the red bar from time to time, so I think this one
can be just closed.