LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-15-2009, 04:25 PM   #1
Betzie
LQ Newbie
 
Registered: May 2008
Location: UK
Distribution: CentOS 4.6
Posts: 9

Rep: Reputation: 0
Balance Wordpress and MySQL


Hi -

I have two mini (128 RAM) CentOS5 vps servers w/webmin.

I have my WordPress files on one and MySQL on the other.

The Wordpress server, which has not even had any visitors except me, is at 75% mem capacity. The MySQL server is barely at 20% mem capacity.

Can someone point me at in the general direction to how I can distribute the load across the two vps'?

Thanks in advance for any input,
Betzie
 
Old 01-15-2009, 05:16 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
What are the logs showing? Since WordPress is PHP based, are you running the most up to date version or possibly one that has security flaws?
 
Old 01-15-2009, 06:19 PM   #3
Betzie
LQ Newbie
 
Registered: May 2008
Location: UK
Distribution: CentOS 4.6
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by XavierP View Post
What are the logs showing? Since WordPress is PHP based, are you running the most up to date version or possibly one that has security flaws?
Hi -

I'm using php 5.1.6 and WP 2.7

It seems that when I restart apache, the mem usage drops down, and then 5 minutes later apache starts eating up memory.....



PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 18 0 1640 600 520 S 0.0 0.5 0:02.07 init
1940 root 15 0 7232 5452 1596 S 0.0 4.2 0:03.29 miniserv.pl
3390 root 18 0 1552 528 436 S 0.0 0.4 0:01.98 syslogd
3402 root 18 0 1488 372 308 S 0.0 0.3 0:00.00 klogd
3494 named 24 0 106m 3064 1848 S 0.0 2.3 0:00.08 named
3681 root 15 0 4056 1148 852 S 0.0 0.9 0:05.00 sshd
3855 root 15 0 3740 500 276 S 0.0 0.4 0:00.00 vsftpd
4006 apache 15 0 27568 16m 3104 S 0.0 12.8 0:00.61 httpd
5265 root 15 0 7440 2032 984 S 0.0 1.6 0:03.39 sendmail
5285 smmsp 15 0 6516 1632 832 S 0.0 1.2 0:00.01 sendmail
5337 root 18 0 16328 6580 4252 S 0.0 5.0 0:04.29 httpd
5353 root 15 0 2500 920 532 S 0.0 0.7 0:00.53 crond
8169 apache 15 0 25092 14m 3340 S 0.0 11.1 0:00.45 httpd
18425 apache 15 0 28732 17m 3148 S 0.0 13.7 0:01.04 httpd
19628 root 15 0 6640 1948 1600 S 0.0 1.5 0:00.02 sshd
20095 root 17 0 2888 1232 972 S 0.0 0.9 0:00.00 login
20104 root 16 0 2176 1248 1032 S 0.0 1.0 0:00.00 bash
 
Old 01-15-2009, 06:45 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
http://www.narfstuff.co.uk/2008/03/1...and-wordpress/ and http://perishablepress.com/press/200...for-wordpress/ would point to a solution, I think. I seem to recall that I had to do this sometime ago and it worked.
 
Old 01-15-2009, 07:24 PM   #5
Betzie
LQ Newbie
 
Registered: May 2008
Location: UK
Distribution: CentOS 4.6
Posts: 9

Original Poster
Rep: Reputation: 0
Hi-

Thank you, Xavier.

I actually did raise the php mem limit as well as disable the plugins.

But the mem just skyrockets the minute I fire up WP.

I know WP is mem hungry, but with the db on a seperate server, I can't see why an install with one post would chew up 90 MEG

I think I need to closer look at my sys...

Thanks again!
 
Old 01-16-2009, 05:12 PM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Very odd, at the moment I can only assume that something within either PHP or WP itself is causing this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New to Wordpress subaruwrx General 0 10-31-2007 01:22 PM
Permissions for Wordpress vital_101 Ubuntu 3 10-03-2006 06:53 PM
Installing WordPress on FC5 - Mysql / PHP problem ArthurDent Fedora 1 06-25-2006 05:58 PM
Wordpress (backport) nistelrooy Debian 0 10-17-2005 04:52 AM


All times are GMT -5. The time now is 10:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration