سؤال

I have load tested basic jomsocial site (without external extensions) using JMeter for 200 concurrent users/threads.

That causes Database connection error.

We are already using jomsocial. Our site has 30,000+ members. During some specific time span, site gets traffic load. We observed that, site crashes for heavy traffic.

We will be having more online users in the future.

Few questions regarding the above scenario.

  1. Is it joomla/jomsocial issue?
  2. Are the joomla/jomsocial queries/code optimized?
  3. How can I avoid the crashing of website?

Any help is appreciated.

Thanks

هل كانت مفيدة؟

المحلول

Both Joomla and Jomsocial offer a very high customization and are both feature rich, they will never be as optimized as a custom-written query.

That said, you should not have run into such limit yet.

Configuration/server Make sure

  • your database server configuration is adequate to your memory size
  • you are using Joomla cache wherever possible
  • you are not using any plugins / extra features which are not necessary
  • you are using Jomsocial cron jobs for sending mail and maintenance and
  • you did all that's documented on their site to make it faster
  • you are using at least Jomsocial 2.8 as it's faster than 2.6

One last thing that will really boost your server performance is SSD drives.

Optimize code

Once that's done, turn on "slow query logging" in your mysql and find out which queries are the worst. Also turning on debug in the joomla frontend may give you a hint. The purpose is to find the modules / components which behave worst and manually optimize them. It's a natural process which all large sites run into sooner or later.

Eventually when you have thousands of concurrent users you will necessarily move some tables to mongo, usually the user feeds are the first but keep an eye on your site.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top