Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[#3981] Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes)

11 years 6 months ago - 11 years 6 months ago #225510 by deltafidesign
When I try visit my profile I got this error:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in <span>/</span>home<span>/</span>mysite/public_html/administrator/components/com_comprofiler/library/cb/cb.database.php on line 1152

I can navigate the entire site, also some other user profiles (not all profiles just some...) but not my profile.

J! 3.0.3
CB 1.9
GJ 2.7
Last edit: 11 years 6 months ago by krileon.

Please Log in or Create an account to join the conversation.

11 years 6 months ago - 11 years 6 months ago #225516 by deltafidesign
ADD to previous post.

It seems that I have too much users.

This is my case:

I have about 14.000 fake users created with CBJuice.

An auto action add those users to several GJ groups at registration. So I have that every user is auto-subscribed at about 30 groups.

This way I have 30 groups with 14.000 users per group.

If I try to open a group I have a memory size exhausted error.

After deleting 2000 users, now I can see again my user profile, but still with 12.000 users per group I cannot open any group. If group's users stay around 500-6000 users per group, it load with 512MB memory limit.
Last edit: 11 years 6 months ago by deltafidesign.

Please Log in or Create an account to join the conversation.

11 years 6 months ago #225519 by deltafidesign
Sorry for 3th UP...

I've setted memory limit to 2GB to make a test. Now I can open a group with 12.000 users, but it's very slow to open.

Obviously I cannot use 2GB of memory to run this app. Maybe GJ is non able to manage lot of users per group...?

Is there a solution to optimize this?

What would happen with 100.000 users per group?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225542 by krileon
No idea, I've never had a group with 12,000 users so its never been tested. I'll need to create a ton of fake users and add them to a group then profile it to see where it's slowing down. Have created a bug ticket to investigate below.

forge.joomlapolis.com/issues/3981


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

11 years 6 months ago #225543 by deltafidesign
In the meanwhile I'm re-creating a completly fresh J!+CB+GJ site on local server to test it too.

I've created 32 groups and I'm trying to add 12.000 fake users to every group to be sure to reproduce the same issue even on a fresh installation.

If you want, I could give you an account to investigate on the production live site.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225545 by krileon
Am preparing my install with a large amount of users. I need to deep xDebug Profile so need to work from my local. Please do continue tests though. If you can isolate it to a specific feature, etc.. that would be great too. It certainly is a memory leak; I just don't know where yet. I'm guessing in the group user counting or access checking function.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: deltafidesign

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum