Bug 2215110 - [RFE] Add a flag to set the heap size (Xms and Xmx) for tomcat. At this moment, there is an option only for puppetserver
Summary: [RFE] Add a flag to set the heap size (Xms and Xmx) for tomcat. At this momen...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installer
Version: 6.14.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-14 18:27 UTC by Waldirio M Pinheiro
Modified: 2023-08-04 19:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-18430 0 None None None 2023-06-15 12:39:36 UTC

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


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