Portal Home > Knowledgebase > Articles Database > PHP5, MySQL5 & Apache2 Slow On Debian Leny VPS


PHP5, MySQL5 & Apache2 Slow On Debian Leny VPS




Posted by latheesan, 01-06-2011, 12:14 PM
Hi, I am working on a simple API to retrieve some custom logs from my server. My server is a Debian Leny VPS with dedicated 2 Gb RAM and 1 dedicated core from host machine (which is about 2 Ghz atleast - last I checked). This is the script I am trying to run on my server: log_api.php This is how i call my API from another server: api_test.php When I run the api_test.php from another server to test the "log api", i get the response immediately. When I press F5 again (second time), the response is also returned immediately. When I press F5 for the third time, it takes about 30 seconds (give or take) to get a response. The response also slows down after fourth, fifth ... etc refreshes. However, if i wait a while and refresh the page, this behaviour starts over (first two response is quick, then it slows down). Is this an issue related to my PHP5, MySQL5 or Apache2 configuration? Or is it something to do with my script? Here is my server configs: apache2.conf - http://pastebin.com/y8rSV0em php.ini - http://pastebin.com/Z3N86rKS my.cnf - http://pastebin.com/uP2t8Rvw Any idea..? Last edited by latheesan; 01-06-2011 at 12:18 PM.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
E-insites (Views: 581)
Cached Memory (Views: 565)