[nycbug-talk] Apache and FreeBSD

Matt Juszczak matt at atopia.net
Mon Jul 13 12:49:23 EDT 2009


> have you tried to ktrace any of the processes?  I'd take a peek at the 
> zombies first so see if they are blocking on anything...

Oh yes, tons of times.  I'm constantly seeing resource temporarily 
unavailable, especially in the high CPU processes.

Also, here's something interesting:

  38103 httpd    CALL  fcntl(0xd,F_SETLKW,0xffffffffffff5250)
  38103 httpd    RET   fcntl 0
  38103 httpd    CALL  fcntl(0xd,F_SETLKW,0xffffffffffff5250)
  38103 httpd    RET   fcntl 0
  38103 httpd    CALL  fcntl(0xd,F_SETLKW,0xffffffffffff5250)
  38103 httpd    RET   fcntl 0
  38103 httpd    CALL  fcntl(0xd,F_SETLKW,0xffffffffffff5250)
  38103 httpd    RET   fcntl 0
  38103 httpd    CALL  fcntl(0xd,F_SETLKW,0xffffffffffff5250)
  38103 httpd    RET   fcntl 0
  38103 httpd    CALL  fcntl(0xd,F_SETLKW,0xffffffffffff5250)
  38103 httpd    RET   fcntl 0
  38103 httpd    CALL  fcntl(0xd,F_SETLKW,0xffffffffffff5250)
  38103 httpd    RET   fcntl 0
  38103 httpd    CALL  fcntl(0xd,F_SETLKW,0xffffffffffff5250)
  38103 httpd    RET   fcntl 0
  38103 httpd    CALL  fcntl(0xd,F_SETLKW,0xffffffffffff5250)
  38103 httpd    RET   fcntl 0

And that repeats for a really long time.

Tried to ktrace the zombie:

s104# ps auxw | grep def
root       9031  0.0  0.0     0     0  ??  Z    Wed12AM   0:12.53 
<defunct>
root      37846  0.0  0.0  7884  1164  p0  S+   12:40PM   0:00.00 grep def
s104# ktrace -p 9031
ktrace: ktrace.out: No such process
s104#




More information about the talk mailing list