Ritesh Ksheersagar
Ritesh Ksheersagar

Reputation: 562

Why does the website gradually slow down?

My website turned slow suddenly today. My site is built on php, mysql,JS. This site has been running properly for a long time and all of a sudden it became too slow. i had only 30 users on the site. and normally we have more that 100 at one time.

What i have noticed is: the site becomes faster as soon as i restart the php-fpm55

now i do not know how to actually figure out what the problem is?

What logs do i need to check?

Where do I need to add break points to?

Upvotes: 0

Views: 376

Answers (1)

raphael75
raphael75

Reputation: 3238

There are a lot of factors that go into the speed of a site.

  • check webserver logs (DDOS attack?) - if you know exactly when the slowdown occurs, you should be able to see what was requested just before it happened
  • check mysql process list to see if there are runaway processes
  • if using Linux, use top or htop to check your CPU and memory usage (or Task Manager in Windows)
  • is it slow for only certain users? All users? Have each user run speed tests to make sure the problem isn't on their end.
  • run a speed test on the webserver
  • is the slowdown is on all pages or only certain ones? Check the code to see if something changed. (maybe you got hacked?)
  • restart apache and mysql
  • etc.

Upvotes: 2

Related Questions