• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Config.xml too big -> php eats the CPU

Scheduled Pinned Locked Moved General pfSense Questions
2 Posts 2 Posters 901 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    nothing
    last edited by Oct 23, 2013, 5:38 PM Oct 23, 2013, 2:49 PM

    I have pfs 2.1 64bit with ~1000 site to site IPsec tunnels configured on machine with Intel Pentium E5300, which is not the fastest CPU in the world but it's not enough to parse the 1.5MB config.xml configuration in reasonable time…
    Loading the dashboard if I have IPsec status on takes ~2-3mins, and in that time php is pressuring the CPU at 100%. The same when I go to Status>IPsec

    Is there any good practices in such case or is there anything I can do (maybe some php optimization) besides upgrading the CPU? Someone else with similar issue?

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Oct 24, 2013, 12:19 PM

      There isn't much you could do for that short of tossing more CPU at it.

      The IPsec status code might need some optimization, it does have to go over and over the entire status output a few times to build things up, so as the number of tunnels increases, the GUI status will be slower. I'm not sure if there is a more efficient way to build the status output though, it's been a few years since I looked at that code.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received