Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Frequent peak in cpu usage

  • dirk999
  • dirk999's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 7 months ago #158924 by dirk999
Frequent peak in cpu usage was created by dirk999
Hi all,
Apologies if I’m posting this in the wrong forum.
I'm having a problem with excessive CPU usage occurring about every hour, sometimes a few times in a row (e.g. 5:56, 6:04, 6:08 and then 7:01).
I have Limesurvey version 2.67.2+170719, installed with Installatron. I'm currently using PHP 5.6; when the problem first occurred I was using PHP 7.1.
I was wondering whether anyone knows if and how Limesurvey might be causing such peaks in cpu usage?
Many thanks
The topic has been locked.
More
6 years 7 months ago #158930 by jelo
Replied by jelo on topic Frequent peak in cpu usage

dirk999 wrote: I'm having a problem with excessive CPU usage occurring about every hour, sometimes a few times in a row (e.g. 5:56, 6:04, 6:08 and then 7:01).

Since LimeSurvey is only running when triggering a php-page you might just disable access to LimeSurvey scripts to see if the peaks are gone. You would need to wait till you no longer have a running, active survey.
Depending on your OS I would check cron jobs (Linux,OSX) or task scheduler (Windows). There might is a hourly job running.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: dirk999
The topic has been locked.
  • dirk999
  • dirk999's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 7 months ago #158932 by dirk999
Replied by dirk999 on topic Frequent peak in cpu usage
Thanks Jelo, seems sensible to look into cronjobs, I’ve asked my internet provider if they can check whether something’s still running that I’m not aware of. I was curious though whether there might be some sort of process that Limesurvey triggers at regular intervals (I’m afraid I can’t currently interrupt Limesurvey due to a running survey...)
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 7 months ago #158938 by DenisChenu
Replied by DenisChenu on topic Frequent peak in cpu usage

dirk999 wrote: … might be some sort of process that Limesurvey triggers at regular intervals…

LimeSurvey CAN NOT trigger something at regular interval, because server didn't add CRON itself …

jelo already answer on this part : if it's really every hour at same minutes : i's a cron job set by you or your hoster.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: dirk999
The topic has been locked.
  • dirk999
  • dirk999's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 7 months ago #158942 by dirk999
Replied by dirk999 on topic Frequent peak in cpu usage
Thanks for the clarification!
The topic has been locked.
More
6 years 7 months ago - 6 years 7 months ago #158949 by jelo
Replied by jelo on topic Frequent peak in cpu usage

DenisChenu wrote: if it's really every hour at same minutes : i's a cron job set by you or your hoster.

You get the same behavior if someone is monitoring the survey installation from a external site. E.g. Screenscraping the surveylist. So checking for cron jobs AND checking logfiles of webaccess might show the source of CPU peak. Depending on the server setup (hardware virtualization, RAID-Controller or filesystem check routines) might be worth a look too. What kind of hosting is used? Shared hosting, virtual server, dedicated server?
If you have access to the shell you can use tools like htop, iftop and iotop to watch the activities on the server a bit closer.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 6 years 7 months ago by DenisChenu. Reason: quote fix ;) else : yes : good idea !
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • dirk999
  • dirk999's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 6 months ago #159040 by dirk999
Replied by dirk999 on topic Frequent peak in cpu usage
Thanks for the further suggestions jelo! I currently have a survey running, when it's finished I'm going to dig a little deeper.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose