memory issues with PHP_ProcWatch

From: Date: Sat, 08 Nov 2003 14:52:01 +0000
Subject: memory issues with PHP_ProcWatch
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-23352@lists.php.net to get a copy of this message
Hi I figured out why the "daemon mode" doesn't work. If the script is run in a loop, it eats up memory, about 60k each run. I can't find any incident for that... :-( I tried unset()'s and references - without success. The last lines of an strace output, if it helps: --- ### --- --- SIGCHLD (Child exited) @ 0 (0) --- read(3, "USER PID %CPU %MEM VSZ "..., 4096) = 3084 read(3, "", 4096) = 0 read(3, "", 4096) = 0 close(3) = 0 waitpid(8192, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0) = 8192 munmap(0x40017000, 4096) = 0 time(NULL) = 1068306842 write(1, "Sat, 8 Nov 2003 16:54:02 +0100 "..., 95) = 95 pipe([3, 7]) = 0 fork() = 8193 --- SIGCHLD (Child exited) @ 0 (0) --- close(7) = 0 fstat64(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 read(3, "USER PID %CPU %MEM VSZ "..., 4096) = 3084 read(3, "", 4096) = 0 read(3, "", 4096) = 0 close(3) = 0 waitpid(8193, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0) = 8193 munmap(0x40017000, 4096) = 0 brk(0) = 0x91f6000 brk(0x9217000) = 0x9217000 time(NULL) = 1068306842 open("/var/log/php", O_WRONLY|O_APPEND|O_CREAT, 0666) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=56087, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40017000 fstat64(3, {st_mode=S_IFREG|0644, st_size=56087, ...}) = 0 _llseek(3, 56087, [56087], SEEK_SET) = 0 time([1068306842]) = 1068306842 write(3, "[08-Nov-2003 16:54:02] PHP Fatal"..., 187) = 187 close(3) = 0 munmap(0x40017000, 4096) = 0 close(6) = 0 close(5) = 0 close(4) = 0 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={30, 0}}, NULL) = 0 rt_sigaction(SIGPROF, {0x4098d600, [PROF], SA_RESTORER|SA_RESTART, 0x40a745f8}, {0x4098d600, [PROF], SA_RESTORER|SA_RESTART, 0x40a745f8}, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [PROF], NULL, 8) = 0 write(1, "Sat, 8 Nov 2003 16:54:02 +0100 "..., 255) = 255 setitimer(ITIMER_PROF, {it_interval={0, 0}, it_value={0, 0}}, NULL) = 0 munmap(0x40016000, 4096) = 0 _exit(255) = ? --- ### --- Any ideas? Thanks, -- Michael - < mike(@)php.net >

Attachment: [application/pgp-signature]
« previous php.pear.dev (#23352) next »