Created attachment 319553 [details] Apache error_log Description of problem: When I run rhnpush to add packages to channels the process takes a _long_ time. Looking at the logs it appears that apache processes are being killed as they grow larger than the 400,000kb limit in /etc/rhn/satellite-httpd/conf/startup.pl How reproducible: Execute the following rhnpush (on pretty much any rpm file) echo foo.rpm | rhnpush --server http://localhsot/APP --channel=fedora-9-ppc64 -u space -p space -v --tolerant Actual results: An error appears in the error_log file. Expected results: I'd expect no errors. This may also be the cause of the slowdown I've been experiencing. Additional info: Running on a CentOS 5.2 KVM VM with 1Gb RAM.
Created attachment 319556 [details] Apache access_log
Hi, just wanted to let you know that I was having exactly the same problem: rhnpush was causing httpd processes to respawn a lot. [Fri Dec 26 10:01:06 2008] (2022) Apache2::SizeLimit httpd process too big, exiting at SIZE=526616 KB SHARE=13580 KB REQUESTS=2 LIFETIME=0 seconds [Fri Dec 26 10:01:08 2008] (2034) Apache2::SizeLimit httpd process too big, exiting at SIZE=526708 KB SHARE=13548 KB REQUESTS=2 LIFETIME=0 seconds [Fri Dec 26 10:01:13 2008] (2044) Apache2::SizeLimit httpd process too big, exiting at SIZE=526708 KB SHARE=13548 KB REQUESTS=2 LIFETIME=0 seconds ... After editing: /etc/rhn/satellite-httpd/conf/startup.pl and changing the MAX_PROCESS_SIZE to 800_000 instead of 400_000, everything works much quicker and without errors. This is in a git-build version, checked out on 26/12/2008. Regards, Frank
fixed in commit 9ee8820ac7e71029f9d78e77234d3b8b6f0b757a removed usage of Apache::SizeLimit and switched to using MaxRequestsPerChild instead. Currently set to 200.
Spacewalk 0.5 released.
Problem discovered in Satellite 5.2 as well (x86_64 RHEL5.3) [Fri Sep 4 14:43:59 2009] (11457) Apache2::SizeLimit httpd process too big, exiting at SIZE=496704/400000 KB SHARE=12644/0 KB UNSHARED=484060/0 KB REQUESTS=2 LIFETIME=0 seconds [Fri Sep 4 14:44:09 2009] (11322) Apache2::SizeLimit httpd process too big, exiting at SIZE=542212/400000 KB SHARE=14500/0 KB UNSHARED=527712/0 KB REQUESTS=3 LIFETIME=31 seconds [Fri Sep 4 14:44:18 2009] (11522) Apache2::SizeLimit httpd process too big, exiting at SIZE=469196/400000 KB SHARE=12044/0 KB UNSHARED=457152/0 KB REQUESTS=2 LIFETIME=0 seconds [Fri Sep 4 14:44:20 2009] (11418) Apache2::SizeLimit httpd process too big, exiting at SIZE=548132/400000 KB SHARE=14468/0 KB UNSHARED=533664/0 KB REQUESTS=3 LIFETIME=21 seconds [Fri Sep 4 14:44:29 2009] (11630) Apache2::SizeLimit httpd process too big, exiting at SIZE=469196/400000 KB SHARE=12044/0 KB UNSHARED=457152/0 KB REQUESTS=2 LIFETIME=0 seconds [Fri Sep 4 14:44:30 2009] (11635) Apache2::SizeLimit httpd process too big, exiting at SIZE=538992/400000 KB SHARE=13996/0 KB UNSHARED=524996/0 KB REQUESTS=2 LIFETIME=0 seconds [Fri Sep 4 14:44:40 2009] (11636) Apache2::SizeLimit httpd process too big, exiting at SIZE=538992/400000 KB SHARE=13992/0 KB UNSHARED=525000/0 KB REQUESTS=2 LIFETIME=0 seconds [Fri Sep 4 14:44:44 2009] (11682) Apache2::SizeLimit httpd process too big, exiting at SIZE=469196/400000 KB SHARE=12044/0 KB UNSHARED=457152/0 KB REQUESTS=2 LIFETIME=0 seconds [Fri Sep 4 14:44:50 2009] (11695) Apache2::SizeLimit httpd process too big, exiting at SIZE=539252/400000 KB SHARE=13988/0 KB UNSHARED=525264/0 KB REQUESTS=2 LIFETIME=0 seconds
Spacewalk 0.5 has been released for long time ago.