Cameron Simpson wrote:

> I'd scan /proc/n/fd where n is the pid.
>
>         cd /proc
>         for pid in [0-9]*
>         do  ls $pid/fd | wc -l | awk -v pid=$pid '{print pid ": " $0}'
>         done | sort -n +1
>
> That should get you a listing of pids and the number of open files they
> have, sorted by number of files so your culprit(s) should be at the
> bottom of the list. Then look at /proc/n/cmdline for values of n
> matching the last few pids in the listing. (I've tested that script
> above - it works.)

    This points a finger at the Apache daemon:

562:     118
617:     118
618:     118
619:     118
620:     118
621:     118
etc., etc.

    When looking at the cmd for these PIDs however, some of them are linked, some 
aren't:

$ ls -l 562
    [snip for brevity]
lrwx------    1 root     root            0 Jan 15 09:13 cwd -> //
lrwx------    1 root     root            0 Jan 15 09:13 exe -> 
/usr/local/apache/bin/httpd*

$ ls -l 809
    [snip for brevity]
lrwx------    1 root     root            0 Jan 15 09:13 cwd ->
/usr/local/apache/vhosts/gallery.pcraft.com/htdocs/gallery/Amanda_Griffin/
lrwx------    1 root     root            0 Jan 15 09:13 exe -> 
/usr/local/apache/bin/httpd*

    What's puzzling is the fact that all of the PIDs where the 'cmd' is linked, 
they're all
pointing to the same section in the webspace (gallery.pcraft.com), however, there are 
many
other vhosts on the same machine.  I can't believe it's a coding problem with those 
pages,
they all contain a very simple Javascript.  The same set of pages worked fine on a
different machine, running the same exact version and configuration of the Apache 
server,
only on RH6.2.

    So why is it causing trouble on RH7.0?

    AMK4

--
H | Hi, I'm currently out of my mind.  Please leave a message.  BEEEEP!
  |____________________________________________________________________
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Ashley M. Kirchner <mailto:[EMAIL PROTECTED]>   .   303.442.6410 x130
  Director of Internet Operations / SysAdmin    .     800.441.3873 x130
  Photo Craft Laboratories, Inc.             .        eFax 248.671.0909
  http://www.pcraft.com                  .        3550 Arapahoe Ave, #6
  .................. .  .  .     .            Boulder, CO 80303, U.S.A.




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to