Bug 2215110

Summary: [RFE] Add a flag to set the heap size (Xms and Xmx) for tomcat. At this moment, there is an option only for puppetserver
Product: Red Hat Satellite Reporter: Waldirio M Pinheiro <wpinheir>
Component: InstallerAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.14.0CC: egolov, ehelms
Target Milestone: UnspecifiedKeywords: FutureFeature
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Waldirio M Pinheiro 2023-06-14 18:27:30 UTC
Description of problem:
Add a flag to set the heap size (Xms and Xmx) for tomcat. At this moment, there is an option only for puppetserver

Version-Release number of selected component (if applicable):
all of them

How reproducible:
100%

Steps to Reproduce:
1. install satellite, the default Xmx and Xms is 2GiB
2. If you need to change the heap size for tomcat, you need to add it via custom-hiera
3.

Actual results:
Only via custom hiera

Expected results:
Flag via satellite-installer that will set the heap size for tomcat

Additional info:

Comment 2 Eric Helms 2023-07-18 18:12:11 UTC
Can you expand on why you need this? What issues are being run into, and/or what scenarios lead to needing to modify this value?

Comment 3 Waldirio M Pinheiro 2023-08-04 19:43:37 UTC
Hello,

Sure, eventually, we have customers with a huge number of content hosts that will cause a huge # of calls to candlepin, when doing operations related to subscriptions. That said, the standard of 2GiB it's not enough and as consequence, CP just died with "out of memory".

In order to fix that, we bump the "heap size" used by the java vm. Below, we can see an entry from custom-hiera

---
...
candlepin::java_opts: "-Xms1024m -Xmx8192m"
...
---

This will change from 2G to 8G, avoiding the issue mentioned above.

At this moment, there is no flag to change this configuration via satellite-installer, only via custom-hiera as presented above.

Thank you!

Please, let me know if you have additional questions or concerns.
Waldirio