Operating System - HP-UX
1834926 Members
2565 Online
110071 Solutions
New Discussion

Re: too many open files and apache1 3 27

 
Emre Kunt
New Member

too many open files and apache1 3 27

Configuration:
Apache 1.3.27
HpUx 11i

Sometimes, error messages appear in apache's error log file:
" Too many open files: /.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable ".
At the same time, apache could not serve and another message,"FORBDDEN", appears on browser.
Although I set all the kernel parameters related to Apache, the problem could not be solved.
What is the problem?
Thanks and best regards,
Emre Kunt

emre
3 REPLIES 3
Ramkumar Devanathan
Honored Contributor

Re: too many open files and apache1 3 27

hi Kunt,

run this script and see the process which has many files open... then try to resolve why. is lsof installed on your machine?

You can get 'lsof' here:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/

lsof | awk '{procct[$1]++;procname[$1]=$1;}END{for (i in procname) {printf ("%s, %d\n",procname[i],procct[i]);}}' | tr -s " " | sort -t" " -n -r -k 2,2

HTH.

- ramd.
HPE Software Rocks!
T G Manikandan
Honored Contributor

Re: too many open files and apache1 3 27

Check your maxfile parameter in the kernel.

i think you are crossing it!

Adam J Markiewicz
Trusted Contributor

Re: too many open files and apache1 3 27

Kernel parameters worth to check:

maxfiles
maxfiles_lim
nfile
ninode (???)

Use lsof to compare actual usage.

Good luck
Adam
I do everything perfectly, except from my mistakes