PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Solaris 9 / Apache 1.3.36 / Too Many Open Files
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Solaris 9 / Apache 1.3.36 / Too Many Open Files

Réponse
 
LinkBack Outils de la discussion
Vieux 22/06/2006, 01h11   #1
Charles Plater
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Solaris 9 / Apache 1.3.36 / Too Many Open Files

We have a webserver running Apache 1.3.36 on Solaris 9. If I try to add
more than 81 VHOSTS all of the vhosts start throwing errors:

[Wed Jun 21 12:29:31 2006] [crit] [client <REMOVED>] (24)Too many open
files: /path/to/www/content/.htaccess pcfg_openfile: unable to check
htaccess file, ensure it is readable

I've set rlim_rd_cur to 8192 in /etc/system (and rebooted), and
re-compiled apache with EXTRA_CFLAGS=-DHIGH_SLACK_LINE=256 all to no
avail. The data directories, configuration files, and log files are all
stored on an NFS filesystem (although, I'm pretty sure NFS isn't the
culprit here.)

Any our suggestions would be greatly appreciated.

  Réponse avec citation
Vieux 22/06/2006, 09h04   #2
Phil Cordier
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Solaris 9 / Apache 1.3.36 / Too Many Open Files

Looks like you've raised the file descriptor soft limit, but not the
hard limit - try setting:

rlim_fd_max = 8192
rlim_fd_cur = 1024

in /etc/system.


Charles Plater wrote:
> We have a webserver running Apache 1.3.36 on Solaris 9. If I try to add
> more than 81 VHOSTS all of the vhosts start throwing errors:
>
> [Wed Jun 21 12:29:31 2006] [crit] [client <REMOVED>] (24)Too many open
> files: /path/to/www/content/.htaccess pcfg_openfile: unable to check
> htaccess file, ensure it is readable
>
> I've set rlim_rd_cur to 8192 in /etc/system (and rebooted), and
> re-compiled apache with EXTRA_CFLAGS=-DHIGH_SLACK_LINE=256 all to no
> avail. The data directories, configuration files, and log files are all
> stored on an NFS filesystem (although, I'm pretty sure NFS isn't the
> culprit here.)
>
> Any our suggestions would be greatly appreciated.


  Réponse avec citation
Vieux 22/06/2006, 13h10   #3
Charles Plater
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Solaris 9 / Apache 1.3.36 / Too Many Open Files


  Réponse avec citation
Vieux 22/06/2006, 19h32   #4
Thomas Dehn
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Solaris 9 / Apache 1.3.36 / Too Many Open Files


"Charles Plater" <cplater+usenet AT gmail DOT com> wrote:
> We have a webserver running Apache 1.3.36 on Solaris 9. If I try to add
> more than 81 VHOSTS all of the vhosts start throwing errors:
>
> [Wed Jun 21 12:29:31 2006] [crit] [client <REMOVED>] (24)Too many open
> files: /path/to/www/content/.htaccess pcfg_openfile: unable to check
> htaccess file, ensure it is readable
>
> I've set rlim_rd_cur to 8192 in /etc/system (and rebooted), and
> re-compiled apache with EXTRA_CFLAGS=-DHIGH_SLACK_LINE=256 all to no
> avail. The data directories, configuration files, and log files are all
> stored on an NFS filesystem (although, I'm pretty sure NFS isn't the
> culprit here.)


How many open file descriptors does your apache have
in your configuration when the problem occurs?
You might have to use a 64bit Apache.


Thomas
  Réponse avec citation
Vieux 22/06/2006, 20h15   #5
allab@sympatico.ca
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Solaris 9 / Apache 1.3.36 / Too Many Open Files

Hello,

It looks like we hit the same file descriptor ptoblem.I tried to
increase the number of allowed open fd though ulimit, but I got the
following error message:
"ksh: ulimit: exceeds allowable limit"

I checked /etc/system file and did not find
rlim_fd_max
rlim_fd_cur

Please advise on how I can increase # of allowed open file descriptors.

Is there a limit of number of threads (LWP) per process?


Thanks,
Alona

Phil Cordier wrote:
> Looks like you've raised the file descriptor soft limit, but not the
> hard limit - try setting:
>
> rlim_fd_max = 8192
> rlim_fd_cur = 1024
>
> in /etc/system.
>
>
> Charles Plater wrote:
> > We have a webserver running Apache 1.3.36 on Solaris 9. If I try to add
> > more than 81 VHOSTS all of the vhosts start throwing errors:
> >
> > [Wed Jun 21 12:29:31 2006] [crit] [client <REMOVED>] (24)Too many open
> > files: /path/to/www/content/.htaccess pcfg_openfile: unable to check
> > htaccess file, ensure it is readable
> >
> > I've set rlim_rd_cur to 8192 in /etc/system (and rebooted), and
> > re-compiled apache with EXTRA_CFLAGS=-DHIGH_SLACK_LINE=256 all to no
> > avail. The data directories, configuration files, and log files are all
> > stored on an NFS filesystem (although, I'm pretty sure NFS isn't the
> > culprit here.)
> >
> > Any our suggestions would be greatly appreciated.


  Réponse avec citation
Vieux 22/06/2006, 20h22   #6
Charles Plater
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Solaris 9 / Apache 1.3.36 / Too Many Open Files

On 2006-06-22 14:32:24 -0400, "Thomas Dehn" <thomas-usenet@arcor.de> said:

>
> "Charles Plater" <cplater+usenet AT gmail DOT com> wrote:
>> We have a webserver running Apache 1.3.36 on Solaris 9. If I try to add
>> more than 81 VHOSTS all of the vhosts start throwing errors:
>>
>> [Wed Jun 21 12:29:31 2006] [crit] [client <REMOVED>] (24)Too many open
>> files: /path/to/www/content/.htaccess pcfg_openfile: unable to check
>> htaccess file, ensure it is readable
>>
>> I've set rlim_fd_cur to 8192 in /etc/system (and rebooted), and
>> re-compiled apache with EXTRA_CFLAGS=-DHIGH_SLACK_LINE=256 all to no
>> avail. The data directories, configuration files, and log files are all
>> stored on an NFS filesystem (although, I'm pretty sure NFS isn't the
>> culprit here.)

>
> How many open file descriptors does your apache have
> in your configuration when the problem occurs? You might have to use a
> 64bit Apache.


According to LSOF, apache has 297 open files when running w/ no
problems, and 300 open files when it is having problems.

For the record, I've set the hard file descriptor limit (rlim_fd_max),
and that didn't make a difference.

  Réponse avec citation
Vieux 22/06/2006, 20h22   #7
Charles Plater
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Solaris 9 / Apache 1.3.36 / Too Many Open Files

On 2006-06-22 14:32:24 -0400, "Thomas Dehn" <thomas-usenet@arcor.de> said:

>
> "Charles Plater" <cplater+usenet AT gmail DOT com> wrote:
>> We have a webserver running Apache 1.3.36 on Solaris 9. If I try to add
>> more than 81 VHOSTS all of the vhosts start throwing errors:
>>
>> [Wed Jun 21 12:29:31 2006] [crit] [client <REMOVED>] (24)Too many open
>> files: /path/to/www/content/.htaccess pcfg_openfile: unable to check
>> htaccess file, ensure it is readable
>>
>> I've set rlim_fd_cur to 8192 in /etc/system (and rebooted), and
>> re-compiled apache with EXTRA_CFLAGS=-DHIGH_SLACK_LINE=256 all to no
>> avail. The data directories, configuration files, and log files are all
>> stored on an NFS filesystem (although, I'm pretty sure NFS isn't the
>> culprit here.)

>
> How many open file descriptors does your apache have
> in your configuration when the problem occurs? You might have to use a
> 64bit Apache.


According to LSOF, apache has 297 open files when running w/ no
problems, and 300 open files when it is having problems.

For the record, I've set the hard file descriptor limit (rlim_fd_max),
and that didn't make a difference.

  Réponse avec citation
Vieux 22/06/2006, 20h56   #8
Thomas Dehn
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Solaris 9 / Apache 1.3.36 / Too Many Open Files


"Charles Plater" <cplater+usenet AT gmail DOT com> wrote:
> On 2006-06-22 14:32:24 -0400, "Thomas Dehn" <thomas-usenet@arcor.de> said:
>
> >
> > "Charles Plater" <cplater+usenet AT gmail DOT com> wrote:
> >> We have a webserver running Apache 1.3.36 on Solaris 9. If I try to add
> >> more than 81 VHOSTS all of the vhosts start throwing errors:
> >>
> >> [Wed Jun 21 12:29:31 2006] [crit] [client <REMOVED>] (24)Too many open
> >> files: /path/to/www/content/.htaccess pcfg_openfile: unable to check
> >> htaccess file, ensure it is readable
> >>
> >> I've set rlim_fd_cur to 8192 in /etc/system (and rebooted), and
> >> re-compiled apache with EXTRA_CFLAGS=-DHIGH_SLACK_LINE=256 all to no
> >> avail. The data directories, configuration files, and log files are all
> >> stored on an NFS filesystem (although, I'm pretty sure NFS isn't the
> >> culprit here.)

> >
> > How many open file descriptors does your apache have
> > in your configuration when the problem occurs? You might have to use a
> > 64bit Apache.

>
> According to LSOF, apache has 297 open files when running w/ no
> problems, and 300 open files when it is having problems.


Then the problem might be that 32-bit Apache uses fopen(),
which is limited to 255 fds in Solaris because of
binary compatibility reasons.

The most popular such fopen() problem is in mod_ssl.
Here is the Apache 2 version:

http://issues.apache.org/bugzilla/show_bug.cgi?id=14219

Reading the last two comments probably is sufficient
to understand whats going on.


Thomas



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h41.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13796 seconds with 16 queries