LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > high traffic website & litespeed

Reply
 
Thread Tools Display Modes
  #1  
Old 10-20-2008, 01:41 AM
kamuranyesilot kamuranyesilot is offline
New Member
 
Join Date: Oct 2008
Posts: 6
Exclamation high traffic website & litespeed

hello,

i have a dedicated server. here you can find the configuration below;

total online users: 2000 +
mysql command: 1000 + insert per sec. & 1000 + select per sec. from: (below)
mysql table count: apprx. 2.000.000 +

Quote:
hardware
amd 2800 cpu
1536 mb ddr ram
2x120 gb hdd
Quote:
software
centos 5.2
litespeed server
mysql 4.1.21
Quote:
my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-name-resolve
#old_passwords
back_log = 50
skip-innodb
max_connections = 650
key_buffer = 256M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 3M
table_cache = 1800
thread_cache_size = 512
wait_timeout = 15
connect_timeout = 10
tmp_table_size = 128M
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 = 96M
query_cache_type = 1
query_prealloc_size = 65536
query_alloc_block_size = 131072
default-storage-engine = MyISAM

[mysql.server]
user=mysql
#basedir=/var/lib

[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
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
so; i can't find another solution to make this settings well. i changed my entire system to litespeed and im really happy about that. its really best performance tuning solution.

my problem is: the server is going down everytime. avearage cpu usage is %80. maybe something wrong with my mysql my.cnf settings, i don't know. i am not good at this management stuffs.

i need your tips about optimize my php.ini, httpd.conf and my.cnf with full performance.

many thanks for your advices.
Reply With Quote
  #2  
Old 10-20-2008, 03:18 AM
closet geek closet geek is offline
Senior Member
 
Join Date: Sep 2008
Posts: 68
What's your iowait and free memory situation like?
Reply With Quote
  #3  
Old 10-20-2008, 03:36 AM
kamuranyesilot kamuranyesilot is offline
New Member
 
Join Date: Oct 2008
Posts: 6
how can i check this?
Reply With Quote
  #4  
Old 10-20-2008, 04:13 AM
closet geek closet geek is offline
Senior Member
 
Join Date: Sep 2008
Posts: 68
mpstat and free -m
Reply With Quote
  #5  
Old 10-20-2008, 08:40 AM
kamuranyesilot kamuranyesilot is offline
New Member
 
Join Date: Oct 2008
Posts: 6
Quote:
[root@dns /]# free -m
total used free shared buffers cached
Mem: 1455 557 898 0 49 367
-/+ buffers/cache: 140 1315
Swap: 2910 0 2910
[root@dns /]#
this is free -m.

Quote:
[root@dns /]# mpstat
-bash: mpstat: command not found
[root@dns /]#
this is mpstat. command nof found.

by the way, i probably did the litespeed settings well. its fastest now. i just need to modify my my.cnf file for this configuration.

could you help me with that please?
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:05 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.