PHP CLI slow in 4.3.2RC1 and 4.3.1

From: Date: Tue, 08 Apr 2003 16:29:08 +0000
Subject: PHP CLI slow in 4.3.2RC1 and 4.3.1
Groups: php.general 
Request: Send a blank email to php-general+get-142956@lists.php.net to get a copy of this message
Hello. I just recently upgraded my Linux machine with OpenSSL 0.9.7a and recompiled the batch of programs using openssl. I run php 4.3.2RC1 and I have tried 4.3.1 too but there is still problems. The problem is when running something, well anything with the CLI php. I can do a "php -v" and it takes forever. It goes through but it holds for about 10-20 sec before it gives me the version output and ends. Running PHP as normal with Apache 2.0.45 and php pages goes fine. I run a "strace php -v" just to see if I could get anything usefull of it but I'm no programmer and I can't make anything out of it. I did find out where it stops and holds for the 10-20 sec. I'm give the output below: lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/usr/local", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/usr/local/lib", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat64("/usr/local/lib/php.ini", {st_mode=S_IFREG|0644, st_size=38433, ..}) = 0 brk(0x81f0000) = 0x81f0000 fstat64(3, {st_mode=S_IFREG|0644, st_size=38433, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 8192) = 8192 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096 brk(0x81f8000) = 0x81f8000 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096 brk(0x8204000) = 0x8204000 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 1569 read(3, "", 4096) = 0 read(3, "", 8192) = 0 brk(0x8205000) = 0x8205000 close(3) = 0 munmap(0x40014000, 4096) = 0 As far as I can tell the "read(3, ..." takes forever to run. I have no clue to why this is. I also noted that it tries to read every singel library from my mysql/lib first. PHP was compiled with the following configure arguments: # ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --with-gd --with-jpeg-dir --with-png-dir --with-mysql=/usr/local/mysql --with-mm --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-force-cgi-redirect --with-gettext

« previous php.general (#142956) next »