Re: APC memory utalization behaviour
| From: | Rasmus Lerdorf | Date: | Mon, 09 May 2005 15:46:17 +0000 |
| Subject: | Re: APC memory utalization behaviour | ||
| References: | 1 2 3 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-2345@lists.php.net to get a copy of this message | ||
Ammar Ibrahim wrote:
> I can put em on a webserver if you need to take a look and provide you
> with links
Not necessary.
> 1. Which version of APC? If not the latest CVS version, try that.
>
>
> 2.0.4, this is a production server, is the latest CVS stable enough
Yup
> 3. How do you rotate your Apache logs? Are you sure what you are seeing
> is not the result of log rotation restarting Apache?
>
> logrotated
>
> here's the snippet from the script
>
> if [ -f /var/run/apache.pid ]; then \
> if [ -x /usr/sbin/invoke-rc.d ]; then \
> invoke-rc.d apache reload > /dev/null; \
> else \
> /etc/init.d/apache reload > /dev/null; \
> fi; \
> fi;
A reload shuts down apache thus unloading PHP and APC which will clear
out all the shared memory. So you have found your culprit.
-Rasmus