You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by thomas Armstrong <ta...@gmail.com> on 2008/03/27 10:08:49 UTC

[users@httpd] mmap cache can't open foo.php - Too many open files

Hi.

Using Apache version 2.2.3 on 'Linux CentOS', my webpages are very
slow and I get this error messages on my 'error_log' file:
-------
[Wed Mar 26 13:05:39 2008] [warn-phpd] mmap cache can't open
/var/www/classes/Threads.php - Too many open files (pid 17650)
[Wed Mar 26 13:05:42 2008] [warn-phpd] mmap cache can't open
/var/www/classes/User.php - Too many open files (pid 17650)
[Wed Mar 26 13:05:46 2008] [warn-phpd] mmap cache can't open
/var/www/lib/Functions.php - Too many open files (pid 17650)
-------

I've got PHP 5.2.5 and APC (a Cache System) 3.0.17. Does it something
to do with Apache?

Thank you very much.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mmap cache can't open foo.php - Too many open files

Posted by thomas Armstrong <ta...@gmail.com>.
> You can use the apachectl script which internally does the same or
> issue the following command from the command prompt ulimit -S -n `ulimit -H
> -n` and then start the Apache, hopefully it will resolve the issue :)
Thank you very much for you answer. I inserted this line on my
"/etc/rc.d/rc.local"
--------
ulimit -n 16384
--------

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mmap cache can't open foo.php - Too many open files

Posted by Arnab Ganguly <ag...@gmail.com>.
Increase your soft limit to the hard limit value allowed to max open
files.You can use the apachectl script which internally does the same or
issue the following command from the command prompt ulimit -S -n `ulimit -H
-n` and then start the Apache, hopefully it will resolve the issue :)
Thanks
-A

On Thu, Mar 27, 2008 at 2:38 PM, thomas Armstrong <ta...@gmail.com>
wrote:

> Hi.
>
> Using Apache version 2.2.3 on 'Linux CentOS', my webpages are very
> slow and I get this error messages on my 'error_log' file:
> -------
> [Wed Mar 26 13:05:39 2008] [warn-phpd] mmap cache can't open
> /var/www/classes/Threads.php - Too many open files (pid 17650)
> [Wed Mar 26 13:05:42 2008] [warn-phpd] mmap cache can't open
> /var/www/classes/User.php - Too many open files (pid 17650)
> [Wed Mar 26 13:05:46 2008] [warn-phpd] mmap cache can't open
> /var/www/lib/Functions.php - Too many open files (pid 17650)
> -------
>
> I've got PHP 5.2.5 and APC (a Cache System) 3.0.17. Does it something
> to do with Apache?
>
> Thank you very much.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

[users@httpd] Re: mmap cache can't open foo.php - Too many open files

Posted by thomas Armstrong <ta...@gmail.com>.
Some data of my server:

[]# free -m
             total       used       free     shared    buffers     cached
Mem:          2693        267       2425          0          0          0
-/+ buffers/cache:        267       2425
Swap:            0          0          0

[]# ulimit -m
unlimited

As you see, my Host provider gave me a VPS server with Swap=0.

?????



On Thu, Mar 27, 2008 at 10:08 AM, thomas Armstrong <ta...@gmail.com> wrote:
> Hi.
>
>  Using Apache version 2.2.3 on 'Linux CentOS', my webpages are very
>  slow and I get this error messages on my 'error_log' file:
>  -------
>  [Wed Mar 26 13:05:39 2008] [warn-phpd] mmap cache can't open
>  /var/www/classes/Threads.php - Too many open files (pid 17650)
>  [Wed Mar 26 13:05:42 2008] [warn-phpd] mmap cache can't open
>  /var/www/classes/User.php - Too many open files (pid 17650)
>  [Wed Mar 26 13:05:46 2008] [warn-phpd] mmap cache can't open
>  /var/www/lib/Functions.php - Too many open files (pid 17650)
>  -------
>
>  I've got PHP 5.2.5 and APC (a Cache System) 3.0.17. Does it something
>  to do with Apache?
>
>  Thank you very much.
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org