On Fri, Oct 15, 2004 at 10:46:01AM +0800, victor wrote: > >How are you invoking strace? > > > > > As root I ran /usr/bin/strace -p <httpd process eating up all cpu>
There are other useful arguments to strace; see the manpage for '-f -F -v', and so forth. > We have sorted out the problem on this part it turns out to be a > special case which casued one of the regex run into infinite loop, so no > system call hads been made at all. > > I just wonder is there any other tool out that beside strace I can use > in such situtation? You can use gdb and friends to attach to a process, but that's more useful if you've got debugging complied into your code. > I am sorry I did not save a copy of the lsof output. but is there any > specific detail you are looking for/I should pay extra attention? I tend to _not_ use /proc, and was hoping you would have the opportunity to point lsof at the descriptors in question; this is just in case there was a latency-induced flaw in terms of what details /proc was exposing. That may not be a factor at all, of course, given what you found the problem to be... > > Tor. > -- Brian Reichert <[EMAIL PROTECTED]> 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA BSD admin/developer at large -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html