Bug 862839

Summary: Multiple http processes are over-consuming physical RAM
Product: [Retired] Red Hat Network Reporter: Brooks <bsaylor>
Component: RHN/BackendAssignee: Application Maintenance and Support Team <ams-dev-list>
Status: CLOSED EOL QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: AMS BacklogCC: nbronson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-05 15:17:15 UTC 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 Brooks 2012-10-03 17:58:30 UTC
Description of problem:
In 64-bit platforms (e.g., x86_64), Python needs more memory than on 32-bit (e.g., i386) platforms.  In the context of RHN, the memory mod_python consumes in turn affects Apache (httpd), whose child processes may grow too big resulting in termination when they're over the SizeLimit.  This causes no functionality loss, but will have a performance impact.  Hence it's better to not limit httpd processes by size, instead, limit the number of requests. 

Version-Release number of selected component (if applicable):
N/A

How reproducible:
Everytime

Steps to Reproduce:
N/A
  
Actual results:
HTTP requests occupy most of the physical ram, causing a decrease in performance

Expected results:
Performance increase

Additional info:
The description of the problem for a RHN Satellite was taken from, https://access.redhat.com/knowledge/solutions/16546

The resolution for this problem for a RHN Satellite is to (should be relatively the same for RHN): 

Comment out the following lines in /etc/rhn/satellite-httpd/conf/startup.pl:

use Apache2::SizeLimit;
$Apache2::SizeLimit::MAX_PROCESS_SIZE = 400_000;  # 400,000 kbytes, ie, 400 meg
$Apache2::SizeLimit::CHECK_EVERY_N_REQUESTS = 1;

Then, set the following line in  /etc/rhn/satellite-httpd/conf/httpd.conf to:

<IfModule prefork.c>
...
MaxRequestsPerChild  200
...
</ifmodule>

After saving both files, restart the Satellite httpd service:

service satellite-httpd restart



This problem was reported in Remedy ticket INC000000574384

Comment 1 Brooks 2012-10-03 18:02:03 UTC
US26207

Comment 2 Thomas "Shea" DeAntonio 2017-07-05 15:17:15 UTC
As you may already be aware, Red Hat is transitioning from the Red Hat Network (RHN) hosted interface to the Red Hat Subscription Management (RHSM) interface in July 2017. Red Hat has invested in and seen success from RHN for many years, and used that experience to build more robust technologies like RHSM. 
 
If you have not yet migrated your RHN systems to RHSM or you are a Red Hat Satellite customer, please review the information from. https://access.redhat.com/products/red-hat-subscription-management#migration. 
 
Since we are shutting down RHN, no further actions will be taken with this bug or enhancement request.  You can find additional information at RHSM product page (https://access.redhat.com/products/red-hat-subscription-management).  If you have further questions, please contact support (https://access.redhat.com/products/red-hat-subscription-management#support).