|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2018-09-12 08:11 UTC] ivokund at gmail dot com
Description: ------------ Both CLI and web requests are extremely slow. The smallest isolated example I can think of is below. The slow time varies apparently by random. Test script: --------------- No problem here: ___________________________ time php -n --version PHP 7.2.9-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Aug 19 2018 07:16:54) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies real 0m0,009s user 0m0,004s sys 0m0,004s Second try half a second later takes 8 sec ____________________________ time php -n --version PHP 7.2.9-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Aug 19 2018 07:16:54) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies real 0m8,440s user 0m0,001s sys 0m0,264s PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 04:00:01 2025 UTC |
[root@rh:~]$ strace php -v execve("/usr/bin/php", ["php", "-v"], 0x7ffd1f12fe58 /* 32 vars */) = 0 brk(NULL) = 0x55ef8e731000 brk(0x55ef8e731026) = 0x55ef8e731026 brk(NULL) = 0x55ef8e731026 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden) openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=111591, ...}) = 0 mmap(NULL, 111591, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f89b25eb000 close(3) = 0 openat(AT_FDCWD, "/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0Pb\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=154128, ...}) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f89b25e9000 mmap(NULL, 2221184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f89b21c2000 mprotect(0x7f89b21db000, 2097152, PROT_NONE) = 0 mmap(0x7f89b23db000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19000) = 0x7f89b23db000 mmap(0x7f89b23dd000, 13440, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f89b23dd000 close(3) = 0 openat(AT_FDCWD, "/lib64/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@8\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=98144, ...}) = 0 mmap(NULL, 2189952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f89b1fab000 mprotect(0x7f89b1fbe000, 2097152, PROT_NONE) = 0 ................