Re: Performance problem with php
| From: | Rasmus Lerdorf | Date: | Sun, 20 Jun 2010 13:37:10 +0000 |
| Subject: | Re: Performance problem with php | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-48850@lists.php.net to get a copy of this message | ||
On 6/19/10 11:49 PM, Vincenzo D'Amore wrote:
> Could anybody explain me why I have this behavior and if it is attributable
> to a misconfiguration of php?
This doesn't look like a PHP misconfiguration. It looks more like an
application-level issue. Do a grep for "realpath" in your application
code. A single call to realpath() would cause that tree of stat calls
you see. Also, you might be overflowing your realpath cache. PHP 5.2
is not using the cache very efficiently. This is fixed in 5.3. But try
increasing your cache ttl and the size as well. eg.
realpath_cache_size = 256k
realpath_cache_ttl = 7200
-Rasmus