November 16th, 2004, 08:23 AM
As you know, I developed several applications in C for my website - the reason to use C was because Perl was to slow and heavy to perform such tasks. Even so, I must be carefull because the website has 200 unique visitors per day. If they all use the same application at the same time...well...the server will crash ( almost happen 3 times a long time ago ).
Some scripts only allow the entrance of one person at the time, for example. It's complicated.
But I was thinking if there's a way to control the ammount of memory and CPU usage of a script? Is it possible, in C or Perl or Php,etc...to monitor a file at this level?
What do you think?