NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: some apache processes running away with cpu



Hi,

On Mar 17, 2013, at 8:51 PM, Christos Zoulas wrote:

In article <Pine.NEB.4.64.1303171818010.3664%agnus.datazap.net@localhost>,
Al  <al%familysafeinternet.com@localhost> wrote:
Hi,

I have 2 system running NetBSD 5.1.2. They both have an issue with some
apache processes using all available cpu. If I kill those process or
restart apache then the problem goes away for a little while. Is this
something that anyone else has already dealt with? Is there a fix for it?

ktrace them...

I had to wait until a process started using all available cpu again. It is so random when it happens. Sometimes there are a bunch of processes and other times I have to wait all day.

I ran ktrace -p {process id}, it creates ktrace.out, but there is nothing in the file. However, when I restarted apache it did put something in ktrace.out. Here is the output from kdump:

 27624      1 httpd    EMUL  "netbsd"
27624 1 httpd PSIG SIGTERM caught handler=0xef793018 mask= (11): code=SI_USER sent by pid=17400, uid=0)
 27624      1 httpd    CALL  gettimeofday(0xffffc6b8,0)
 27624      1 httpd    RET   gettimeofday 0
 27624      1 httpd    CALL  write(0xd,0xec11ed00,0x6e)
 27624      1 httpd    GIO   fd 13 wrote 110 bytes
"178.159.231.225 - - [19/Mar/2013:04:14:43 -0500] \"GET /v2/ is.php?i=655171&img=greeceCf.gif HTTP/1.1\" 200 8697\n"
 27624      1 httpd    RET   write 110/0x6e
 27624      1 httpd    CALL  getrusage(0,0xffffc680)
 27624      1 httpd    RET   getrusage 0
 27624      1 httpd    CALL  getrusage(0xffffffff,0xffffc680)
 27624      1 httpd    RET   getrusage 0
 27624      1 httpd    CALL  gettimeofday(0xffffc6c8,0)
 27624      1 httpd    RET   gettimeofday 0
 27624      1 httpd    CALL  close(0x18)
 27624      1 httpd    RET   close 0
 27624      1 httpd    CALL  close(0x17)
 27624      1 httpd    RET   close 0
 27624      1 httpd    CALL  munmap(0xee220000,0x25000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee3e0000,0x1d000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee250000,0x18e000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee400000,0x19000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee540000,0x66000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee4b0000,0x88000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee470000,0x38000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee420000,0x45000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee8d0000,0x21000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee860000,0x6f000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee810000,0x42000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee7d0000,0x40000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee7b0000,0x15000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee730000,0x79000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee6d0000,0x51000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee6b0000,0x12000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee620000,0x85000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee600000,0x1f000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee5e0000,0x1a000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee5b0000,0x26000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  close(0x16)
 27624      1 httpd    RET   close 0
 27624      1 httpd    CALL  close(0x12)
 27624      1 httpd    RET   close 0
 27624      1 httpd    CALL  close(0x13)
 27624      1 httpd    RET   close 0
 27624      1 httpd    CALL  close(0x14)
 27624      1 httpd    RET   close 0
 27624      1 httpd    CALL  close(0x15)
 27624      1 httpd    RET   close 0
 27624      1 httpd    CALL  close(0x11)
 27624      1 httpd    RET   close 0
 27624      1 httpd    CALL  munmap(0xec220000,0x2000000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xeec10000,0x39000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  munmap(0xee900000,0x100000)
 27624      1 httpd    RET   munmap 0
 27624      1 httpd    CALL  close(0xb)
 27624      1 httpd    RET   close 0
 27624      1 httpd    CALL  close(0xa)
 27624      1 httpd    RET   close 0
 27624      1 httpd    CALL  exit(0)


Nothing stands out to me, but maybe someone else has a good idea of what is going on here.

Best Regards,
Al





Home | Main Index | Thread Index | Old Index