httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56901] Fork bomb is available!
Date Mon, 01 Sep 2014 07:44:51 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56901

--- Comment #7 from Ruediger Pluem <rpluem@apache.org> ---
(In reply to Demidov Andrei from comment #5)
> (In reply to Ruediger Pluem from comment #4)
> > How do you start httpd? Via init.d script or from a root shell?
> httpd autostarting via init.d, but I can sometimes restart it from root

If you start from init.d limits.conf settings will not apply.

> shell.
> 
> > How do you login to this shell? Via console or via ssh?
> Via console, example PHP scripts (shell_exec):
> <?php
> shell_exec('ulimit -a');
> ?>

I meant the shell that you use to start httpd, not the one executing the
script.

> 
> > What does ulimit -u / ulimit -u -H tell you in this shell?
> Output previous script:
> max user processes (-u) 256971
> 
> > What does /proc/<pid>/limits tell you for all httpd processes?
> apache    611  0.0  0.0 180488  4524 ?        S    15:02   0:00
> /usr/sbin/httpd
> 
> [root@s1 /]# cat /proc/611/limits
> Limit                     Soft Limit           Hard Limit           Units
> Max cpu time              unlimited            unlimited            seconds
> Max file size             unlimited            unlimited            bytes
> Max data size             unlimited            unlimited            bytes
> Max stack size            10485760             unlimited            bytes
> Max core file size        unlimited            unlimited            bytes
> Max resident set          unlimited            unlimited            bytes
> Max processes             256971               256971               processes
> Max open files            1024                 4096                 files
> Max locked memory         65536                65536                bytes
> Max address space         unlimited            unlimited            bytes
> Max file locks            unlimited            unlimited            locks
> Max pending signals       256971               256971               signals
> Max msgqueue size         819200               819200               bytes
> Max nice priority         0                    0
> Max realtime priority     0                    0
> Max realtime timeout      unlimited            unlimited            us
> 
> Processes not limited...

I assume this one was started via init.d

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message