Skip Navigation

[Résolu] CPU time limit exceeded

This support ticket is created Il y a 11 mois et 2 semaines. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Ce sujet contient 11 réponses, a 2 voix.

Dernière mise à jour par Minesh Il y a 11 mois et 1 semaine.

Assisté par: Minesh.

Auteur
Publications
#2670431

My hosting provider has informed me that:
florapal.org has reached the CPU time limit.
Can you help me locate where to look for the problem?
Thanks for your help.

#2670737

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please get more information about what request causing that and what is your current setup.

Could you please send me debug information that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/

#2670739

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please get more information about what request causing that and what is your current setup.

Could you please send me debug information that will help us to investigate your issue.
=> https://toolset.com/faq/provide-debug-information-faster-support/

#2671077

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Is the issue is resolved? if no - can you please get more information from your hosting authority that what is actually causing the issue and on what URL I can see the issue? If you can get as much information as you can that will help us to see whats going wrong with your setup.

#2671095

Below is the reply I received from my hosting service when I asked for info:

Hello david

We have replied to your ticket:

#293075 – Re: ️ Service was suspended due to reaching CPU time limit: 5 Fast Sites (20Q3) - florapal.org
Ticket status: Processed
Dear Client,

I have unsuspended your service 5 Fast Sites (20Q3) - florapal.org.
You can view the CPU time load graph using your Fozzy Personal Account - Services - My services - Manage - CPU Time. You can also view the load on the service using the cPanel control panel - Resource usage.
I provide detailed CPU time statistics for 11/30/2023:

┌────────────┬─────────┬────────────────┬──────────┬───────────┐
│ date │ type │ username │ usedtime │ timelimit │
├────────────┼─────────┼────────────────┼──────────┼───────────┤
│ 2023-11-30 │ summary │ florapal │ 126 │ 120 │
│ 2023-11-30 │ lve │ florapal │ 119 │ │
│ 2023-11-30 │ mysql │ florapal │ 7 │ │
│ 2023-11-30 │ │ florapal_wp758 │ 6.62 │ │
└────────────┴─────────┴────────────────┴──────────┴───────────┘
Sincerely, Vitalii Kovalchuk
Fozzy Support
lien caché

Thanks for your help Minesh, much appreciated

#2671205

Hi Minesh,
Got this from my hosting provider 1 hour ago:

Hello david

Your shared hosting account 5 Fast Sites (20Q3) - florapal.org has reached the CPU time limit.

Amount of CP was used over the limit: 1 CP.
The times the limit was reached in the last 7 days: 2 out of 4 allowed.

We understand that this limit can be reached several times accidentally, so we won't suspend your hosting account. Nevertheless, we will be forced to lower your account’s request priority for a day if you reach the limit of 1440 CP per day. Such overloads can affect the server’s stable work and cause significant damage to other clients.

If you know in advance that your sites need more CPU resources, you can order additional CPU time to increase the current limit. This will save your site from being blocked.

#2671271

Got another warning now - 1 more and my hosting will be suspended.

Hello david

Your shared hosting account 5 Fast Sites (20Q3) - florapal.org has reached the CPU time limit.

Amount of CP was used over the limit: 2 CP.
The times the limit was reached in the last 7 days: 3 out of 4 allowed.

We understand that this limit can be reached several times accidentally, so we won't suspend your hosting account. Nevertheless, we will be forced to lower your account’s request priority for a day if you reach the limit of 1440 CP per day. Such overloads can affect the server’s stable work and cause significant damage to other clients.

If you know in advance that your sites need more CPU resources, you can order additional CPU time to increase the current limit. This will save your site from being blocked.

#2671305

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Actually - as shared, you will have to check with hosting authority that what URL is causing this?

- What if you disable the Toolset? Are you still able to see the same notice?
- If such CPU time limit issue happens when only Toolset plugins active - you may check what actually the URL that causing the issue or what request?
- If you are using really light-weight hosting plan then you may want to upgrade the hosting plan that offers more server power and resources.

Here is the server requirement for Toolset:
- https://toolset.com/toolset-requirements/

We can not do much here as this is related to your hosting and we do not have any luxury to access your hosting admin or do not have any administrative control on the hosting you are using.

#2671387

Hi Minesh,
I gave you access to my cPanel, this is the hosting admin isn't it? What can I do there?
If I start disabling plugins then alot of pages won't work, so how would that help to solve
the problem?
Thanks for your help

#2671467

Hi Minesh,
I ask my hosting provider to give me the specific url that was causing CPU time limit to be exceede, and this is the reply I got
Hello, David.

Unfortunately, it is not technically possible to provide the page of the site that causes the most load on your service.

As I see, the main load on your service was caused by PHP scripts. In cPanel -> Resource Usage -> Snapshot, you can see which scripts over what period of time loaded the service the most.

As far as I can see, the main load was caused by index.php file, this is the main file of your site florapal.org, which is executed every time a visitor goes to the site. I checked your site's logs in cPanel -> Raw Access, there were no suspicious IP addresses with a lot of activity coming from them.

In this case, you can try to optimize the performance of your site by connecting a CDN or caching.

Also stressing your service is the admin-ajax.php script, this is typical for WordPress. You can learn how to optimize your site on the next page:

https://stackoverflow.com/questions/22705185/load-time-issues-related-to-admin-ajax-php-with-pingdom-results-link

The limit extension is purchased as an add-on to your service and will be active for the same period as the service itself, also the extension will be renewed along with the hosting service.

If necessary, we will be able to disable the extension when you contact us in a ticket.

Sincerely, Ihor Lukianchuk
Fozzy Support
lien caché

I think this is very helpful, he's suggesting that index.php is the problem, which makes sense 'cause all the searches appear together there. Based on this information what is you suggestion to resolve this issue.

Thanks

#2671625

Hi Minesh,
I've removed 4 search boxes / dropdown lists and will relocate them to a separate page, does that sound like a reasonable solution to the CPU time limit being exceeded?

Thanks for your help

#2672519

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

What if you try to add the search boxes on different page - does that help you to resolve the issue? if yes, then you can move ahead as those search boxes or dropdown boxes will have too many options.