Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Jomsocial is killing our server

8 years 8 months ago
  • Artur's Avatar
    Topic Author
  • Artur
  • Offline
  • Fresh Boarder
  • Posts: 37
  • Thank you received: 2
Licenses:
JomSocial Expired

ISSUE SUMMARY:
We have a fairly large community website with over 14000 user accounts, over 55000 photos etc. When many logged in users visit user profile pages at the same time, our server gets exceptional overload (we have a strong dedicated server, so this shouldn't happen). The MySQL database gets lots of requests like this:

| 34051 | xxxxxx | localhost | xxxxxx | Query | 0 | Waiting
for query cache lock | SELECT * FROM `jos_community_photos` WHERE
`albumid`='2380' ORDER BY `ordering` ASC, `created` DESC |
| 34115 | xxxxxx | localhost | xxxxxx | Query | 0 | Waiting
for query cache lock | SELECT COUNT(*) FROM `jos_community_photos`
WHERE `albumid`='2380' |
| 34184 | xxxxxx | localhost | xxxxxx | Query | 0 | Waiting
for query cache lock | SELECT COUNT(*) FROM `jos_community_photos`
WHERE `albumid`='2380' |
| 34235 | xxxxxx | localhost | xxxxxx | Query | 0 | Waiting
for query cache lock | SELECT COUNT(*) FROM `jos_community_photos`
WHERE `albumid`='2380'

It looks like Jomsocial is not optimised in this area. Please advise ASAP. |
STEPS TO REPLICATE:
1. As a registered user visit any user page on our site, ie. www.tanie-loty.com.pl/profil/6279ewa . You need to be logged in, so the pages won't be cached.

RESULT the page loads very slowly, sometimes it takes more than a minute.
EXPECTED RESULT the page should load quickly
BROWSER any

8 years 8 months ago
Licenses:

Hi,

that repeating query from:
/components/com_community/models/photos.php at getPhotos function.

please try this:
open that file at getPhotos function around line 343 change the code from

$query = 'SELECT COUNT(*) FROM ' . $db->quoteName('#__community_photos') . ' '
to
$query = 'SELECT COUNT(id) FROM ' . $db->quoteName('#__community_photos') . ' '

but my calculation that step will not effected much. that because your site having huge photos. you need to increasing server resources.

Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW