Resource on agent holds full ancestry information, but ancestry is never used inside the agent. We should clean that out. Example from a local agent: 280 times: 0_:_10791_:_rhq.ear/rhq-core-domain-ejb3.jar#rhqpu_::_0_:_10573_:_jpa_::_0_:_10527_:_rhq-core-domain-ejb3.jar_::_0_:_10477_:_rhq.ear_::_0_:_10461_:_EAP (127.0.0.1:6990) RHQ Server_::_0_:_10001_:_snert using 116kB of memory Even better: we should not even forward that ancestry from server to agent to also save on bandwidth. Other items, the agent (currently) does not need are the location, description (?), alertConditions, modifiedBy (?) If they are not needed, they also should be nulled out.
This is now done in org.rhq.core.pc.inventory.InventoryManager#compactResource and other places. The ancestry from above is removed by calling org.rhq.core.domain.resource.Resource#addChildResourceWithoutAncestry that does not populate the ancestry when building the resource hierarchy inside the agent. master 031058c
Bulk closing of 4.10 issues. If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10.