php-general Digest 24 Nov 2011 20:58:17 -0000 Issue 7582
Topics (messages 315796 through 315801):
Re: PHP script won't run in the background
315796 by: Laruence
315799 by: richard gray
315800 by: Alain Williams
Question about PHP FPM and shared memory
315797 by: Daniel Betz
315798 by: Nilesh Govindarajan
PHP 5.3.9RC2 and PHP 5.4.0RC2 released!
315801 by: David Soria Parra
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hi:
I mean, do you built your php with readline support, or do you load
readline.so into PHP?
if so, remove it, then try again.
and you also can use:
gdb --pid={the pid of the stopped php}
then you will find where the php hangs.
thanks
On Wed, Nov 23, 2011 at 1:04 AM, richard gray <r...@richgray.com> wrote:
> On 22/11/2011 05:51, Laruence wrote:
>>
>> did you run php with readline? try run the script without php-readline.
>>
>> thanks
>
> No - the script was just a basic string echo - no readline was involved.
>
--
Laruence Xinchen Hui
http://www.laruence.com/
--- End Message ---
--- Begin Message ---
On 23/11/2011 11:05, Laruence wrote:
Hi:
I mean, do you built your php with readline support, or do you load
readline.so into PHP?
if so, remove it, then try again.
and you also can use:
gdb --pid={the pid of the stopped php}
then you will find where the php hangs.
thanks
I didn't build PHP as it fails to make -- see
https://bugs.php.net/bug.php?id=60268 so I am stuck with the PHP build
provided by Apple... :(
Here's what gdb says
[rich@LeMans] (/web/scripts)> php -f test.php >test.log 2>&1 &
[1] 3513
[rich@LeMans] (/web/scripts)>
[1]+ Stopped php -f test.php > test.log 2>&1
[rich@LeMans] (/web/scripts)> gdb --pid 3513
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Mon Aug 8 20:32:45
UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".
/Web/scripts/3513: No such file or directory
Attaching to process 3513.
Reading symbols for shared libraries . done
Reading symbols for shared libraries
................................................................................................................................................
done
Reading symbols for shared libraries + done
0x0000000101d057ee in __ioctl ()
Any clues? To me it looks like PHP cli is trying to do some I/O but I'm
just a dumb developer... :)
--- End Message ---
--- Begin Message ---
On Wed, Nov 23, 2011 at 06:14:07PM +0100, richard gray wrote:
> Reading symbols for shared libraries + done
> 0x0000000101d057ee in __ioctl ()
>
> Any clues? To me it looks like PHP cli is trying to do some I/O but I'm
> just a dumb developer... :)
ioctl on a tty is typically used to set it into single character at a time mode
(remove stty's icanon).
It could have decided that since it is a tty then that should be set.
You need a bit more info, get a backtrace with 'where'.
--
Alain Williams
Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT
Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
Parliament Hill Computers Ltd. Registration Information:
http://www.phcomp.co.uk/contact.php
#include <std_disclaimer.h>
--- End Message ---
--- Begin Message ---
Hello list,
I am trying to start PHP FPM with 2600 worker pools with "ondemand"
processmanager. Each for one domain.
The problem is now, that the php-fpm quits with:
ERROR: pid 10937, fpm_shm_alloc(), line 28: unable to allocate 1040 bytes in
shared memory: Cannot allocate memory: Cannot allocate memory (12)
The server is 32bit :( and has 12GB of ram.
I have tried to raise the SHMMAX and SHMALL settings via sysctl, but the
problem isn't gone.
Do you have any hints ?
Thx and greetings,
Daniel
--- End Message ---
--- Begin Message ---
On 11/23/2011 08:25 PM, Daniel Betz wrote:
> Hello list,
>
> I am trying to start PHP FPM with 2600 worker pools with "ondemand"
> processmanager. Each for one domain.
> The problem is now, that the php-fpm quits with:
> ERROR: pid 10937, fpm_shm_alloc(), line 28: unable to allocate 1040 bytes in
> shared memory: Cannot allocate memory: Cannot allocate memory (12)
>
> The server is 32bit :( and has 12GB of ram.
> I have tried to raise the SHMMAX and SHMALL settings via sysctl, but the
> problem isn't gone.
>
> Do you have any hints ?
>
> Thx and greetings,
> Daniel
>
>
>
How much did you set it and were those changes applied?
--
Nilesh Govindarajan
http://nileshgr.com
--- End Message ---
--- Begin Message ---
Hello,
The PHP team released the second release candidates of PHP 5.3.9 and PHP
5.4.0 today:
You can find the packages for PHP 5.3.9RC2 here:
http://downloads.php.net/johannes
and respectively for PHP 5.4.0RC2:
http://downloads.php.net/stas
The Windows team provides windows binaries for both releases which you
find here:
http://windows.php.net/qa/
Please ensure that the releases are solid and all things behave as
expected! Test these release candidates against your code base and
report any problems you encounter or successful tests you've run.
The third release candidates will be released on December 8.
regards,
Johannes, Stas and David
--- End Message ---