VPS Server PHP-CGI Processes Issue

Posted in: Newsmag
Post count: 3

Hi, thanks for a great theme. Imported 30k articles from a legacy news site which slowed the theme down a little (big DB, makes sense I suppose). Problem is when we transferred the domain and the 2k daily active users, it hits the server very hard & quickly.

Now I’m monitoring the server and a single pageload is spawning 100+ php-cgi processes. A couple hits after restarting the server will burn through 4gb in a few minutes and bring it to a halt. MySQL crashes too once things slow down. I’d set all the environment variables as suggested. I’m sure it’s hard to diagnose, but would love any support you can give. Maybe you’ve come across a similar issue already?

Post count: 23312

Hello paulieweb,

Sorry for this inconvenience but please notice that issue is not theme related. Consult your hosting provider and ask them some help because we cannot help you in this case, sorry! First of all, please keep in mind that for good results with our theme, your dedicated server should have the minimum requirements which are specified here -> https://forum.tagdiv.com/newsmag-requirements-for-newsmag/

Thanks for your understanding!

Post count: 9544

Main tricks
1) limit queries ‘per page’ – use maximum of 3 “module elements” per post/page
2) don’t use mega menu with posts
3) use PHP 5.6 and up with opcache ‘on’
4) optimize WP with things like explicit URLs in wp-config.php file
5) to mitigate hacker/bot overloads
— > disable XMLRPC
— > install ‘limit login attempts’ plugin

This helps a *lot* (!).

Post count: 3

Thanks Chris. Had most of those set already, but it just started working today. I disabled all plugins, reset htaccess and cleared/disabled CloudFlare. Then re-added custom htaccess and re-enabled plugins one-by-one. Everything seems fine now, thinking it was a combination of old DNS hanging around + caching conficts with WP Super Cache & CloudFlare. Whatever, it’s working fast now, thanks!

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