php-fpm core dumps inside container / how to enable? [message #52680] |
Wed, 07 December 2016 08:33 |
stephan-zrh
Messages: 1 Registered: December 2016
|
Junior Member |
|
|
Hello,
One of our customers with an OpenVZ-Container wishes to enable Core Dumps for php-fpm.
They write that they need to perform the following command:
# echo '/var/tmp/coredump-%e.%p' > /proc/sys/kernel/core_pattern
which results in the following:
bash: /proc/sys/kernel/core_pattern: Permission denied
I'm not sure, where to enable this.
The hardware node is running Debian (Proxmox) and the container is Centos 6.
Is there documentation regarding the change of this setting?
Do I have to enable this on the hardware-node and how? Is a reboot (of the container?) necessary?
Will this have consequences on other containers running on the same node?
Any pointers are greatly appreciated.
Kind regards -Stephan
|
|
|
Re: php-fpm core dumps inside container / how to enable? [message #52681 is a reply to message #52680] |
Wed, 07 December 2016 09:15 |
khorenko
Messages: 533 Registered: January 2006 Location: Moscow, Russia
|
Senior Member |
|
|
Don't know about OpenVZ 6 - did not try, but quickly checked on Virtuozzo 7 + CentOS 7 Container: works out of the box.
# echo '/var/tmp/coredump-%e.%p' > /proc/sys/kernel/core_pattern
# cat /proc/sys/kernel/core_pattern
/var/tmp/coredump-%e.%p
If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
|
|
|