PHP 7.1.13 no CentOS 7.4.1708
Atraso inexplicável (2 a 10 segundos) apenas invocando php, mesmo com script vazio ou apenas para obter informações sobre a versão. Eu nunca vi isso antes em qualquer sistema e não sei como depurar ou consertar isso.
O atraso pode variar de 2 a 10 segundos. Deve demorar apenas milissegundos, como em outros sistemas. Nenhum outro programa está passando por esse atraso.
a carga do sistema é insignificante:
08:32:00 up 8 days, 2:23, 1 user, load average: 0.26, 0.29, 0.35
Alguém pode dar conselhos sobre isso?
Benchmarks:
$ time php -v
PHP 7.1.13 (cli) (built: Jan 4 2018 15:22:08) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.13, Copyright (c) 1999-2017, by Zend Technologies
real 0m1.916s
user 0m0.015s
sys 0m0.012s
$ time php -r ''
real 0m9.841s
user 0m0.015s
sys 0m0.009s
Eu não sou o administrador desta máquina, embora esteja trabalhando com ele para resolver esse problema.
Não sei dizer como esse pacote específico foi instalado.
[editar]
foi recomendado executar o strace e notei pausas no POLL. O que a pesquisa PHP está fazendo?
enquete ([{fd = 3, eventos = POLLOUT}], 1, 0) = 1 ([{fd = 3, revents = POLLOUT}])
Estou tentando descobrir a partir do sys adm o que é (ou deveria ser) em 10.226.139.110. Ele pinga bem sem atraso particular.
socket(AF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.226.139.110")}, 16) = 0
poll([{fd=3, events=POLLOUT}], 1, 0) = 1 ([{fd=3, revents=POLLOUT}])
sendmmsg(3, {{{msg_name(0)=NULL, msg_iov(1)=[{"![PHP Modules]
apcu
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
imap
json
libxml
mbstring
mcrypt
memcached
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
sqlsrv
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
08:32:00 up 8 days, 2:23, 1 user, load average: 0.26, 0.29, 0.35
$ time php -v
PHP 7.1.13 (cli) (built: Jan 4 2018 15:22:08) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.13, Copyright (c) 1999-2017, by Zend Technologies
real 0m1.916s
user 0m0.015s
sys 0m0.012s
$ time php -r ''
real 0m9.841s
user 0m0.015s
sys 0m0.009s
socket(AF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.226.139.110")}, 16) = 0
poll([{fd=3, events=POLLOUT}], 1, 0) = 1 ([{fd=3, revents=POLLOUT}])
sendmmsg(3, {{{msg_name(0)=NULL, msg_iov(1)=[{"![PHP Modules]
apcu
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
imap
json
libxml
mbstring
mcrypt
memcached
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
sqlsrv
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
%pre%%pre%%pre%%pre%%pre%%pre%%pre%\xxx\yyy"..., 50}], msg_controllen=0, msg_flags=MSG_DONTWAIT|MSG_EOR|MSG_CONFIRM|MSG_RST|MSG_ERRQUEUE|MSG_MORE|MSG_FASTOPEN|0x6620010}, 50}, {{msg_name(0)=NULL, msg_iov(1)=[{"!7%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%\xxx\yyy"..., 50}], msg_controllen=0, msg_flags=MSG_CONFIRM}, 50}}, 2, MSG_NOSIGNAL) = 2
poll([{fd=3, events=POLLIN}], 1, 5000) = 0 (Timeout)
socket(AF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.226.143.110")}, 16) = 0
poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}])
sendmmsg(4, {{{msg_name(0)=NULL, msg_iov(1)=[{"!%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%\xxx\yyy"..., 50}], msg_controllen=0, msg_flags=MSG_DONTWAIT|MSG_EOR|MSG_CONFIRM|MSG_RST|MSG_ERRQUEUE|MSG_MORE|MSG_FASTOPEN|0x6620010}, 50}, {{msg_name(0)=NULL, msg_iov(1)=[{"!7%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%\xxx\yyy"..., 50}], msg_controllen=0, msg_flags=MSG_CONFIRM}, 50}}, 2, MSG_NOSIGNAL) = 2
poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}])
ioctl(4, FIONREAD, [148]) = 0
recvfrom(4, "!10%pre%%pre%%pre%%pre%%pre%%pre%\vcoloscrmwebindepen"..., 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.226.143.110")}, [16]) = 148
poll([{fd=4, events=POLLIN}], 1, 2769) = 1 ([{fd=4, revents=POLLIN}])
ioctl(4, FIONREAD, [148]) = 0
recvfrom(4, "!710%pre%%pre%%pre%%pre%%pre%%pre%\xxx\yyy"..., 65536, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.226.143.110")}, [16]) = 148
close(3) = 0
close(4) = 0
socket(AF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.226.139.110")}, 16) = 0
poll([{fd=3, events=POLLOUT}], 1, 0) = 1 ([{fd=3, revents=POLLOUT}])
%pre%%pre%%pre%%pre%\xxx\yyy"..., 50}], msg_controllen=0, msg_flags=MSG_DONTWAIT|MSG_EOR|MSG_CONFIRM|MSG_RST|MSG_ERRQUEUE|MSG_MORE|MSG_FASTOPEN|0x6620010}, 50}, {{msg_name(0)=NULL, msg_iov(1)=[{"!7%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%\xxx\yyy"..., 50}], msg_controllen=0, msg_flags=MSG_CONFIRM}, 50}}, 2, MSG_NOSIGNAL) = 2
poll([{fd=3, events=POLLIN}], 1, 5000) = 0 (Timeout)
socket(AF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.226.143.110")}, 16) = 0
poll([{fd=4, events=POLLOUT}], 1, 0) = 1 ([{fd=4, revents=POLLOUT}])
sendmmsg(4, {{{msg_name(0)=NULL, msg_iov(1)=[{"!%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%\xxx\yyy"..., 50}], msg_controllen=0, msg_flags=MSG_DONTWAIT|MSG_EOR|MSG_CONFIRM|MSG_RST|MSG_ERRQUEUE|MSG_MORE|MSG_FASTOPEN|0x6620010}, 50}, {{msg_name(0)=NULL, msg_iov(1)=[{"!7%pre%%pre%%pre%%pre%%pre%%pre%%pre%%pre%\xxx\yyy"..., 50}], msg_controllen=0, msg_flags=MSG_CONFIRM}, 50}}, 2, MSG_NOSIGNAL) = 2
poll([{fd=4, events=POLLIN}], 1, 5000) = 1 ([{fd=4, revents=POLLIN}])
ioctl(4, FIONREAD, [148]) = 0
recvfrom(4, "!10%pre%%pre%%pre%%pre%%pre%%pre%\vcoloscrmwebindepen"..., 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.226.143.110")}, [16]) = 148
poll([{fd=4, events=POLLIN}], 1, 2769) = 1 ([{fd=4, revents=POLLIN}])
ioctl(4, FIONREAD, [148]) = 0
recvfrom(4, "!710%pre%%pre%%pre%%pre%%pre%%pre%\xxx\yyy"..., 65536, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.226.143.110")}, [16]) = 148
close(3) = 0
close(4) = 0
socket(AF_INET, SOCK_DGRAM|SOCK_NONBLOCK, IPPROTO_IP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("10.226.139.110")}, 16) = 0
poll([{fd=3, events=POLLOUT}], 1, 0) = 1 ([{fd=3, revents=POLLOUT}])
-
php -m
%pre%