Welcome! Log In Create A New Profile

Advanced

Odd memory graph (when php-fpm went crazy) Can someone explain what happened?

Posted by M. Hinct 
All files from this thread

File Name File Size   Posted by Date  
memgraph.png 20.1 KB open | download M. Hinct 03/25/2014 Read message
Hi, I recently had an outage with a VM that runs Ubuntu Linux 12.04 64bit
in an ESX Vmware environment. The php is 5.3 We've been having issues
with php-fpm needing to be restarted when the system becomes unusable. The
cacti graph of the memory of during the event is really confusing to me.

See attached. Can someone please tell me what the OS/Kernel/php-fpm was
doing that caused real memory to increase, cache memory to deplete, and
unused memory to increase? During this, we ran out of swap.

If anyone knows what went on, I would really appreciate it.

Please let me know if there is some other information you need. Simply
stopping and starting php-fpm fixed the issue. We suspect a poorly
writting app causing the usage and we are zeroing in on that, but any help
with understanding what happened would be wonderful.

Thanks!!

Pete

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Attachments:
open | download - memgraph.png (20.1 KB)
Re: Odd memory graph (when php-fpm went crazy) Can someone explain what happened?
March 25, 2014 05:17AM
Hello,
whats your pool config? Opcache type? other caches?

if restarting php-fpm helps, then maybe you shall try pm.max_requests = 50
for pool config? or maybe even lower value to auto-restart php process
Hello!
Which cache on php do you use?
Sometimes opcode caching can cause memory leak if processes are not
relaunched...
I always use processes of php not more than 10 times(each process gets only
10 requests and after serving last of then dies) to avoid memory leaks...

пятница, 21 марта 2014 г., 21:56:03 UTC+2 пользователь M. Hinct написал:
>
>
> Hi, I recently had an outage with a VM that runs Ubuntu Linux 12.04 64bit
> in an ESX Vmware environment. The php is 5.3 We've been having issues
> with php-fpm needing to be restarted when the system becomes unusable. The
> cacti graph of the memory of during the event is really confusing to me.
>
> See attached. Can someone please tell me what the OS/Kernel/php-fpm was
> doing that caused real memory to increase, cache memory to deplete, and
> unused memory to increase? During this, we ran out of swap.
>
> If anyone knows what went on, I would really appreciate it.
>
> Please let me know if there is some other information you need. Simply
> stopping and starting php-fpm fixed the issue. We suspect a poorly
> writting app causing the usage and we are zeroing in on that, but any help
> with understanding what happened would be wonderful.
>
> Thanks!!
>
> Pete
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready