• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • VaultWiki hogs CPU on IIS 10, making forum unusable

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: VaultWiki hogs CPU on IIS 10, making forum unusable

    • Issue Tools
      • View Changes
    1. issueid=5956 February 15, 2020 10:57 AM
      SeToY SeToY is offline
      Junior Member
      VaultWiki hogs CPU on IIS 10, making forum unusable
      VaultWiki hogs CPU on IIS 10, making forum unusable

      Hi there,

      sorry for not being able to provide thorough information - if I can get you anything you need, just tell me what you need exactly.

      I've now experienced (with 4.1 RC 1 and before) that enabling VW on IIS 10 lets the CPU spike to 99% immediately and Windows is creating more and more php-cgi.exe processes. It appears as there is some kind of endless loop or memory leak when using VW with IIS 10.

      When disabling VW everything returns to normal.

      Is there anything I can fetch for you to be able to fix this?

      Cheers
    Issue Details
    Issue Number 5956
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Cannot Reproduce
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.0 RC 1
    Fixed Version (none)
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. February 16, 2020 10:30 AM
      pegasus pegasus is offline
      VaultWiki Team
      You should check your server's access logs to see whether there are unusual duplicate requests that would be spinning up extra PHP instances.

      If it appears to be a deferred task (deferred.php), you may have a huge backlog of incomplete tasks in the vw_defer table, or you may have a task which is stuck in a loop. Check the table for entries that have completed = 0 for clues.

      If it is a different request that is duplicating, we will have to consider that on a case-by-case basis.
      Once you know what request is causing the issue, it may require a ticket to investigate further or to repair the installation: https://www.vaultwiki.org/members/?do=newticket
      Reply Reply  
    2. February 17, 2020 6:25 AM
      SeToY SeToY is offline
      Junior Member
      I currently cannot see anything suspicious in the access logs. vw_defer contains two entries with "completed = 0", both denoted as "import". Another clue might be that it primarily starts happening in the evening, when more people are active on our forums...
      Reply Reply  
    3. February 19, 2020 11:59 AM
      pegasus pegasus is offline
      VaultWiki Team
      I've been searching but I don't see a way that VaultWiki would be able to generate new PHP instances recursively (without suspicious requests), either on its own or if told to access a malicious third-party server that loops the request back. The maximum number of recursive requests possible from what I can see is 2 (on the second request it would hit a lock that was created in the first request, which was designed to prevent this kind of problem).

      If you can cross reference the PHP process logs at the time of the slow downs (looking for processes that time out) with your access logs at the same time, you may be able to determine what requests are leading to an issue, or at least narrow it down. The request state will give us some idea what functions are being used that might be problematic.

      If the PHP processes are never timing out, then you will want to first adjust your PHP configuration so that you have a reasonable timeout like 15-30 seconds (at least for PHP that the public can access -- since you may not want such a limit for command-line PHP). Also, since your server's CPU hits 99% with the number of processes being created, you will want to adjust your config to reduce the maximum number of PHP processes to an amount that the server can handle (such as by dividing the max amount of RAM you want to dedicate to PHP -- less than the amount your server actually has -- by the max amount of RAM you want each request to be able to use). Once you have these limits in place, it will be possible to troubleshoot the underlying problem without causing so many other issues.
      Reply Reply  
    4. February 19, 2020 9:03 PM
      pegasus pegasus is offline
      VaultWiki Team
      If this CPU spike occurs starting at the moment VW is enabled (or disabled) and then subsides until it is enabled/disabled again, then you may be experiencing this known issue which is a design flaw in XenForo: https://xenforo.com/community/thread...idated.172164/

      Since VaultWiki has a large number of templates and phrases, the add-on rebuild process would take longer, resulting in a longer period of constant re-invalidations by XenForo. As discussed in the XenForo bug report, it could be resolved by only invalidating the caches at the end of the entire add-on rebuild process.
      Reply Reply  
    5. February 20, 2020 4:56 AM
      SeToY SeToY is offline
      Junior Member
      Quote Originally Posted by pegasus
      If this CPU spike occurs starting at the moment VW is enabled (or disabled) and then subsides until it is enabled/disabled again, then you may be experiencing this known issue which is a design flaw in XenForo: https://xenforo.com/community/thread...idated.172164/
      Nice guess, but that's not it. It happens when the add-on is "silently" running in the background (as it should in regular production). I'll try to fetch some more information - unfortunately it's rather hard to fetch that when the entire server becomes unresponsible.
      Reply Reply  
    6. October 3, 2020 6:07 PM
      pegasus pegasus is offline
      VaultWiki Team
      Since there has been no further update to this in over six months, I'm going to assume my server-tuning suggestions made a positive impact on the issue. Closing this issue.
      Reply Reply  
    7. October 4, 2020 8:42 AM
      SeToY SeToY is offline
      Junior Member
      Unfortunately not, I simply had to stop using VaultWiki. But thank you for your efforts!
      Reply Reply  
    8. November 23, 2020 3:23 PM
      pegasus pegasus is offline
      VaultWiki Team
      Another idea, could be related to this XF2 bug: https://xenforo.com/community/thread...tances.183693/
      Since VaultWiki is cron-job heavy (multiple new batch jobs every 5 minutes), using VaultWiki dramatically increases the likelihood of triggering XenForo's infinite loop bug. The bug was fixed in XenForo 2.2.0 Beta 2. You may wish to test.

      Even so, my server tuning suggestions earlier would likely have reduced the impact of this bug, if you are using only activity-based cron with no CLI cron.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 8:05 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.