How many users are sufficient to make a heavy load for web application

Posted by galymzhan on Stack Overflow See other posts from Stack Overflow or by galymzhan
Published on 2010-12-20T02:59:28Z Indexed on 2010/12/28 8:54 UTC
Read the original article Hit count: 202

Filed under:
|
|

I have a web application, which has been suffering high load recent days. The application runs on single server which has 8-core Intel CPU and 4gb of RAM. Software: Drupal 5 (Apache 2, PHP5, MySQL5) running on Debian.

After reaching 500 authenticated and 200 anonymous users (simultaneous), the application drastically decreases its performance up to total failure. The biggest load comes from authenticated users, who perform activities, causing insert/update/deletes on db. I think mysql is a bottleneck. Is it normal to slow down on such number of users?

EDIT: I forgot to mention that I did some kind of profiling. I runned commands top, htop and they showed me that all memory was being used by MySQL! After some time MySQL starts to perform terribly slow, site goes down, and we have to restart/stop apache to reduce load. Administrators said that there was about 200 active mysql connections at that moment.

The worst point is that we need to solve this ASAP, I can't do deep profiling analysis/code refactoring, so I'm considering 2 ways:

  • my tables are MyIsam, I heard they use table-level locking which is very slow, is it right? could I change it to Innodb without worry?
  • what if I take MySQL, and move it to dedicated machine with a lot of RAM?

© Stack Overflow or respective owner

Related posts about drupal

Related posts about lamp