"Enable Live View" Unchecked, but it's still running
-
I have “Enable Live View” unchecked on the three sites I am trying Wordfence out on. However, it’s still running Live View stats because I get notices in admin that tell me how much memory it has used. For example, here is one that was unsuccessful (others are successful):
Wordfence Live Activity: Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 1679135 bytes) in /home/*******/public_html/wp-content/plugins/wordfence/lib/wfConfig.php on line 686
I thought the whole point of disabling Live View was for those people who do not want to use the memory resources. How can I turn it off?
And I would like to have asked the question in a support ticket at Wordfence, but I cannot unless I am a paid user. I would love to be a paid user, but I cannot become one until I know if I can really disable Live View. Catch 22.
-
Over a week with no reply. I sure would like to pay this company every month, for three sites, but cannot until they address this issue with me. Not going to pay for a subscription just so I can ask a question to see if I want to purchase.
Hello slobizman,
“Live Activity” is different from “Live Traffic”. “Live Traffic” is a visual log of all traffic coming in to your site. It includes ALL requests to your site, whether Wordfence reacted to them or not. The “Live Activity” ticker on the other hand is just a small indicator that shows how Wordfence is currently protecting your site.If the Wordfence page “Live Traffic” says that “Live Traffic is disabled”, it’s disabled. To figure out what is hogging resources on your site and possibly making it run out of PHP memory you can try running the P3 (Plugin Performance Profiler). It will tell you how much memory each of your plugins are using.
Thank you very much for your reply. I installed the Performance Profiler and it didn’t show any issues. I used the option in WordPresss to check if I have over 80 MB available for Wordfence and I do.
On two of my three sites under Wordfence/Scan in the Scan Summary Window, the only scan it shows is May 3 (two days ago) and two of the items are still running. Both “Comparing core WordPress files against originals in repository” and “Comparing core WordPress files against originals in repository”, rather than showing Done, Success or some other status to the right, it shows the little animated bars icon that I assume means that the process is still active. I don’t know why it should still be active. Shouldn’t it have stopped (especially considering the next scan box “Detailed Activity” shows subsequent daily scans have been executed since then)?
It may be that just 15 seconds after the time of these two still “ongoing” processes, I see in the Detailed Activity box that it exhausted memory ([May 03 10:58:34] Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 1365628 bytes) in /home/*****/public_html/wp-content/plugins/wordfence/lib/wfConfig.php on line 686)
Again, this is happening on two of my three sites.
1. Could there be a problem because my sites might be scanning at the same or overlapping times with each other? Should I set them to go off at different times (by a wide margin so they complete)?
2. How do I stop the processes that are apparently still running (according to the icons). Or are those icons just “stuck” and the the processes are not really still running?
Hello slobizman,
Do you have several separate installations of WordPress running next to each other on the same hosting account?“Do you have several separate installations of WordPress running next to each other on the same hosting account?”
They run on my dedicated server, each on their own cpanel.
Thanks slobizman,
I suppose it depends on the server and the amount of traffic but it seems to me like it shouldn’t be a problem hosting 3 WordPress sites on a dedi server.1. If they are scanning at the same time and you also have a lot of traffic on your site that could of course be a problem. Then each site would only have a third of the resources it expects to have. You can try setting it to scan automatically during a time where you know there is low traffic on your site, and yes, set them to scan at different times. It all depends on what you include in a scan (under Scan options in Wordfence Options) and how many files you have on your server but I would think an hour apart should be enough.
2. Right under the button “Start a Wordfence Scan” there is a small link that says “Click to kill the current scan.” This should stop any scan that is currently trying to complete.
Thank you very much for all the prompt answers. Yes, I have a pretty powerful server that only really runs three websites, with a combined traffic of about 35,000 page views a day. So it’s not overtaxed, and have never had any performance issues with it.
Since I have to subscribe to schedule — again, I’d love to subscribe but need to first see if this issue can be resolved — I thought of something to try. I unchecked the enabling of automatic scan on all sites. Then, on one of the two sites that give me fatal errors on the memory, I started a scan manually. It didn’t take long for the same error to occur. As it got to “Fetching list of known malware files from Wordfence,” it’s got stuck. Stuck here:
[May 06 16:09:23]Fetching list of known malware files from Wordfence …
Looking down at the detailed activity, here’s the error, which occurred just one second later.
[May 06 16:09:24] Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 76 bytes) in /home/******/public_html/wp-content/plugins/wordfence/lib/wordfenceHash.php on line 85
(Fetching a malware list from Wrodfrence seems like an odd place to run out of memory, no?)
This is run on a Friday evening (slow time) on one of the sites that would get about just 5,000 page views days.
Well, I ran that one site on a manual scan basis, and it still go hung up on the Fetching Malware list part. So, it’s it’s not competition for resources. There’s something else wrong.
I cancelled the scan. Let it go for five hours or so.
Hello again slobizman,
Just a few things to check here. On the Wordfence “Diagnostics” page does everything look ok there? (Able to connect to Wordfence servers etc.) What’s your server setup? (Are you using LiteSpeed?) Does it help to increase the amount of memory WordPress is allowed?First of all, I appreciate you continued assistance…
So, my Diagnostics looks fine, as much as I can tell. I don’t know if I have LightSpeed, I’ve never heard that mentioned or seen in anywhere on my cpanels or WHM.
Is this following of interest? My dedicated server has 8GM memory. But when I run Wordfence’s Check Memory function in diagnostics, it shows:
Current maximum memory configured in php.ini: 96M
Current memory usage: 56.25M
Setting max memory to 90M.
Starting memory benchmark. Seeing an error after this line is not unusual. Read the error carefully
to determine how much memory your host allows. We have requested 90 megabytes.
Completing test after benchmarking up to 80.25 megabytes.But also on that diagnostics page it shows my two WP memory limit settings set at 256MB.
I saw I had no php.ini file in my home directory, so I put one in with the 256MB limits. But then the test still so what I pasted above, “Setting max memory to 90M”.
I don’t understand enough about this end of this, does it sound somewhere my memory is simply not set high enough for the two larger sites (my smaller one works)?
Thanks again.
Hello slobizman,
if you have a dedicated server you should be able to increase max memory in php.ini directly. 96M is a bit low. (The memory mentioned here is just PHP memory, The 8G memory is probably the RAM memory for your dedicated server.)If you don’t know where your php.ini file is, you can locate it by creating a .php file anywhere in your web root and put this code in (delete the file when you are done)
<?php echo php_ini_loaded_file(); ?>
Once you find the php.ini file, you edit this row
memory_limit = 96M
to say
memory_limit = 256M
Unfortunately, I just have to give up. Wordfence scanning simply uses too much memory. I had a global limit on my server, but the web host changed things to allow me to override it per site with PHP.ini.
I took one site (my medium-sized one in terms of pages, plugins, traffic) and raised the memory limit and ran the scan. First time was 128 and it exhausted memory. Second time was 192 and it went further but then ran out of memory. Third time was 256, which got even further along and then exhausted memory. I then tried 256 on another site, and it ran out of memory too.
I told my web host thanks, but I’m going to give up on Wordfence for scanning, despite how cool it is. I was ready to buy it for three sites, but now I’ll see if there is still anything worthwhile running the free version for some of the features other than scanning.
Appreciate your help on this, though.
Hello slobizman,
we are working on performance issues for sites with less memory so hopefully that will improve in the near future.I recently had another user who managed to solve this by excluding image files from scan. If you ever feel up to giving it another shot, you can try excluding these wildcards
*.pdf *.jpg *.png
Enter that in the setting “Scans to include”/”Exclude files from scan that match these wildcard patterns.”
I might try that. What about potentially huge files like tar and zip files?
Well, I just tried it (with the addition of *.zip and*. tar) and it didn’t work.
- The topic ‘"Enable Live View" Unchecked, but it's still running’ is closed to new replies.