Website is freezing and cant login to cpanel
<p>I am new to php web dev and I have been working on a website recently... It was working great on my local server but when I put it up on an actual server it started running really slow until it finally gave up and now I can't even access the website.. or cpanel... I have been doing a little research thinking maybe it had to do with and overload of sql queries but I can't seem to find any... </p>

<p>My site contains a lot of javascript and ajax calls to php scripts which fetch data from the database... (new notifications, messages) and I have stuff like:</p>

<pre><code>//QUESTION RETRIEVAL FOR HOME FEED 
  $(function(){
    $r = setTimeout(alive_retrieval,100);
  });
  function alive_retrieval(){
    $.ajax({
      type:"GET",
      url:"php/alive_questions.php",
      success:function(data){
        $("#alive_question.content").html(data);
      }
    });
    $r = setTimeout(alive_retrieval,100);
  }
  $(function(){
    $t = setTimeout(question_retrieval,100);
  });
</code></pre>

<p>This just keeps calling the alive_retrieval function over and over, which I am guessing could cause my site to be slow...</p>

<p>I don't kno what to post in order to help (code, the link to my website.. or w/e) Please tell me what I should give you guys so you might be able to see what is happening...</p>

<p>When I go to my site address this error pops up from my hosting provider:</p>

<pre><code>Website you were trying to visit was disabled for 5 minutes, because it received over 20% of total server requests.
It means that this website was using over 20% of processor resources, which is above allowed limit.
Website was temporary disabled to protect server from overloading and other websites on server.
</code></pre>
