Edit report at https://bugs.php.net/bug.php?id=70190&edit=1
ID: 70190
Updated by: php-bugs@lists.php.net
Reported by: amor dot tsai at gmail dot com
Summary: some errors cause php high cpu usage
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: opcache
Operating System: CentOS release 6.3 (Final)
PHP Version: 5.6.9
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2021-07-08 11:30:26] cmb@php.net
Why do you think this related to OPcache? And is this still an
issue with any of the actively supported PHP versions[1]?
[1] <https://www.php.net/supported-versions.php>
------------------------------------------------------------------------
[2015-08-05 10:00:10] amor dot tsai at gmail dot com
#0 0xffffffffff60009f in ?? ()
#1 0x00007fff9d5523f0 in ?? ()
#2 0x0000003a3ee8b71d in gettimeofday () from /lib64/libc.so.6
#3 0x00002ba0c2ddc2c6 in memcached_mark_server_for_timeout (server=0xa460b48) at
./libmemcached/server.hpp:102
#4 0x00002ba0c2ddc5b0 in memcached_quit_server (ptr=0xa460b48, io_death=true) at
libmemcached/quit.cc:126
#5 0x00002ba0c2dd9f6c in memcached_io_reset (ptr=0xa460b48) at libmemcached/io.cc:748
#6 0x00002ba0c2ddddf4 in _read_one_response (ptr=0xa460b48, buffer=0x7fff9d5523f0
"ERROR\r\n", buffer_length=1024, result=0x7fff9d552830, numeric_value=@0x7fff9d5527f8)
at libmemcached/response.cc:721
#7 0x00002ba0c2ddde80 in memcached_read_one_response (ptr=0xa460b48, result=0x7fff9d552830) at
libmemcached/response.cc:739
#8 0x00002ba0c2ddc071 in memcached_purge (ptr=0xa460b48) at libmemcached/purge.cc:96
#9 0x00002ba0c2dd9224 in io_flush (ptr=0xa460b48, with_flush=true, error=@0x7fff9d552a90) at
libmemcached/io.cc:283
#10 0x00002ba0c2dd9b7b in _io_write (ptr=0xa460b48, buffer=0x0, length=0, with_flush=true) at
libmemcached/io.cc:598
#11 0x00002ba0c2dd9bb8 in memcached_io_write (ptr=0xa460b48) at libmemcached/io.cc:609
#12 0x00002ba0c2dd9ca5 in memcached_io_writev (ptr=0xa460b48, vector=0x7fff9d552c30, number_of=1,
with_flush=true) at libmemcached/io.cc:640
#13 0x00002ba0c2dd294a in memcached_vdo (instance=0xa460b48, vector=0x7fff9d552c20, count=1,
with_flush=true) at libmemcached/do.cc:76
#14 0x00002ba0c2ddc482 in memcached_quit_server (ptr=0xa460b48, io_death=false) at
libmemcached/quit.cc:79
#15 0x00002ba0c2ddc5f2 in send_quit (ptr=0xa2c6a20) at libmemcached/quit.cc:137
#16 0x00002ba0c2dda895 in _free (ptr=0xa2c6a20, release_st=true) at libmemcached/memcached.cc:130
#17 0x00002ba0c2ddacf3 in memcached_free (ptr=0xa2c6a20) at libmemcached/memcached.cc:284
#18 0x00002ba0c2bad500 in php_memc_destroy (m_obj=0xa348068, persistent=0 '\000') at
/data1/fxpbs/src/memcached-2.0.1/php_memcached.c:2519
#19 0x00002ba0c2baeb0f in php_memc_free_storage (i_obj=0xa34a1c0) at
/data1/fxpbs/src/memcached-2.0.1/php_memcached.c:2530
#20 0x000000000088f978 in zend_objects_store_del_ref_by_handle_ex (handle=4, handlers=<value
optimized out>) at /data1/fxpbs/src/php-5.6.9/Zend/zend_objects_API.c:226
#21 0x000000000088f993 in zend_objects_store_del_ref (zobject=0xa34a390) at
/data1/fxpbs/src/php-5.6.9/Zend/zend_objects_API.c:178
#22 0x00002ba0c19f551f in accel_clean_non_persistent_class (pce=<value optimized out>) at
/data1/fxpbs/src/php-5.6.9/ext/opcache/ZendAccelerator.c:2302
#23 0x0000000000870623 in zend_hash_reverse_apply (ht=0x9fba170, apply_func=0x2ba0c19f54d0
<accel_clean_non_persistent_class>) at /data1/fxpbs/src/php-5.6.9/Zend/zend_hash.c:729
#24 0x00002ba0c19f52ff in zend_accel_fast_shutdown () at
/data1/fxpbs/src/php-5.6.9/ext/opcache/ZendAccelerator.c:2354
#25 0x00002ba0c19f921d in accel_deactivate () at
/data1/fxpbs/src/php-5.6.9/ext/opcache/ZendAccelerator.c:2383
#26 0x000000000085708e in zend_llist_apply (l=<value optimized out>, func=0x853290
<zend_extension_deactivator>) at /data1/fxpbs/src/php-5.6.9/Zend/zend_llist.c:191
#27 0x00000000008565a3 in shutdown_executor () at
/data1/fxpbs/src/php-5.6.9/Zend/zend_execute_API.c:243
#28 0x0000000000863862 in zend_deactivate () at /data1/fxpbs/src/php-5.6.9/Zend/zend.c:960
#29 0x0000000000802f9d in php_request_shutdown (dummy=<value optimized out>) at
/data1/fxpbs/src/php-5.6.9/main/main.c:1882
#30 0x0000000000910d09 in main (argc=<value optimized out>, argv=<value optimized out>)
at /data1/fxpbs/src/php-5.6.9/sapi/fpm/fpm/fpm_main.c:1992
------------------------------------------------------------------------
[2015-08-05 02:15:28] amor dot tsai at gmail dot com
update the php version
------------------------------------------------------------------------
[2015-08-03 13:44:14] amor dot tsai at gmail dot com
Description:
------------
I have got my single php high cpu usage.here is the top info.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
671968 www 20 0 777m 43m 35m R 99.8 0.1 14:13.31 php-fpm
685473 www 20 0 778m 39m 30m R 99.8 0.1 2:33.39 php-fpm
685481 www 20 0 776m 37m 30m R 99.8 0.1 4:11.09 php-fpm
4048964 www 20 0 18.2g 16g 528 S 33.1 26.4 56902:01 memcached
685265 www 20 0 781m 45m 36m S 11.9 0.1 0:09.87 php-fpm
685392 www 20 0 778m 43m 35m S 9.9 0.1 0:09.17 php-fpm
685248 www 20 0 777m 41m 34m S 8.6 0.1 0:09.64 php-fpm
685289 www 20 0 778m 42m 33m S 8.3 0.1 0:09.59 php-fpm
685338 www 20 0 776m 40m 33m S 7.9 0.1 0:09.07 php-fpm
685469 www 20 0 777m 41m 33m S 7.6 0.1 0:09.02 php-fpm
and when i try to use strace,or ltrace,I can't get anything.it just show like this
Process 671968 attached - interrupt to quit.and when i use gdb and bt to output the stack info,it
shows like
#0 0x00007f45a35bba1d in ?? () from /usr/local/php_5.6.9/depend/libmemcached/lib/libmemcached.so.9
#1 0x00007f45a35bcc62 in ?? () from /usr/local/php_5.6.9/depend/libmemcached/lib/libmemcached.so.9
#2 0x00007f45a35bcd30 in memcached_read_one_response(memcached_server_st*, memcached_result_st*) ()
from /usr/local/php_5.6.9/depend/libmemcached/lib/libmemcached.so.9
#3 0x00007f45a35baf21 in ?? () from /usr/local/php_5.6.9/depend/libmemcached/lib/libmemcached.so.9
#4 0x00007f45a35b80d4 in ?? () from /usr/local/php_5.6.9/depend/libmemcached/lib/libmemcached.so.9
#5 0x00007f45a35b8a2b in ?? () from /usr/local/php_5.6.9/depend/libmemcached/lib/libmemcached.so.9
#6 0x00007f45a35b8a68 in memcached_io_write(memcached_server_st*) () from
/usr/local/php_5.6.9/depend/libmemcached/lib/libmemcached.so.9
#7 0x00007f45a35b8b55 in memcached_io_writev(memcached_server_st*, libmemcached_io_vector_st*,
unsigned long, bool) () from /usr/local/php_5.6.9/depend/libmemcached/lib/libmemcached.so.9
#8 0x00007f45a35b18be in memcached_vdo(memcached_server_st*, libmemcached_io_vector_st*, unsigned
long, bool) () from /usr/local/php_5.6.9/depend/libmemcached/lib/libmemcached.so.9
#9 0x00007f45a35bb332 in memcached_quit_server(memcached_server_st*, bool) () from
/usr/local/php_5.6.9/depend/libmemcached/lib/libmemcached.so.9
#10 0x00007f45a35bb4a2 in send_quit(memcached_st*) () from
/usr/local/php_5.6.9/depend/libmemcached/lib/libmemcached.so.9
#11 0x00007f45a35b9745 in ?? () from /usr/local/php_5.6.9/depend/libmemcached/lib/libmemcached.so.9
#12 0x00007f45a35b9ba3 in memcached_free () from
/usr/local/php_5.6.9/depend/libmemcached/lib/libmemcached.so.9
#13 0x00007f45a37db550 in ?? () from
/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/memcached.so
#14 0x00007f45a37dcb5f in ?? () from
/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/memcached.so
#15 0x00000000008476e8 in zend_objects_store_del_ref_by_handle_ex ()
#16 0x0000000000847703 in zend_objects_store_del_ref ()
#17 0x00007f45a4532dff in ?? () from
/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/opcache.so
#18 0x0000000000828433 in zend_hash_reverse_apply ()
#19 0x00007f45a4532bdf in ?? () from
/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/opcache.so
#20 0x00007f45a4536995 in ?? () from
/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/opcache.so
#21 0x000000000080eece in zend_llist_apply ()
#22 0x000000000080e3e3 in ?? ()
#23 0x000000000081b682 in zend_deactivate ()
#24 0x00000000007bad2d in php_request_shutdown ()
#25 0x00000000008c8ac9 in ?? ()
#26 0x00000034b761ed5d in __libc_start_main () from /lib64/libc.so.6
#27 0x00000000004316a9 in _start ()
is there anything wrong?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70190&edit=1