PDA

View Full Version : Configuration


Dell
Tue 14th Jan '03, 5:32pm
I got a forums that at time will have 3000 + users online and having mysql problems.

1. Server load ( mysql )

Processors 4
Model Intel(R) Xeon(TM) CPU 2.80GHz
Chip MHz 2799.75
Cache Size 512 KB
System Bogomips 22373.97
Ram 4 gig
PCI Devices PCI device 8086:248b (Intel Corporation)
PCI device 8086:1461 (Intel Corporation)
PCI device 8086:1461 (Intel Corporation)
PCI device 8086:100f (Intel Corporation)
PCI device 1119:0136 (ICP Vortex Computersysteme GmbH)
Intel Corporation 82557 [Ethernet Pro 100]
ATI Technologies Inc Rage XL

IDE Devices hda: CDU5211

SCSI Devices ICP Host Drive #00 ( Direct-Access )
raid 10
the way I figure it the server should be able to handle 4000 members online I could be wrong.

my main problem is server load @ 1700 online. I see no reason for this with this type of hardware I have another forum that I host that is 1/3 the hardware and had 1500 online with a server load of 2.0
This hardware seams to go's to a load of 35 + w/1700 online
It seams its all mysql and process not closing.

Any suggestions would be greatly appreciated

Steve Machol
Tue 14th Jan '03, 5:43pm
To get vb support on these forums you first need to register for Priority Forum Support. To do this, please click HERE (http://www.vbulletin.com/members/forums.php) and enter your email address in one of the boxes. You'll need to have your customer number and password to access the page. Thanks.

Dell
Tue 14th Jan '03, 5:45pm
I guess me email address was out of date I think I fixed it sorry

Steve Machol
Tue 14th Jan '03, 5:50pm
Thanks. Have you tried turning off persistant connections in the config.php file? You might also want to post your server info, link to phpinfo and contents of your my.cnf file in the Server Configuration forum since this is likely to require optimizing your server.

Dell
Tue 14th Jan '03, 5:59pm
[mysqld]
port = 3306
datadir=/var/lib/mysql
socket = /var/lib/mysql/mysql.sock
skip-locking
set-variable = max_connections=6000
set-variable = key_buffer=16M
set-variable = myisam_sort_buffer_size=64M
set-variable = join_buffer=1M
set-variable = record_buffer=1M
set-variable = sort_buffer=2M
set-variable = table_cache=1024
set-variable = thread_cache_size=256
set-variable = wait_timeout=7200
set-variable = connect_timeout=10
set-variable = max_allowed_packet=16M
set-variable = max_connect_errors=10
[mysqldump]
quick
set-variable = max_allowed_packet=16M
[myisamchk]
set-variable = key_buffer=64M
set-variable = sort_buffer=64M
set-variable = read_buffer=16M
set-variable = write_buffer=16M
[mysql.server]
user=mysql
basedir=/var/lib
[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

eva2000
Tue 14th Jan '03, 10:37pm
Originally posted by Dell
I got a forums that at time will have 3000 + users online and having mysql problems.

1. Server load ( mysql )

Processors 4
Model Intel(R) Xeon(TM) CPU 2.80GHz
Chip MHz 2799.75
Cache Size 512 KB
System Bogomips 22373.97
Ram 4 gig
PCI Devices PCI device 8086:248b (Intel Corporation)
PCI device 8086:1461 (Intel Corporation)
PCI device 8086:1461 (Intel Corporation)
PCI device 8086:100f (Intel Corporation)
PCI device 1119:0136 (ICP Vortex Computersysteme GmbH)
Intel Corporation 82557 [Ethernet Pro 100]
ATI Technologies Inc Rage XL

IDE Devices hda: CDU5211

SCSI Devices ICP Host Drive #00 ( Direct-Access )
raid 10
the way I figure it the server should be able to handle 4000 members online I could be wrong.

my main problem is server load @ 1700 online. I see no reason for this with this type of hardware I have another forum that I host that is 1/3 the hardware and had 1500 online with a server load of 2.0
This hardware seams to go's to a load of 35 + w/1700 online
It seams its all mysql and process not closing.

Any suggestions would be greatly appreciated 1 server for that many users :eek:

okay please provide the following

1. is this on dedicated or shared virual server
2. your server specs, such as mysql and php version
3. if possible how mysql was compiled/installed
4. your top stats
5. your mysql configuration variables located at /etc/my.cnf or c:\my.cnf if on Windows server if you don't have that file you need to log into telnet and as root user type

mysqladmin -u root -p variables

copy and paste output here

6. your mysql extended-status output either still telnet as root user type

mysqladmin -u root -p extended-status

copy and paste output here

or preferred is to installed extended-status output script which is either located

- in your vB 2.2.6 or higher vB version's zip file extra's folder, upload mysqlinfo.php script to your site or if you're on an pre vB 2.2.6 install go to
- http://vbulletin.com/forum/showthread.php?threadid=3477 and install that scrip making sure to edit $mysqllogin line with your own mysqlusername and password

and post url to that here

7. oh and is your vB the only thing on the server? or other scripts? sites?

8. how many average and max concurrent users on your vB forum ?

9. create a file named phpinfo.php and place this code in it and post the url/link to it from your web site

<?
phpinfo();
?>

i.e. yourdomain.com/phpinfo.php

10. 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
MaxKeepAliveRequests
KeepAliveTimeout
MinSpareServers
MaxSpareServers
StartServers
MaxClients

11. what version of vB are you running ?

eva2000
Tue 14th Jan '03, 10:38pm
also could you post the same details for the other forum you mentioned, so i can compare their forum activity on both servers

Dell
Wed 15th Jan '03, 10:21am
1 server for that many users :eek:
keep in mind this server serves 1 site:
4 Intel(R) Xeon(TM) CPU 2.80GHz
4gig ram
6 SCSI 1500rpm drives w/Raid

This is a dedicated server
my.cnf is located above in post
Vb is pretty much the only thing running on the server few miscellaneous html pages:

Average vb users online is 1500, max is 3300 + during peak times I believe there could be as many as 4 to 5000 if no mysql errors

MaxKeepAliveRequests 500
KeepAliveTimeout 15
MinSpareServers 15
MaxSpareServers 20
StartServers 20

Mysql v3.23.41
Zend Accelerator v2.0.5,
PHP Version 4.2.2
vB version is 2.2.4

phpinfo: http://64.141.32.215/phpinfo.php (http://64.141.32.215/phpinfo.php)


continued below:

Dell
Wed 15th Jan '03, 10:24am
Extended status:

+--------------------------+------------+
| Variable_name | Value |
+--------------------------+------------+
| Aborted_clients | 110 |
| Aborted_connects | 5 |
| Bytes_received | 2747618797 |
| Bytes_sent | 3744550513 |
| Connections | 799873 |
| Created_tmp_disk_tables | 140 |
| Created_tmp_tables | 302261 |
| Created_tmp_files | 30 |
| Delayed_insert_threads | 0 |
| Delayed_writes | 0 |
| Delayed_errors | 0 |
| Flush_commands | 1 |
| Handler_delete | 140528 |
| Handler_read_first | 1650804 |
| Handler_read_key | 156789249 |
| Handler_read_next | 740732872 |
| Handler_read_prev | 0 |
| Handler_read_rnd | 127681163 |
| Handler_read_rnd_next | 1776534834 |
| Handler_update | 2345625 |
| Handler_write | 57610531 |
| Key_blocks_used | 7793 |
| Key_read_requests | 666591185 |
| Key_reads | 2252266 |
| Key_write_requests | 496330 |
| Key_writes | 485791 |
| Max_used_connections | 182 |
| Not_flushed_key_blocks | 0 |
| Not_flushed_delayed_rows | 0 |
| Open_tables | 64 |
| Open_files | 109 |
| Open_streams | 0 |
| Opened_tables | 438597 |
| Questions | 17390333 |
| Select_full_join | 140 |
| Select_full_range_join | 25 |
| Select_range | 2271459 |
| Select_range_check | 0 |
| Select_scan | 1908426 |
| Slave_running | OFF |
| Slave_open_temp_tables | 0 |
| Slow_launch_threads | 0 |
| Slow_queries | 15 |
| Sort_merge_passes | 15 |
| Sort_range | 3023714 |
| Sort_rows | 209900969 |
| Sort_scan | 1373707 |
| Table_locks_immediate | 19034905 |
| Table_locks_waited | 129568 |
| Threads_cached | 0 |
| Threads_created | 799872 |
| Threads_connected | 8 |
| Threads_running | 1 |
| Uptime | 127924 |
+--------------------------+------------+

Mysql info:

back_log | 50
basedir | /usr/
bdb_cache_size | 8388600
bdb_log_buffer_size | 32768
bdb_home | /var/lib/mysql/
bdb_max_lock | 10000
bdb_logdir |
bdb_shared_data | OFF
bdb_tmpdir | /tmp/
bdb_version | Sleepycat Software: Berkeley DB 3.2.9a: (August 11, 2001)
binlog_cache_size | 32768
character_set | latin1
character_sets | latin1 big5 cp1251 cp1257 croat czech danish dec8 dos estonia euc_kr gb2312 gbk german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr latin2 latin5 swe7 usa7 win1250 win1251 win1251ukr ujis sjis tis620
concurrent_insert | ON
connect_timeout | 5
datadir | /var/lib/mysql/
delay_key_write | ON
delayed_insert_limit | 100
delayed_insert_timeout | 300
delayed_queue_size | 1000
flush | OFF
flush_time | 0
have_bdb | YES
have_gemini | NO
have_innodb | NO
have_isam | YES
have_raid | NO
have_ssl | NO
init_file |
interactive_timeout | 28800
join_buffer_size | 131072
key_buffer_size | 8388600
language | /usr/share/mysql/english/
large_files_support | ON
locked_in_memory | OFF
log | OFF
log_update | OFF
log_bin | OFF
log_slave_updates | OFF
log_long_queries | OFF
long_query_time | 10
low_priority_updates | OFF
lower_case_table_names | 0
max_allowed_packet | 1048576
max_binlog_cache_size | 4294967295
max_binlog_size | 1073741824
max_connections | 5000
max_connect_errors | 10
max_delayed_threads | 20
max_heap_table_size | 16777216
max_join_size | 4294967295
max_sort_length | 1024
max_user_connections | 0
max_tmp_tables | 32
max_write_lock_count | 4294967295
myisam_recover_options | 0
myisam_max_extra_sort_file_size | 256
myisam_max_sort_file_size | 2047
myisam_sort_buffer_size | 8388608
net_buffer_length | 16384
net_read_timeout | 30
net_retry_count | 10
net_write_timeout | 60
open_files_limit | 0
pid_file | /var/run/mysqld/mysqld.pid
port | 3306
protocol_version | 10
record_buffer | 131072
record_rnd_buffer | 131072
query_buffer_size | 0
safe_show_database | OFF
server_id | 0
slave_net_timeout | 3600
skip_locking | ON
skip_networking | OFF
skip_show_database | OFF
slow_launch_time | 2
socket | /var/lib/mysql/mysql.sock
sort_buffer | 2097144
sql_mode | 0
table_cache | 64
thread_cache_size | 0
thread_stack | 65536
transaction_isolation | READ-COMMITTED |
timezone | EST
tmp_table_size | 33554432
tmpdir | /tmp/
version | 3.23.41
wait_timeout | 28800

eva2000
Thu 16th Jan '03, 3:31am
i see a Quad P4 2.8 Xeon that explains how you can handle such a load to this date

can you post a url to your mysqlinfo.php link for this server ?

also how was mysql installed ? via rpm binary or compiled from source ?

better yet, if you want, you can submit an official support ticket at http://www.vbulletin.com/members/support_form.php and provide server log in access so i can check myself at your peak forum time (when the problem occurs)