[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OpenBSD and Apache
Ok well that seems to be a problem [/etc] root@barrayar# ulimit -a
core file size (blocks) unlimited
data seg size (kbytes) 32768
file size (blocks) unlimited
max locked memory (kbytes) 24012
max memory size (kbytes) 72032
open files 64
pipe size (512 bytes) 1
stack size (kbytes) 2048
cpu time (seconds) unlimited
max user processes 80
virtual memory (kbytes) 34816
[/etc] root@barrayar#
[/etc] root@barrayar# ps -aux | grep nobody | wc -l
79
[/etc] root@barrayar#
ok I know how I can change the setting on a shell by shell basis however
how do I impliment this globally so that these web processes will not be
affected? What bounds does sh check when it is calling a shell or do I
need to actually make nobody exempt for this? Any additional info would be
greatly appreciated.
Justin
********************************************************
* Justin Grudzien grudzien@razer.org *
* Alpha Channel LLC Phone:(312)803-7000 ext.238 *
* Systems Administrator Fax:(312)803-7050 *
********************************************************
On Wed, 3 Dec 1997, Todd C. Miller wrote:
>
> There are per-user limits for file descriptors and number of processes.
> You may be able to increase those by using ulimit in a subshell
> before starting apache. See sh(1) for a description of ulimit.
>
> - todd
>
> In message <Pine.GSO.3.96.971203152749.24340A-100000@shaggy.xsite.net>
> so spake Justin Grudzien (mailer):
>
> > I am currently running OpenBSD 2.1 with apache 1.2 and am getting a weird
> > error.
> >
> > [Wed Dec 3 11:39:16 1997] access to\
> > /usr/ns-home/docs/literary-liaisons.com/cgi-bin/contact.cgi failed for\
> > bryan.alphachannel.com, reason: couldn't spawn child process
> >
> > Now there are over 2000 file descriptors open as reported to me by fstat
> > so I am wondering if I have hit some kind of limit. Now this happens
> > everytime a cgi-script is run. If I reboot the file descriptor count goes
> > down to like 1000 for an hour. Now I have submitted this to the apache
> > people but I wanted to see if anyone here could answer some questions and
> > give me some ideas.
> >
> > This is what I have done. I have recompiled the kernel a dozen time
> > changing the maxusers setting and the various other setting that have to
> > do with maxusers. I do not speciffically see a # of file descriptors
> > limit, but if it has anything to do with maxusers, like FreeBSD then I
> > have changed all I can.
> >
> > ANy info would be appreciated because I would hate to have to swich from
> > OpenBSD to some other lame unix.
> > Justin
> >
> > ********************************************************
> > * Justin Grudzien grudzien@razer.org *
> > * Alpha Channel LLC Phone:(312)803-7000 ext.238 *
> > * Systems Administrator Fax:(312)803-7050 *
> > ********************************************************
> >
> >
>
>