1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 How can I find out when Xenforo Cron runs?

Discussion in 'XenForo Questions and Support' started by Dan Allen, Jun 24, 2016.

  1. Dan Allen

    Dan Allen Active Member

    This is probably really stupid on my part. I looked in crontab -e and don't see any entries that are associated with XenForo. How can I see what the cron tasks are and when they run?
  2. Jeremy P

    Jeremy P Well-Known Member

    You can find them in the Admin CP under the "Tools" tab. XenForo has its own built-in cron system and doesn't use the system cron. They don't run at a particular time though, since a request has to be made for them to be triggered. So it's essentially run on the first request after a certain time.
  3. Dan Allen

    Dan Allen Active Member

    Thank you Jeremy, I see them now.

    The reason I was looking is I am trying to find the cause of a problem we are having with Xenforo. This is a sample of the reports of the problem, which have been made by a few dozen of our site members.

    Twice now while I've been just reading a page, I've had 100% CPU spikes in the browser (enough to basically freeze the computer for 10-20 seconds).

    First on this page around 6.25am MDT,

    next on this page about two minutes later:

    I was looking for something on the server side to be causing this, which is why I was tracking down cron activity. The CPU surge is causing me to suspect this problem occurs in connection with ajax scripts running in the background. All the reports say the problem occurred while a Xenforo page was the active page in their browser. It's been reported on Chrome and FireFox.

    Any suggestions on how we can figure out what is happening and fix it?
  4. Mike

    Mike XenForo Developer Staff Member

    It's very unlikely to be cron. It's possible but unlikely. You'd need to look at your raw web server logs to see if you see a large number of requests to deferred.php at the exact time they're reporting the problem.

    Unfortunately I can't see the thread in question, but it could be something relating to the content of the thread or elements of your style (or ads).
  5. ncbetz

    ncbetz Formerly Noah Betz

    For some reason, when I set the time for midnight, it does 7PM.
  6. rainmotorsports

    rainmotorsports Well-Known Member

    I forget what it goes off. But reference the server time as well as GMT and you will get an idea of what offset you need to use.
  7. Tracy Perry

    Tracy Perry Well-Known Member

Share This Page