• Resolved yano23

    (@yano23)


    Hi,

    after installing TEC my server had a spike in CPU usage, hosting told me to limit Heartbeat to an interval of 5 min. I can’t just limit that for the whole site because other stuff doesn’t work ok…

    So, is there a way to limit the requests done by TEC? Events are not the priority of the website, so it’s ok some lagging between creating an event and loading in frontend, for instance.

    Thank you,

    Ian

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Support Darian

    (@d0153)

    Hi @yano23

    Thanks for reaching out.

    Is it possible to ask for additional details about the issue of the spike in CPU usage from your hosting provider? This could include access to system logs or other diagnostic data that would allow us to investigate the issue further on our end and come up with a solution.

    Looking forward to your reply.

    Thread Starter yano23

    (@yano23)

    Hi Darian, they sent me these screenshots

    View post on imgur.com

    View post on imgur.com

    Does this help? Looking forward to your reply

    Thread Starter yano23

    (@yano23)

    another picture…this happens when I activate the plugin. Only 2 events created.

    View post on imgur.com

    Plugin Support Darian

    (@d0153)

    Hi @yano23

    Thank you for sharing the additional information related to the issue you are facing.

    I appreciate your effort in providing me with more context. I will make sure to communicate this to the concerned team and keep you updated on any further developments. Thank you for your patience and cooperation.

    Thread Starter yano23

    (@yano23)

    Thank you Darian,

    Would be great if if you could provide to me a snippet as a quick fix, if possible…

    Best

    Plugin Support Darian

    (@d0153)

    Hi @yano23

    Please find below the response from one of our developers:

    I’m not sure I’d recommend disabling anything on?heartbeat?– could be unstable to do this.

    All of WordPress can effect the speed of TEC plugins. So even if they only have 2 events, if they have 1000 posts it could still be slower because of the queries that scan the various shared tables. Perhaps a database cleaner plugin to help optimize. I think this is one I’ve used?https://www.ads-software.com/plugins/advanced-database-cleaner/

    I hope this helps, and please let us know if you have further questions or concerns.

    Thread Starter yano23

    (@yano23)

    Hi Darian,

    Thanks for the help. I’m not following on why a DB cleaner would be of any help when the plugin will continue to scan tables. Is there any way I could limit this scanning behaviour?

    Best

    Plugin Support Darian

    (@d0153)

    Hi @yano23

    When your database may be full of garbage that makes your site sluggish and bloated such as old revisions, orphaned post meta, spam comments, etc. You should clean-up this unnecessary data to reduce your database size and improve website speed and performance.

    https://www.ads-software.com/plugins/advanced-database-cleaner/

    In addition, limiting the number of scans is not advisable since it could affect something else.

    I hope this helps, and please let me know if you have further concerns.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It seems like this thread has been quiet for a bit, so we’ll go ahead and mark it as resolved. However, if any further questions or concerns come up, please don’t hesitate to start a new thread.

    Thread Starter yano23

    (@yano23)

    Hi Darian,

    1. Thanks for the DB info, I know about that though and is not the problem.
    2. “In addition, limiting the number of scans is not advisable since it could affect something else.” I would like to test anyway, can you or can you not help me with a snippet or other way? As of now, the plugin can’t be used for the number of admin ajax requests it makes, so any attempt to control this is worthwhile.

    Thank you, best regards

    Plugin Support Darian

    (@d0153)

    Hi @yano23

    Thanks for your response.

    I already shared this with the team, and I’ll update you as soon as I hear back from them.

    In the meantime, could you provide us the name of your hosting provider and the following information that can be found from Events > Troubleshooting:

    • The Events Calendar, WP and PHP versions
    • max_execution_time
    • memory_limit
    • upload_max_filesize
    • post_max_size

    Please do not share any credentials or any other sensitive information, this is for us to follow the WordPress Forum Guidelines.

    Looking forward to your reply.

    Thread Starter yano23

    (@yano23)

    Hi Darian,

    thank you for the help. Here is the info asked. Best regards.

    Cloudways with Vultr server.

    WordPress version

    6.4.3

    The Events Calendar version 6.3.3.1 by The Events Calendar (https://evnt.is/1x)

    PHP version

    8.1.27

    PHP

    max_execution_time = 600

    memory_limit = 510M

    upload_max_filesize = 100M

    post_max_size = 100M

    Plugin Support Darian

    (@d0153)

    Hi @yano23

    Thank you for getting back to me.

    I have already shared the information you provided with the rest of the team. I will update you as soon as I receive any response or feedback from them.

    Plugin Support Darian

    (@d0153)

    Hi @yano23

    Thanks for patiently waiting.

    Have you tried replicating the problem on your staging site? If you have, the next step would be to disable all of your plugins except The Events Calendar and check if the AJAX requests decrease significantly. If they do, you can then begin to reactivate your plugins one at a time and observe which one is causing the spike in AJAX requests. This will help us pinpoint the root cause of the issue and address it effectively.

    Moreover, please check if WP Query Monitor gives any more details on slow queries or requests that could help narrow down the issue.

    Let me know how it goes.

    Thread Starter yano23

    (@yano23)

    Hi,

    Hope this don’t come as rude, but you could have given me this generic reply at first. I know no one is forcing me to use the plugin, just wanted some help to limit the admin ajax calls. Don’t you guys have any means to do this?

    Best

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Limit hearbeat API, too many processes’ is closed to new replies.