Bug 534324 - (RHQ-1131) fix performance of ResourceError callback from agent to server
fix performance of ResourceError callback from agent to server
Status: CLOSED NEXTRELEASE
Product: RHQ Project
Classification: Other
Component: Inventory (Show other bugs)
1.1.2
All All
high Severity medium (vote)
: ---
: ---
Assigned To: Joseph Marques
http://jira.rhq-project.org/browse/RH...
: Task
Depends On: RHQ-1132 RHQ-1133
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-19 11:59 EST by Joseph Marques
Modified: 2009-11-10 16:22 EST (History)
0 users

See Also:
Fixed In Version: 1.2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Joseph Marques 2008-11-19 11:59:00 EST
this needs to be fixed in trunk and 1_1_2_GA_CP

problem is that InventoryManager.sendResourceErrorToServer(ResourceError resourceError) contains a Resource entity, which (incorrectly) represents the ENTIRE agent-side resource hierarchy...as opposed to just the single resource that had the error.

so, if an agent has a large hierarchy to manage (several MB in serialized form), and if several resources are DOWN (which means they throw InvalidPluginConfigurationExceptions, which in turn force these ResourceErrors to be sent to the server), then the ClientCommandSender will queue them up and might eventually run out of memory...under the assumption that the sheer weight of the ResourceError objects make the agent incapable of keeping up with the sending. 

fix is to use "new Resource(resource_id)" trick to only send a light-weight proxy up to the server, reducing the payload from MB to a few bytes.
Comment 1 Joseph Marques 2008-11-19 12:17:02 EST
patched trunk and 1_1_2_GA_CP.  will re-open and add more sub-tasks if this needs to be patched in other branches as well.
Comment 2 Charles Crouch 2008-11-19 18:55:29 EST
associated case: 234996
Comment 3 Red Hat Bugzilla 2009-11-10 15:24:40 EST
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1131

Note You need to log in before you can comment on or make changes to this bug.