Slow server performance on ecommerce website
<p>I have an ecommerece website with over a million products. Its running on debian 7, with apache2.2 , php5.4 , mysql 5.5 and laravel 4.1. It used to run smoothly, but lately it has become very slow.</p>

<p>I think It's because of amount of mysql queries to the server. I've used various mysql tools and found that that queries per second is very high (1000-2000). Although when im logging requests to the site and queries made It isn't nearly as much. </p>

<p>Also I haven't made much changes lately to the code and since it used to run ok, im not sure if the amount of queries is the problem (not sure how much it was when everything was ok). </p>

<p>Im looking for any ideas how to debug or find out what's wrong. The amount of users on page hasn't changed. There are about the same amount of request. I have some caching in place. But since I've got so many product pages and most of the users visit different pages so cache has little effect there. Any ideas how to make a better cache for that many product pages?</p>