Bug 55034 - Apache 2.4.4 won't open more that 32k VH file handlers
Summary: Apache 2.4.4 won't open more that 32k VH file handlers
Status: NEEDINFO
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: All (show other bugs)
Version: 2.4.4
Hardware: PC FreeBSD
: P2 major (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-31 10:00 UTC by admin
Modified: 2013-05-31 11:44 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description admin 2013-05-31 10:00:29 UTC
If you had few thousands Virtualhosts each few log files etc. - apache won't start if the amount of file handlers exceed around 32k.

We are not hitting the system limits.

# limits -U apache
Resource limits for class default:
  cputime          infinity secs
  filesize         infinity kB
  datasize         infinity kB
  stacksize        infinity kB
  coredumpsize     infinity kB
  memoryuse        infinity kB
  memorylocked     infinity kB
  maxprocesses     infinity
  openfiles        infinity
  sbsize           infinity bytes
  vmemoryuse       infinity kB
 #


# limit
cputime      unlimited
filesize     unlimited
datasize     33554432 kbytes
stacksize    524288 kbytes
coredumpsize unlimited
memoryuse    unlimited
vmemoryuse   unlimited
descriptors  131072
memorylocked unlimited
maxproc      65536
sbsize       unlimited
Comment 1 Eric Covener 2013-05-31 10:21:43 UTC
truss of startup failure?
Comment 2 admin 2013-05-31 10:28:46 UTC
> truss of startup failure?

What do you mean exactly?
Comment 3 Eric Covener 2013-05-31 11:44:06 UTC
You'll need to provide some kind of trace to show your OS is not simply returning an error after 32k file descriptors are used.  Some type of truss/strace/ should be able to show the failing call (you might also have an error in your terminal or base configs error log)