PDA

View Full Version : Server Optimization Request


ArAb4NoKiA
Tue 20th Jun '06, 8:41pm
1 - VPS

2-
cpu speed/type single or dual cpus): Dual Core AMD Opteron(tm) Processor 265 448.591 MHz
how much memory installed: 512MB RAM
hard drive type/configuration: 20 GB
linux distributor or windows version: Centos 4
apache/IIS version: apache 1.3.36
PHP version: php 4.4.1
MySQL version: mysql 4.1.19-standard

3- no

4- i don't know http://images.vbulletin.com/images_vb3/smilies/frown.gif because it's VPS

5-

top - 02:34:43 up 3:21, 0 users, load average: 14.37, 7.25, 6.18
Tasks: 166 total, 2 running, 160 sleeping, 0 stopped, 4 zombie
Cpu(s): 14.6% us, 7.4% sy, 0.1% ni, 72.7% id, 5.2% wa, 0.0% hi, 0.0% si
Mem: 8173672k total, 7997528k used, 176144k free, 160056k buffers
Swap: 8289532k total, 3321092k used, 4968440k free, 2360180k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
24222 nokia 16 0 0 0 0 Z 26.5 0.0 0:00.24 php <defunct>
32470 nobody 16 0 15776 13m 12m S 3.3 0.2 0:07.78 httpd
24225 root 16 0 1880 948 1676 R 1.7 0.0 0:00.02 top
1 root 16 0 1616 608 1420 S 0.0 0.0 0:00.51 init
28058 root 16 0 1520 584 1356 S 0.0 0.0 0:00.44 syslogd
31876 named 24 0 60888 8732 4840 S 0.0 0.1 0:00.00 named
31892 root 16 0 3988 1684 3616 S 0.0 0.0 0:00.02 sshd
31902 root 16 0 2068 884 1740 S 0.0 0.0 0:00.01 xinetd
31913 root 17 0 2140 1100 1952 S 0.0 0.0 0:00.01 mysqld_safe
31934 mysql 16 0 217m 75m 6620 S 0.0 0.9 0:00.55 mysqld
31971 root 15 0 9596 8360 2704 S 0.0 0.1 0:00.54 chkservd
32064 mailnull 16 0 7312 1996 6376 S 0.0 0.0 0:00.01 exim
32071 mailnull 16 0 7312 2012 6376 S 0.0 0.0 0:00.01 exim
32086 mailnull 19 0 7312 1976 6376 S 0.0 0.0 0:00.00 exim
32101 root 16 0 2900 1496 2424 S 0.0 0.0 0:00.30 antirelayd
32123 root 16 0 22288 12m 2036 S 0.0 0.2 0:01.56 clamd
32128 root 16 0 24268 21m 3704 S 0.0 0.3 0:00.82 spamd


6-
[mysqld]
safe-show-database
set-variable = max_connections=500
skip-locking
connect_timeout=15
key_buffer=32M
join_buffer=1M
record_buffer=1M
sort_buffer=2M
table_cache=1028
thread_cache_size=286
max_allowed_packet=50M
wait_timeout=15
query_cache_limit=2M
query_cache_size=64M
query_cache_type=1
thread_concurrency=2


7-
MySQL 4.1.19-standard uptime 0 3:18:50 Wed Jun 21 02:32:49 2006
__ Key __________________________________________________ _______________
Buffer usage 22.09M of 32.00M %Used: 69.02
Write ratio 0.00
Read ratio 0.00
__ Questions __________________________________________________ _________
Total 109.94k 9.22/s
QC Hits 52.72k 4.42/s %Total: 47.96
DMS 46.09k 3.86/s 41.92
Com_ 6.02k 0.50/s 5.48
COM_QUIT 5.01k 0.42/s 4.56
+Unknown 90 0.01/s 0.08
Slow 608 0.05/s 0.55 %DMS: 1.32
DMS 46.09k 3.86/s 41.92
SELECT 32.78k 2.75/s 29.82 71.12
UPDATE 9.17k 0.77/s 8.34 19.89
INSERT 3.11k 0.26/s 2.83 6.75
DELETE 751 0.06/s 0.68 1.63
REPLACE 284 0.02/s 0.26 0.62
Com_ 6.02k 0.50/s 5.48
change_db 4.95k 0.41/s 4.50
lock_tables 478 0.04/s 0.43
unlock_tabl 478 0.04/s 0.43
__ SELECT and Sort __________________________________________________ ___
Scan 11.40k 0.96/s %SELECT: 34.78
Range 6.60k 0.55/s 20.13
Full join 2 0.00/s 0.01
Range check 0 0.00/s 0.00
Full rng join 0 0.00/s 0.00
Sort scan 5.29k 0.44/s
Sort range 3.97k 0.33/s
Sort mrg pass 625 0.05/s
__ Query Cache __________________________________________________ _______
Memory usage 4.75M of 64.00M %Used: 7.42
Block Fragmnt 16.79%
Hits 52.72k 4.42/s
Inserts 31.91k 2.67/s
Prunes 1 0.00/s
Insrt:Prune 31.91k:1 2.67/s
Hit:Insert 1.65:1
__ Table Locks __________________________________________________ _______
Waited 406 0.03/s %Total: 0.54
Immediate 74.98k 6.28/s
__ Tables __________________________________________________ ____________
Open 243 of 1028 %Cache: 23.64
Opened 258 0.02/s
__ Connections __________________________________________________ _______
Max used 54 of 500 %Max: 10.80
Total 5.08k 0.43/s
__ Created Temp __________________________________________________ ______
Disk table 1.70k 0.14/s
Table 3.74k 0.31/s
File 1.19k 0.10/s
__ Threads __________________________________________________ ___________
Running 12 of 13
Cache 41 %Hit: 98.94
Created 54 0.00/s
Slow 0 0.00/s
__ Aborted __________________________________________________ ___________
Clients 132 0.01/s
Connects 2 0.00/s
__ Bytes __________________________________________________ _____________
Sent 1.01G 84.72k/s
Received 27.57M 2.31k/s


8- no only vb

9 - the max maybe 200 the cookie timeout 900

10 -
http://www.nokia4arab.net/phpinfo.php

11-
KeepAlive Off
MaxKeepAliveRequests 0
KeepAliveTimeout 50
MinSpareServers 50
MaxSpareServers 100
StartServers 10
MaxClients 750
Maxrequestsperchild 1000

12- 3.5.4

13 - no there is not

14 - uname -a
Linux server.nokia4arab.net 2.6.8-022stab078.4-enterprise #1 SMP Mon May 22 20:32:02 MSD 2006 i686 athlon i386 GNU/Linux

ulimit -aH
core file size (blocks, -c) 1000000
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 4096
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 14335
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited


cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 33
model name : Dual Core AMD Opteron(tm) Processor 265
stepping : 2
cpu MHz : 448.591
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext lm 3dnowext 3dnow pni
bogomips : 3522.56
processor : 1
vendor_id : AuthenticAMD
cpu family : 15
model : 33
model name : Dual Core AMD Opteron(tm) Processor 265
stepping : 2
cpu MHz : 448.591
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext lm 3dnowext 3dnow pni
bogomips : 3579.90
processor : 2
vendor_id : AuthenticAMD
cpu family : 15
model : 33
model name : Dual Core AMD Opteron(tm) Processor 265
stepping : 2
cpu MHz : 448.591
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext lm 3dnowext 3dnow pni
bogomips : 3579.90
processor : 3
vendor_id : AuthenticAMD
cpu family : 15
model : 33
model name : Dual Core AMD Opteron(tm) Processor 265
stepping : 2
cpu MHz : 448.591
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext lm 3dnowext 3dnow pni
bogomips : 3579.90

eva2000
Wed 21st Jun '06, 11:33am
try the following

1. Upgrade MySQL server to 4.1.20 http://www.vbulletin.com/forum/showthread.php?t=186856
2. Upgrade PHP to 4.4.2 if you use phpadsnew make sure to update to phpadsnew 2.0.8 or higher to work with PHP 4.4.1/4.4.2
3. Edit /etc/my.cnf and place the following mysql server settings in /etc/my.cnf and restart mysql server afterwards


[mysqld]
safe-show-database
back_log = 75
skip-innodb
max_connections = 500
key_buffer = 32M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1800
thread_cache_size = 384
wait_timeout = 50
connect_timeout = 10
tmp_table_size = 64M
max_heap_table_size = 64M
max_allowed_packet = 64M
max_connect_errors = 10
read_rnd_buffer_size = 524288
bulk_insert_buffer_size = 8M
query_cache_limit = 4M
query_cache_size = 64M
query_cache_type = 1
query_prealloc_size = 163840
query_alloc_block_size = 32768
default-storage-engine = MyISAM

[mysqld_safe]
nice = -5
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

[myisamchk]
key_buffer = 64M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M

[mysqlhotcopy]
interactive-timeout


if mysql doesn't start after the new my.cnf you might be using a control panel which uses innodb so remove the bold line for skip-innodb and restart mysql

4. Install APC Cache lastest version from http://pecl.php.net/package/APC. Read install guide at http://www.vbulletin.com/forum/showthread.php?t=165367 - please remove Zend Optimizer from php.ini before installing APC Cache

5. Edit httpd.conf values

from

KeepAlive Off
MaxKeepAliveRequests 0
KeepAliveTimeout 50
MinSpareServers 50
MaxSpareServers 100
StartServers 10
MaxClients 750
Maxrequestsperchild 1000

to

KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 5
MinSpareServers 10
MaxSpareServers 15
StartServers 10
MaxClients 150
Maxrequestsperchild 500

restart apache server

6. If you just upgraded to vB 3.5.x try to disable these 4 options:

Admin CP -> vBulletin Options -> Forums Home Page Options -> Display Logged in Users?

Admin CP -> vBulletin Options -> Forum Display Options (forumdisplay) -> Show Users Browsing Forums

Admin CP -> vBulletin Options -> Thread Display Options -> Show Users Browsing Thread

Admin CP -> vBulletin Options -> Message Searching Options -> Automatic Similar Thread search

ArAb4NoKiA
Wed 21st Jun '06, 3:24pm
Hello,

thank you

put i have a high load at the VPS

some times 49 and like that

do you know the problem ??

Regards,

eva2000
Thu 22nd Jun '06, 8:44am
VPS cpu load isn't it server wide so it includes usage by other VPS sites ?? ask your web host about this as well ask them how many VPS sites share the server and if they would put you on a less crowded VPS server

ArAb4NoKiA
Thu 22nd Jun '06, 12:37pm
Hello,

i talk to thim but they said the server is mostly empty and my VPS is making the high load in the node

but there is only 4 sites and one forum

and the load is from the load

!!!!

Regards,

eva2000
Fri 23rd Jun '06, 8:05am
so you did my suggestions in post #2 above ? please do those first

if you done those and still get unusually high loads with centOS linux, maybe ask web host to look at kernel update - read and point web host to http://www.vbulletin.com/forum/showthread.php?t=171071