I am using Solaris.X86, apache, and MySQL.
I created a small cgi (Using C with gcc) to retrieve stuff from a local
database.
It get about 50,000 hits a day.
When I using top to see my CPU stats
the program is running perfect (less than 1 sec for each instance with about
%0.50 CPU)
and in most cases I see few instances of my small cgi running.
BUT!!!!
some time one instance of my small cgi is stuck; using upto %60 of the
CPU!!!.
I looked at my code, and I can't find anything that will require so much
CPU. when in the same time the same program take %0.50.
Did it ever happened to you?
What to try to do?

Can you please email me (or cc) your respond to : shai@nbase.com
T H A N K S !