Hi, Richard

I enabled Olio/PHP on SWS7u6 on Linux, however I met the below error
when running Olio only with 100 users.
       [19/Oct/2009:15:35:25] catastrophe (22588): CORE3260: Server
crash detected (signal SIGSEGV)
       [19/Oct/2009:15:35:25] info (22588): CORE3261: Crash occurred
in NSAPI SAF php5_execute

I wonder which php module is not thread-safe? I only enabled apc and
memcache in php.

php was compiled as
       CC="gcc" CFLAGS="-O3 -fPIC" ./configure
--prefix=/home/sun/php-5.2.6 --with-mysql=/usr/local/mysql
--with-gettext --with-zlib --with-nsapi=/home/sun/webserver7/
--enable-force-cgi-redirect --with-pdo-mysql=/user/local/mysql
--with-curl --with-gd=/home/apache_webserver/gd-2.0.35
--with-jpeg-dir=/home/apache_webserver/jpeg-6b

apc3.0.19 was compiled as
       CC="gcc" CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3" ./configure
--enable-apc --enable-apc-mmap
--with-php-config=/home/sun/php-5.2.6/bin/php-config

memcache-2.2.5 was compiled as
       ./configure --enable-memcache
--with-php-config=/home/sun/php-5.2.6/bin/php-config

Your suggestions/comments are appreciated.

Thx, Xuekun

On Wed, Oct 14, 2009 at 10:52 AM, Richard Smith <[email protected]> wrote:
> My understanding is that the PHP core is thread-safe via its use of ZTS and
> TSRM. Since PHP can act as a glue for third-party libraries, there's a
> potential risk that some extensions may not be thread-safe. There are some
> comments about not using Apache2 with a threaded MPM at
> http://www.php.net/manual/en/faq.installation.php#faq.installation.apache2
> but nothing specific is identified as not being thread-safe.
>
> I've been using SWS with PHP in a single, multithreaded process and
> simulated
> thousands of active Olio users. That doesn't prove there are no bugs
> in the implementation, but does give me confidence in the subset of
> PHP extensions that Olio uses.
>
>
> Jignesh K. Shah wrote:
>>
>> I thought PHP is not thread-safe.. In that case how can SWS threaded help?
>>
>> -Jignesh
>
>
> --
> ============================================================================
>   ,-_|\   Richard Smith Staff Engineer PAE
>  /     \  Sun Microsystems                   Phone : +61 3 9869 6200
> [email protected]                         Direct : +61 3 9869 6224
>  \_,-._/  476 St Kilda Road                    Fax : +61 3 9869 6290
>       v   Melbourne Vic 3004 Australia
> ===========================================================================
>
>

Reply via email to