Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Apache Mysql Optimization ?

Apache Mysql Optimization ?

2004-01-06       - By vishal@(protected)

 Back
Hello All,

Redhat 9 (shrike)
Mysql 4.0.15
Apache 1.3.29
PHP 4.3.3

Server Conf
============
[4 CPUs] Dual Xeon 2.4  1GB RAM  73GB SCSI, 80GB IDE HD

No of Sites : only 2 (which are very Busy and mysql intensive )

Http.conf
=========
Timeout 300
KeepAlive On
MaxKeepAliveRequests 120
KeepAliveTimeout 10
MinSpareServers 10
MaxSpareServers 20
StartServers 5
MaxClients 512
MaxRequestsPerChild 1000

my.cnf
======
[mysqld]
set-variable = max_connections=700
safe-show-database
key_buffer = 200M
myisam_sort_buffer_size = 64M
join_buffer_size = 8M
read_buffer_size = 8M
sort_buffer_size = 12M
table_cache = 1028
thread_cache_size = 800
wait_timeout = 10
interactive_timeout=10
connect_timeout = 10
max_allowed_packet = 32M
max_connect_errors = 10
thread_concurrency=4
query_cache_limit = 2M
query_cache_size = 45M
query_cache_type = 1
skip-innodb
log-slow-queries = /var/log/mysql_slow_query_log
long_query_time = 5

[mysqld_safe]
err-log=/var/log/mysqld.log
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet = 16M

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

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

Turck-MMCache Enabled (Zend Extension)

top
====
05:46:25  up 12 days, 17:35,  3 users,  load average: 7.46, 9.02, 10.76
509 processes: 501 sleeping, 6 running, 1 zombie, 1 stopped
CPU0 states:  64.2% user  19.1% system    0.1% nice   0.0% iowait  16.0%
idle
CPU1 states:  64.0% user  19.1% system    0.0% nice   0.0% iowait  16.3%
idle
CPU2 states:  60.3% user  23.1% system    0.0% nice   0.0% iowait  16.0%
idle
CPU3 states:  60.2% user  20.5% system    0.0% nice   0.0% iowait  18.3%
idle
Mem:  1030244k av,  912116k used,  118128k free,       0k shrd,  187872k
buff
                   534216k actv,   49792k in_d,   18180k in_c
Swap: 2096440k av,  132220k used, 1964220k free                  441464k
cached

 PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
12228 mysql     15   0 23588  20M  1444 S    99.9  2.0  56:42   3 mysqld
3419 root      15   0  2676 1684  1616 S     7.0  0.1  13:57   1 httpd

Can Anyone please tell me why I am not able to get the Load Down and the
site Load Faster.The server load is always above 5.00

Thanks in Advance.





Earn $52 per hosting referral at Lunarpages.