Bug 862839 - Multiple http processes are over-consuming physical RAM
Multiple http processes are over-consuming physical RAM
Product: Red Hat Network
Classification: Red Hat
Component: RHN/Backend (Show other bugs)
AMS Backlog
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Application Maintenance and Support Team
Depends On:
  Show dependency treegraph
Reported: 2012-10-03 13:58 EDT by Brooks
Modified: 2017-07-05 11:17 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-07-05 11:17:15 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Brooks 2012-10-03 13:58:30 EDT
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):

How reproducible:

Steps to Reproduce:
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

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 14:02:03 EDT
Comment 2 Thomas "Shea" DeAntonio 2017-07-05 11:17:15 EDT
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).

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