title: cron jobs bring down the server?
body: <p>I am using the paid host Hosting24 to run my website. I got a cron job which execute the following code every 1 minute.</p>
  
  <pre><code>&lt;?php 
  
  require_once('connect.php');
  
  for($c = 0; $c &lt; 60; $c=$c+5)
  {
      // php to mysql queries SELECT/ UPDATE/ INSERT etc...
  
      sleep(5);
  }
  
  mysql_close($my_connection);}   
  ?&gt;
  </code></pre>
  
  <p>I tried to use the for loop to allow the script to run for 1 minute. Eventually my script should run for as long as I want it to be because the server will execute it every 1 min.</p>
  
  <p>However, I opened my website for a short while and then I cannot connect to it. I cannot even access my cpanel.</p>
  
  <p>Is my cron job script overheating the system, so the system is down?
  How should I set up my cron job script to let it run every 1 min and lasts for 1 min?</p>
  
  <p>Thanks.</p>