★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum4/HTML/000077.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  MySQL
  my cgi eating CPU

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   my cgi eating CPU
Merlin
Junior Member
posted September 09, 1999 11:52 PM     Click Here to See the Profile for Merlin   Click Here to Email Merlin     Edit/Delete Message Reply w/Quote
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 !

All times are MST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.