When i press f5 continuously server crashes

Posted in: Newspaper
Post count: 36

Hi!
I have this problem with latest theme of newspaper. Basically when i press f5 key (when refresh page multiple times) my server crashes.
In this moment i’ve isolated the site from the rest of the server , i bought an ssd hosting with 8 gb ram and 8 cores to test it, and despite the resources allocated to it when i press refresh it brings down the whole server, cpu usage is very high.

Ihave all the latest plugins installed. Here is my list o plugins:
Akismet
Wordfence Security
WP Super Cache
WPBakery Visual Composer v4.12.1

I’ve tested the f5 “feature” with a fresh install of wordpress and with another theme from themeforest and both websites are working properly, no server crash and no high cpu load.
Please Tag Div help me!

Post count: 9544

How much RAM allocated to WP in your wp-config.php file and on server ?

Post count: 36

in wp-config i’ve set to 64mb
and on the server side 8 gb

Post count: 9544

try setting to 128M in wp-config.php
and also in your php.ini settings

Post count: 36

done that. Keeps crashing the server.
Thanks for your help Chris.
Over the past 3 days i’ve tried to fix that but no results.
I hope you can help me!

Post count: 22421

Hello,

Please use this guide to increase all the parameters as mentioned here: https://forum.tagdiv.com/system-status-parameters-guide/
Also please try to disable all other plugins except visual composer and wp super cache, clear cache and reset cdn files. Then test again.
Let us know if you still have trouble with this.

Thank you!

Post count: 36

Hi Bogdan!
I followed the guide and this are my settings:
max_input_vars = 5000
max_execution_time = 300
post_max_size = 50M
WP Memory Limit 128 MB/request
I’ve decativated all plugin except visual composer and wp super cache and cleared the cache.
Same as before, 500 internal server error and the cpu load is very high.
Any ideas why this is happening?

Post count: 9544

Might be cache overloading;

might be Visual Composer …

you can try using the BETA “TD COmposer” plugin instead, which uses waaaaaaay less system resources.

Also, make sure you’re on PHP 5.6 and not 5.4 !

Post count: 36

Hi Chris!
I am on php 5.4.16.

Post count: 36

I’ve tried to use BETA “TD COmposer” but with same results.

Post count: 9544

Try php 5.6 — 5.4 is so old now, not recommended!

Seriously. I switched some of our old sites from 5.4 in August, and wow, everything runs soooooo much more smooothly. Really worth doing.

Post count: 36

What about php 7 Chris? Did you have the chance to test it with a live site?

  • This reply was modified 9 years by virjik.
Post count: 9544

I have not yet switched to PHP7 … but it’s even better than php 5.6 which was huge huge difference with the opcache support and speed.

I don’t think current version of Newspaper fully PHP7 compatible yet, so that is the quandry there. Supposedly next version will work with pHP7.

our server allows us to ‘choose’ version PER SITE, so makes it easy to test versions and then go back if it doesn’t work.

Post count: 22421

We will add support for php 7 in our next theme update (hopefully :)) We do plan on it if nothing goes wrong until then that is.
Thanks.

Post count: 36

Hi Bogdan!
Until then, can you help me fix my issue?

Post count: 22421

Please contact us via email at contact@tagdiv.com and provide wp-admin so we can login and investigate why this happens. Please also provide ftp in case we need to access the theme files.
Also include a link to this topic so we can identify you.

Thank you!

Post count: 36

Hi!
I’ve not posted for a while because i’ve runned many tests.
Anyway the problem is far from resolved on my site.
I installed, at Chris recommendation, php 5.6, The site runs a bit quicker, but still the cpu load is high. Is not as high as with php 5.4.16 when it sky rocketed to 100% almost instantly. Now it stays on 84-92 % and after 5-10 seconds with f5 key pressed it throws 500 internal server error like before.
Any thoughts, any ideas are very welcomed.

  • This reply was modified 9 years by virjik.
Post count: 9544

Don’t keep pressing the F5 key ?

Install caching so that only the cached copy is reloaded?

(sorry, that was a little flippant; but no idea …)

Post count: 36

Hi Chris !
Do you have any protection/special firewall config on your server to prevent that?

Viewing 19 posts - 1 through 19 (of 19 total)
The forum ‘Newspaper’ is closed to new topics and replies.