Topic-icon huge RAM spikes with Facebook registration

Active Subscriptions:

None
9 years 7 months ago #59923 by CherylV
Hi -

I recently installed JFBConnect on my JomSocial site and am finding that my site crashes with a 503 error every time a new user signs up using the JFBC Facebook connect button. I don't yet know if the same problem occurs with Twitter sign ups; so far I've isolated it to FB.

Looking at server logs, each of these sign ups is creating a spike from about 1 GB real memory / 2 GB cached memory [baseline usage] to 4.99 real memory and 5.51 cached memory [immediately upon sign up]. This is with a total of something like 170 unique users per day and a max of about 15 simultaneous users, yet for the time-being I've had to increase my hosting significantly AND block all search engine/web crawler traffic just to keep the site alive.

Please help me to understand why this plugin is causing such disruptive traffic spikes - and to fix it!

Thanks,
Cheryl
The topic has been locked.
Support Specialist
9 years 7 months ago #59936 by alzander
Cheryl,
I'm at a loss as to what could possibly be causing what you describe. JFBConnect is used on a wide variety of hosts, including very cheap hosting plans with much, much less memory than you describe above.

My immediate suggestions would be to:
* Make sure Debug Mode in the Joomla Global Configuration area is off
* Make sure Enable Debug Mode in JFBConnect is set to "No"
* Set the Caching option in JFBConnect to 15 (or more)
If none of those help or were already configured that way:
* Disable any Social Profile plugins you have enabled and test again. If the spike occurs with them enabled, but goes away when not, try going through the settings in each one and determine if there is a specific setting causing the problem.

Beyond that, I'd recommend testing what the standard memory usage is across a variety of pages on your site. If you enable Debug Mode in the Global Configuration area and have the System - Debug plugin enabled, there should be a very nice output at the bottom of each page showing memory usage and database query logs. On normal pages, JFBConnect usually adds about 1MB and 4-6 db queries (which isn't much). We generally recommend trying to have the db query count under 100 and memory usage under 100MB.

I hope that helps get you started on narrowing things down, but please let us know what you find.

Thanks,
Alex
The topic has been locked.