Red Hat Topics - HELP: cgi-bin script taking 100% CPU - strace shows nothing

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Topics > November 2005 > HELP: cgi-bin script taking 100% CPU - strace shows nothing





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author HELP: cgi-bin script taking 100% CPU - strace shows nothing
G Dahler

2005-11-25, 5:47 pm

I have a process taking almost 100% CPU (according to top) but doing an
"strace -f -p PID_of_the_process" shows nothing, the process seems to be
sitting there doing nothing even tough its eating the CPU.

This particular process is part of a cgi script.

If I launch the script from the command line or from cron, and I send the
strace output to a file, the process ends normally and quickly.

If the process is running from a cgi-script, it misbehaves. And the strace
command output shows nothing after a certain point.

If I compare the output of the 2 strace files, they are identical with
regard to this program up to a certain system call (access) afterward, the
command line version continues, while the sci-script version does not call
"access", it's last system call is a read from a config file (the same as
the command line version, with the same result)

Any help appreciated, I have to troubleshoot this.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com