bigsoccer tech
Wed 18th Jan '06, 7:50pm
1. Is this on dedicated or shared virual server. If shared, how many sites share this server (ask web host if needed)
Dedicated.
2. your server specs. For example:
4x Web servers: Intel Dual Xeon 2.8 GHz, 2 GB Ram, 2 X 80 GB with Raid 1
2x DB servers: Intel Dual Xeon 2.8 GHz, 8 GB Ram, 3 X 73 GB SCSI U320 10K RPM with Raid 5
2x Load balancers: Dual P4 3.0 ghz, 1gb Ram
Apache/Linux
PHP 4.4.1
MySQL 4.0.24
3. if you use mysql 4.x instead of mysql 3.23.x, do you have any innodb type databases/tables on your server ?
Don't think so.
4. if possible how mysql was compiled/installed
5. your top stats
WEB SERVER 1:
top - 18:00:51 up 14 days, 1:15, 2 users, load average: 0.94, 0.73, 0.62
Tasks: 176 total, 1 running, 174 sleeping, 0 stopped, 1 zombie
Cpu(s): 4.5% us, 0.2% sy, 0.0% ni, 95.1% id, 0.0% wa, 0.1% hi, 0.1% si
Mem: 2074328k total, 1231124k used, 843204k free, 167748k buffers
Swap: 2048276k total, 1232k used, 2047044k free, 409260k cached
6. your mysql configuration variables located at /etc/my.cnf or c:\my.cnf so post the contents inside of my.cnf (minus any passwords of course). If on Windows server if you don't have that file you need to log into telnet and as root user type
Variable Session value Global value
back log 100 100
basedir /virtual/mysql/ /virtual/mysql/
binlog cache size 32768 32768
bulk insert buffer size 16777216 16777216
character set latin1 latin1
character sets latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620 ujis dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5 latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620 ujis dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5
concurrent insert ON ON
connect timeout 10 10
convert character set
datadir /usr/local/mysql/data/ /usr/local/mysql/data/
default week format 0 0
delay key write ON ON
delayed insert limit 100 100
delayed insert timeout 300 300
delayed queue size 1000 1000
flush OFF OFF
flush time 0 0
ft boolean syntax + -><()~*:""&| + -><()~*:""&|
ft min word len 4 4
ft max word len 254 254
ft max word len for sort 20 20
ft stopword file (built-in) (built-in)
have bdb NO NO
have crypt YES YES
have innodb DISABLED DISABLED
have isam YES YES
have raid NO NO
have symlink YES YES
have openssl NO NO
have query cache YES YES
init file
innodb additional mem pool size 1048576 1048576
innodb autoextend increment 8 8
innodb buffer pool size 8388608 8388608
innodb data file path
innodb data home dir
innodb file io threads 4 4
innodb force recovery 0 0
innodb thread concurrency 8 8
innodb flush log at trx commit 1 1
innodb fast shutdown ON ON
innodb flush method
innodb lock wait timeout 50 50
innodb log arch dir
innodb log archive OFF OFF
innodb log buffer size 1048576 1048576
innodb log file size 5242880 5242880
innodb log files in group 2 2
innodb log group home dir
innodb mirrored log groups 1 1
innodb max dirty pages pct 90 90
innodb max purge lag 0 0
innodb table locks ON ON
interactive timeout 28800 28800
join buffer size 2093056 2093056
key buffer size 402653184 402653184
language /virtual/mysql/share/mysql/english/ /virtual/mysql/share/mysql/english/
large files support ON ON
license GPL GPL
local infile ON ON
locked in memory OFF OFF
log OFF OFF
log update OFF OFF
log bin ON ON
log slave updates OFF OFF
log slow queries ON ON
log warnings 1 1
long query time 10 10
low priority updates OFF OFF
lower case file system OFF OFF
lower case table names 0 0
max allowed packet 50330624 50330624
max binlog cache size 4294967295 4294967295
max binlog size 1073741824 1073741824
max connections 2048 2048
max connect errors 10 10
max delayed threads 20 20
max insert delayed threads 20 20
max heap table size 16777216 16777216
max join size 4294967295 4294967295
max relay log size 0 0
max seeks for key 4294967295 4294967295
max sort length 1024 1024
max user connections 0 0
max tmp tables 32 32
max write lock count 4294967295 4294967295
myisam max extra sort file size 268435456 268435456
myisam max sort file size 2147483647 2147483647
myisam repair threads 1 1
myisam recover options OFF OFF
myisam sort buffer size 67108864 67108864
net buffer length 16384 16384
net read timeout 30 30
net retry count 10 10
net write timeout 60 60
new OFF OFF
open files limit 10250 10250
pid file /usr/local/mysql/data/hd-a1813cl.pid /usr/local/mysql/data/hd-a1813cl.pid
log error ./hd-a1813cl.err ./hd-a1813cl.err
port 3306 3306
protocol version 10 10
query alloc block size 16384 16384
query cache limit 2097152 2097152
query cache size 268435456 268435456
query cache type ON ON
query cache wlock invalidate OFF OFF
query prealloc size 16384 16384
range alloc block size 2048 2048
read buffer size 2093056 2093056
read only OFF OFF
read rnd buffer size 520192 520192
rpl recovery rank 0 0
server id 1 1
slave net timeout 3600 3600
skip external locking ON ON
skip networking OFF OFF
skip show database OFF OFF
slow launch time 2 2
socket /tmp/mysql.sock /tmp/mysql.sock
sort buffer size 3145720 3145720
sql mode 0 0
table cache 1800 1800
table type MYISAM MYISAM
thread cache size 16 16
thread stack 126976 126976
tx isolation REPEATABLE-READ REPEATABLE-READ
timezone EST EST
tmp table size 268435456 268435456
tmpdir /tmp/ /tmp/
transaction alloc block size 8192 8192
transaction prealloc size 4096 4096
version 4.0.24-standard-log 4.0.24-standard-log
version comment Official MySQL-standard binary Official MySQL-standard binary
version compile os pc-linux-gnu pc-linux-gnu
wait timeout 900 900
7. your mysql extended-status output which shows entire server's mysql activity status (preferably with a day or 2 worth of mysql uptime for better indication of real activity) either:
This MySQL server has been running for 0 days, 1 hours, 38 minutes and 22 seconds. It started up on Jan 18, 2006 at 04:14 PM.
* Server traffic: These tables show the network traffic statistics of this MySQL server since its startup.
Traffic ø per hour
Received 152,442 KB 92,984 KB
Sent 186,447 KB 113,726 KB
Total 338,888 KB 206,709 KB
Connections ø per hour %
Failed attempts 4,349 2,652.73 3.84 %
Aborted 857 522.74 0.76 %
Total 113,114 68,995.32 100.00 %
* Query statistics: Since its startup, 545,601 queries have been sent to the server.
Total ø per hour ø per minute ø per second
545,601 332,796.27 5,546.60 92.44
Query type ø per hour %
admin commands 2 1.22 0.00 %
alter table 0 0.00 0.00 %
analyze 0 0.00 0.00 %
backup table 0 0.00 0.00 %
begin 0 0.00 0.00 %
change db 107,262 65,425.82 24.80 %
change master 0 0.00 0.00 %
check 0 0.00 0.00 %
commit 0 0.00 0.00 %
create db 0 0.00 0.00 %
create function 0 0.00 0.00 %
create index 0 0.00 0.00 %
create table 0 0.00 0.00 %
delete 2,664 1,624.94 0.62 %
delete multi 0 0.00 0.00 %
drop db 0 0.00 0.00 %
drop function 0 0.00 0.00 %
drop index 0 0.00 0.00 %
drop table 0 0.00 0.00 %
flush 0 0.00 0.00 %
grant 0 0.00 0.00 %
ha close 0 0.00 0.00 %
ha open 0 0.00 0.00 %
ha read 0 0.00 0.00 %
insert 25,065 15,288.72 5.80 %
insert select 0 0.00 0.00 %
kill 0 0.00 0.00 %
load 0 0.00 0.00 %
load master data 0 0.00 0.00 %
load master table 0 0.00 0.00 %
lock tables 0 0.00 0.00 %
optimize 0 0.00 0.00 %
purge 0 0.00 0.00 %
rename table 0 0.00 0.00 %
Query type ø per hour %
repair 0 0.00 0.00 %
replace 3,086 1,882.34 0.71 %
replace select 0 0.00 0.00 %
reset 0 0.00 0.00 %
restore table 0 0.00 0.00 %
revoke 0 0.00 0.00 %
rollback 0 0.00 0.00 %
savepoint 0 0.00 0.00 %
select 84,834 51,745.58 19.62 %
set option 0 0.00 0.00 %
show binlog events 0 0.00 0.00 %
show binlogs 9 5.49 0.00 %
show create 0 0.00 0.00 %
show databases 9 5.49 0.00 %
show fields 6 3.66 0.00 %
show grants 0 0.00 0.00 %
show keys 0 0.00 0.00 %
show logs 0 0.00 0.00 %
show master status 0 0.00 0.00 %
show new master 0 0.00 0.00 %
show open tables 0 0.00 0.00 %
show processlist 12 7.32 0.00 %
show slave hosts 2 1.22 0.00 %
show slave status 0 0.00 0.00 %
show status 3 1.83 0.00 %
show innodb status 0 0.00 0.00 %
show tables 91 55.51 0.02 %
show variables 6 3.66 0.00 %
slave start 0 0.00 0.00 %
slave stop 0 0.00 0.00 %
truncate 0 0.00 0.00 %
unlock tables 0 0.00 0.00 %
update 51,093 31,164.83 11.81 %
update multi 0 0.00 0.00 %
* More status variables
Variable Value
Created tmp disk tables 1584
Created tmp tables 3423
Created tmp files 0
Delayed insert threads 0
Delayed writes 3
Delayed errors 0
Flush commands 1
Handler commit 0
Handler delete 6975
Handler read first 16425
Handler read key 2614656
Handler read next 169960347
Handler read prev 130126
Handler read rnd 951759
Handler read rnd next 6781267
Handler rollback 0
Handler update 53877
Handler write 221140
Key blocks used 200562
Key read requests 22062849
Variable Value
Key reads 198805
Key write requests 65779
Key writes 71241
Max used connections 1019
Not flushed key blocks 0
Not flushed delayed rows 0
Open tables 1800
Open files 1879
Open streams 0
Opened tables 49817
Qcache queries in cache 5559
Qcache inserts 77986
Qcache hits 163394
Qcache lowmem prunes 0
Qcache not cached 6766
Qcache free memory 243425968
Qcache free blocks 1855
Qcache total blocks 13584
Rpl status NULL
Variable Value
Select full join 1005
Select full range join 0
Select range 26842
Select range check 0
Select scan 13804
Slave open temp tables 0
Slave running OFF
Slow launch threads 1726
Slow queries 2354
Sort merge passes 0
Sort range 21522
Sort rows 162722456
Sort scan 8119
Table locks immediate 259693
Table locks waited 17868
Threads cached 4
Threads created 11813
Threads connected 108
Threads running 103
8. is your vB the only thing on the server? or other scripts & sites which utilise php and mysql?
Several VBs, but yes.
9. how many average and max concurrent users on your vB forum ? and what your cookie timeout is ?
15 minutes, 1200-2000 between the four sites.
10. create a file named phpinfo.php and place this code in it and post the url/link to it from your web site
www.bigsoccer.com/phpinfo.php
11. if you run Apache and you have your own dedicated server or access to your httpd.conf (apache configuration file) can you post the values you have set for the following :
KeepAlive ON
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 2048
AND Maxrequestsperchild value = 1500
12. what version of vB are you running ?
3.5.3
13. check to see if any files i.e. apache log files are hitting 2GB or 4GB max file size limits i.e. see if you have max file size exceeded messages in apache error log
[root@hd-a1809cl root]# find / -size +2000000k
find: /proc/11497/task/11497/fd/4: No such file or directory
[root@hd-a1809cl root]#
Dedicated.
2. your server specs. For example:
4x Web servers: Intel Dual Xeon 2.8 GHz, 2 GB Ram, 2 X 80 GB with Raid 1
2x DB servers: Intel Dual Xeon 2.8 GHz, 8 GB Ram, 3 X 73 GB SCSI U320 10K RPM with Raid 5
2x Load balancers: Dual P4 3.0 ghz, 1gb Ram
Apache/Linux
PHP 4.4.1
MySQL 4.0.24
3. if you use mysql 4.x instead of mysql 3.23.x, do you have any innodb type databases/tables on your server ?
Don't think so.
4. if possible how mysql was compiled/installed
5. your top stats
WEB SERVER 1:
top - 18:00:51 up 14 days, 1:15, 2 users, load average: 0.94, 0.73, 0.62
Tasks: 176 total, 1 running, 174 sleeping, 0 stopped, 1 zombie
Cpu(s): 4.5% us, 0.2% sy, 0.0% ni, 95.1% id, 0.0% wa, 0.1% hi, 0.1% si
Mem: 2074328k total, 1231124k used, 843204k free, 167748k buffers
Swap: 2048276k total, 1232k used, 2047044k free, 409260k cached
6. your mysql configuration variables located at /etc/my.cnf or c:\my.cnf so post the contents inside of my.cnf (minus any passwords of course). If on Windows server if you don't have that file you need to log into telnet and as root user type
Variable Session value Global value
back log 100 100
basedir /virtual/mysql/ /virtual/mysql/
binlog cache size 32768 32768
bulk insert buffer size 16777216 16777216
character set latin1 latin1
character sets latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620 ujis dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5 latin1 big5 czech euc_kr gb2312 gbk latin1_de sjis tis620 ujis dec8 dos german1 hp8 koi8_ru latin2 swe7 usa7 cp1251 danish hebrew win1251 estonia hungarian koi8_ukr win1251ukr greek win1250 croat cp1257 latin5
concurrent insert ON ON
connect timeout 10 10
convert character set
datadir /usr/local/mysql/data/ /usr/local/mysql/data/
default week format 0 0
delay key write ON ON
delayed insert limit 100 100
delayed insert timeout 300 300
delayed queue size 1000 1000
flush OFF OFF
flush time 0 0
ft boolean syntax + -><()~*:""&| + -><()~*:""&|
ft min word len 4 4
ft max word len 254 254
ft max word len for sort 20 20
ft stopword file (built-in) (built-in)
have bdb NO NO
have crypt YES YES
have innodb DISABLED DISABLED
have isam YES YES
have raid NO NO
have symlink YES YES
have openssl NO NO
have query cache YES YES
init file
innodb additional mem pool size 1048576 1048576
innodb autoextend increment 8 8
innodb buffer pool size 8388608 8388608
innodb data file path
innodb data home dir
innodb file io threads 4 4
innodb force recovery 0 0
innodb thread concurrency 8 8
innodb flush log at trx commit 1 1
innodb fast shutdown ON ON
innodb flush method
innodb lock wait timeout 50 50
innodb log arch dir
innodb log archive OFF OFF
innodb log buffer size 1048576 1048576
innodb log file size 5242880 5242880
innodb log files in group 2 2
innodb log group home dir
innodb mirrored log groups 1 1
innodb max dirty pages pct 90 90
innodb max purge lag 0 0
innodb table locks ON ON
interactive timeout 28800 28800
join buffer size 2093056 2093056
key buffer size 402653184 402653184
language /virtual/mysql/share/mysql/english/ /virtual/mysql/share/mysql/english/
large files support ON ON
license GPL GPL
local infile ON ON
locked in memory OFF OFF
log OFF OFF
log update OFF OFF
log bin ON ON
log slave updates OFF OFF
log slow queries ON ON
log warnings 1 1
long query time 10 10
low priority updates OFF OFF
lower case file system OFF OFF
lower case table names 0 0
max allowed packet 50330624 50330624
max binlog cache size 4294967295 4294967295
max binlog size 1073741824 1073741824
max connections 2048 2048
max connect errors 10 10
max delayed threads 20 20
max insert delayed threads 20 20
max heap table size 16777216 16777216
max join size 4294967295 4294967295
max relay log size 0 0
max seeks for key 4294967295 4294967295
max sort length 1024 1024
max user connections 0 0
max tmp tables 32 32
max write lock count 4294967295 4294967295
myisam max extra sort file size 268435456 268435456
myisam max sort file size 2147483647 2147483647
myisam repair threads 1 1
myisam recover options OFF OFF
myisam sort buffer size 67108864 67108864
net buffer length 16384 16384
net read timeout 30 30
net retry count 10 10
net write timeout 60 60
new OFF OFF
open files limit 10250 10250
pid file /usr/local/mysql/data/hd-a1813cl.pid /usr/local/mysql/data/hd-a1813cl.pid
log error ./hd-a1813cl.err ./hd-a1813cl.err
port 3306 3306
protocol version 10 10
query alloc block size 16384 16384
query cache limit 2097152 2097152
query cache size 268435456 268435456
query cache type ON ON
query cache wlock invalidate OFF OFF
query prealloc size 16384 16384
range alloc block size 2048 2048
read buffer size 2093056 2093056
read only OFF OFF
read rnd buffer size 520192 520192
rpl recovery rank 0 0
server id 1 1
slave net timeout 3600 3600
skip external locking ON ON
skip networking OFF OFF
skip show database OFF OFF
slow launch time 2 2
socket /tmp/mysql.sock /tmp/mysql.sock
sort buffer size 3145720 3145720
sql mode 0 0
table cache 1800 1800
table type MYISAM MYISAM
thread cache size 16 16
thread stack 126976 126976
tx isolation REPEATABLE-READ REPEATABLE-READ
timezone EST EST
tmp table size 268435456 268435456
tmpdir /tmp/ /tmp/
transaction alloc block size 8192 8192
transaction prealloc size 4096 4096
version 4.0.24-standard-log 4.0.24-standard-log
version comment Official MySQL-standard binary Official MySQL-standard binary
version compile os pc-linux-gnu pc-linux-gnu
wait timeout 900 900
7. your mysql extended-status output which shows entire server's mysql activity status (preferably with a day or 2 worth of mysql uptime for better indication of real activity) either:
This MySQL server has been running for 0 days, 1 hours, 38 minutes and 22 seconds. It started up on Jan 18, 2006 at 04:14 PM.
* Server traffic: These tables show the network traffic statistics of this MySQL server since its startup.
Traffic ø per hour
Received 152,442 KB 92,984 KB
Sent 186,447 KB 113,726 KB
Total 338,888 KB 206,709 KB
Connections ø per hour %
Failed attempts 4,349 2,652.73 3.84 %
Aborted 857 522.74 0.76 %
Total 113,114 68,995.32 100.00 %
* Query statistics: Since its startup, 545,601 queries have been sent to the server.
Total ø per hour ø per minute ø per second
545,601 332,796.27 5,546.60 92.44
Query type ø per hour %
admin commands 2 1.22 0.00 %
alter table 0 0.00 0.00 %
analyze 0 0.00 0.00 %
backup table 0 0.00 0.00 %
begin 0 0.00 0.00 %
change db 107,262 65,425.82 24.80 %
change master 0 0.00 0.00 %
check 0 0.00 0.00 %
commit 0 0.00 0.00 %
create db 0 0.00 0.00 %
create function 0 0.00 0.00 %
create index 0 0.00 0.00 %
create table 0 0.00 0.00 %
delete 2,664 1,624.94 0.62 %
delete multi 0 0.00 0.00 %
drop db 0 0.00 0.00 %
drop function 0 0.00 0.00 %
drop index 0 0.00 0.00 %
drop table 0 0.00 0.00 %
flush 0 0.00 0.00 %
grant 0 0.00 0.00 %
ha close 0 0.00 0.00 %
ha open 0 0.00 0.00 %
ha read 0 0.00 0.00 %
insert 25,065 15,288.72 5.80 %
insert select 0 0.00 0.00 %
kill 0 0.00 0.00 %
load 0 0.00 0.00 %
load master data 0 0.00 0.00 %
load master table 0 0.00 0.00 %
lock tables 0 0.00 0.00 %
optimize 0 0.00 0.00 %
purge 0 0.00 0.00 %
rename table 0 0.00 0.00 %
Query type ø per hour %
repair 0 0.00 0.00 %
replace 3,086 1,882.34 0.71 %
replace select 0 0.00 0.00 %
reset 0 0.00 0.00 %
restore table 0 0.00 0.00 %
revoke 0 0.00 0.00 %
rollback 0 0.00 0.00 %
savepoint 0 0.00 0.00 %
select 84,834 51,745.58 19.62 %
set option 0 0.00 0.00 %
show binlog events 0 0.00 0.00 %
show binlogs 9 5.49 0.00 %
show create 0 0.00 0.00 %
show databases 9 5.49 0.00 %
show fields 6 3.66 0.00 %
show grants 0 0.00 0.00 %
show keys 0 0.00 0.00 %
show logs 0 0.00 0.00 %
show master status 0 0.00 0.00 %
show new master 0 0.00 0.00 %
show open tables 0 0.00 0.00 %
show processlist 12 7.32 0.00 %
show slave hosts 2 1.22 0.00 %
show slave status 0 0.00 0.00 %
show status 3 1.83 0.00 %
show innodb status 0 0.00 0.00 %
show tables 91 55.51 0.02 %
show variables 6 3.66 0.00 %
slave start 0 0.00 0.00 %
slave stop 0 0.00 0.00 %
truncate 0 0.00 0.00 %
unlock tables 0 0.00 0.00 %
update 51,093 31,164.83 11.81 %
update multi 0 0.00 0.00 %
* More status variables
Variable Value
Created tmp disk tables 1584
Created tmp tables 3423
Created tmp files 0
Delayed insert threads 0
Delayed writes 3
Delayed errors 0
Flush commands 1
Handler commit 0
Handler delete 6975
Handler read first 16425
Handler read key 2614656
Handler read next 169960347
Handler read prev 130126
Handler read rnd 951759
Handler read rnd next 6781267
Handler rollback 0
Handler update 53877
Handler write 221140
Key blocks used 200562
Key read requests 22062849
Variable Value
Key reads 198805
Key write requests 65779
Key writes 71241
Max used connections 1019
Not flushed key blocks 0
Not flushed delayed rows 0
Open tables 1800
Open files 1879
Open streams 0
Opened tables 49817
Qcache queries in cache 5559
Qcache inserts 77986
Qcache hits 163394
Qcache lowmem prunes 0
Qcache not cached 6766
Qcache free memory 243425968
Qcache free blocks 1855
Qcache total blocks 13584
Rpl status NULL
Variable Value
Select full join 1005
Select full range join 0
Select range 26842
Select range check 0
Select scan 13804
Slave open temp tables 0
Slave running OFF
Slow launch threads 1726
Slow queries 2354
Sort merge passes 0
Sort range 21522
Sort rows 162722456
Sort scan 8119
Table locks immediate 259693
Table locks waited 17868
Threads cached 4
Threads created 11813
Threads connected 108
Threads running 103
8. is your vB the only thing on the server? or other scripts & sites which utilise php and mysql?
Several VBs, but yes.
9. how many average and max concurrent users on your vB forum ? and what your cookie timeout is ?
15 minutes, 1200-2000 between the four sites.
10. create a file named phpinfo.php and place this code in it and post the url/link to it from your web site
www.bigsoccer.com/phpinfo.php
11. if you run Apache and you have your own dedicated server or access to your httpd.conf (apache configuration file) can you post the values you have set for the following :
KeepAlive ON
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 2048
AND Maxrequestsperchild value = 1500
12. what version of vB are you running ?
3.5.3
13. check to see if any files i.e. apache log files are hitting 2GB or 4GB max file size limits i.e. see if you have max file size exceeded messages in apache error log
[root@hd-a1809cl root]# find / -size +2000000k
find: /proc/11497/task/11497/fd/4: No such file or directory
[root@hd-a1809cl root]#