natli
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress hogging all CPUActually, I think super cache doesn’t do *anything* for logged in users. So yea if you do have allot of co-bloggers or commenters it’s probably best to use Quick Cache, although I have never used it before myself.
Forum: Fixing WordPress
In reply to: WordPress hogging all CPUAs it turns out, this is normal wordpress behavior..
What I did was install WP_Super_Cache to prevent PHP from re-generating pages that haven’t been changed.
I’m not sure how this affects plugins like StatPress, but I ended up completely bypassing PHP by using lighttpd with LUA rewriting. An LUA script now checks if a html page is already generated by WP_Super_Cache and servers that page immediately. If not, it continues as it would normally.
I can now serve 100 pages per second With the CPU not even reaching 20%. But I don’t think this would be possible with shared hosting since you probably can’t install lighttpd with LUA support without root access. Nevertheless, using WP_Super_cache will be a big improvement on it’s own!
I still wonder why wordpress uses so much CPU to begin with, though…
Forum: Fixing WordPress
In reply to: WordPress hogging all CPUI couldn’t figure out how to get rid of the blank screen so I made a fresh install with apache2 + mysql + phpmyadmin + wordpress and nothing else. Then I imported the posts from the original wordpress install and this is the result:
https://www.youtube.com/watch?v=97Dnjhw5k5g
Is that load (~80% at 4 to 7 requests per second) normal? It’s an Intel i5-2500 @ 3.3GHz CPU with 1GB RAM. I imported nothing else except the ~10-or-so posts, not even categories.
Forum: Fixing WordPress
In reply to: WordPress hogging all CPUI switched the theme back to TwentyTen and tried both error logging methods, but both php_error.log and wp-content/debug.log remain empty even though they are chmodded to 777. I’m assuming that’s because no errors are found.
The default theme vs. my own theme made no difference either. I’m currently trying to set up another copy on apache2 rather than lighttpd but I keep getting the Blank Page of Death with the following errors;
Notice: Constant ABSPATH already defined in /var/www/xxx/wp-config.php on line 35
Deprecated: Function set_magic_quotes_runtime() is deprecated in /var/www/xxx/wp-settings.php on line 32So I’m currently trying to figure that out.