Bug 1443606

Summary: Chargeback report generation keeps whole openshift env in the memory (even after it finishes)
Product: Red Hat CloudForms Management Engine Reporter: Šimon Lukašík <slukasik>
Component: ReportingAssignee: Šimon Lukašík <slukasik>
Status: CLOSED CURRENTRELEASE QA Contact: Gilad Shefer <gshefer>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: epacific, gtanzill, jhardy, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1444050 1444052 (view as bug list) Environment:
Last Closed: 2018-03-06 15:05:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Container Management Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1444050, 1444052    

Description Šimon Lukašík 2017-04-19 14:24:48 UTC
Description of problem:
There are class instance variables on Chargeback classes that may hold whole OpenShift environment. For customers with huge environment this is problematic as the 

Version-Release number of selected component (if applicable):
5.7+

How reproducible:
deterministic, have 100_000 containers and see the reporting worker memory consumption never going back

Steps to Reproduce:
1. Run chargeback report
2. Watch memory consumption
3.

Actual results:
Memory consumption is kept high.

Expected results:
Memory consumption should went down

Additional info:
https://github.com/ManageIQ/manageiq/pull/14807