Vor ein paar Tage sah das top noch viel besser aus. Eben trifft micht der Schlag:
Der Apache reagiert aber immer noch flüssig. Die Auslieferung der Seiten funktioniert.
Ich dachte eigentlich, dass ich ihn gerade optimiert hatte. Hier meine conf:
Die MySQL-Einstellungen orientierten sich am tuning-primer:
Jetzt hatte ich die DB dummerweise gerade neugestartet bevor ich das Skript laufen habe lassen.....
Sagt also nicht mehr soviel aus. Ich hatte mich aber bisher an den Ausgaben des Skrips orientiert, sodass es da in der Vergangenheit keine extremen Misseinstellungen gab.
Auf dem Server läuft ein Joomla mit bis zu 400 Usern gleichzeitig online.
Hat jemand Tips oder Erfahrungen woran ich noch schrauben könnte?
Code:
top - 17:06:50 up 92 days, 15:04, 1 user, load average: 42.79, 31.25, 23.77
Tasks: 206 total, 59 running, 146 sleeping, 0 stopped, 1 zombie
Cpu(s): 93.3%us, 5.8%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.2%hi, 0.7%si, 0.0%st
Mem: 4043580k total, 2973576k used, 1070004k free, 247432k buffers
Swap: 1999928k total, 10512k used, 1989416k free, 945320k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
24151 mysql 20 0 513m 164m 6112 S 26 4.2 5:18.18 mysqld
25911 www-data 20 0 456m 31m 16m R 3 0.8 0:00.98 apache2
25947 www-data 20 0 456m 31m 16m R 3 0.8 0:00.72 apache2
25975 www-data 20 0 456m 31m 17m R 3 0.8 0:00.72 apache2
25976 www-data 20 0 456m 31m 17m R 3 0.8 0:00.90 apache2
25992 www-data 20 0 456m 30m 16m R 3 0.8 0:00.76 apache2
26038 www-data 20 0 456m 31m 16m R 3 0.8 0:00.70 apache2
26046 www-data 20 0 456m 30m 16m R 3 0.8 0:00.76 apache2
26047 www-data 20 0 456m 31m 16m R 3 0.8 0:00.76 apache2
26060 www-data 20 0 456m 30m 16m R 3 0.8 0:00.74 apache2
26295 www-data 20 0 456m 30m 16m R 3 0.8 0:00.22 apache2
26297 www-data 20 0 456m 30m 16m R 3 0.8 0:00.22 apache2
26300 www-data 20 0 455m 30m 16m R 3 0.8 0:00.22 apache2
24734 www-data 20 0 461m 43m 24m R 3 1.1 0:05.82 apache2
25026 www-data 20 0 456m 31m 17m R 3 0.8 0:02.56 apache2
25037 www-data 20 0 456m 31m 17m R 3 0.8 0:03.04 apache2
25828 www-data 20 0 456m 31m 16m R 3 0.8 0:00.98 apache2
25830 www-data 20 0 456m 31m 17m R 3 0.8 0:00.68 apache2
25831 www-data 20 0 456m 31m 16m R 3 0.8 0:01.08 apache2
25921 www-data 20 0 456m 30m 16m R 3 0.8 0:00.84 apache2
25928 www-data 20 0 456m 30m 16m R 3 0.8 0:00.74 apache2
25978 www-data 20 0 456m 31m 17m R 3 0.8 0:00.80 apache2
25982 www-data 20 0 456m 30m 17m R 3 0.8 0:00.72 apache2
25993 www-data 20 0 456m 30m 16m R 3 0.8 0:00.72 apache2
25996 www-data 20 0 456m 31m 16m R 3 0.8 0:00.78 apache2
26000 www-data 20 0 456m 32m 18m R 3 0.8 0:00.62 apache2
26036 www-data 20 0 456m 31m 16m R 3 0.8 0:00.58 apache2
26294 www-data 20 0 455m 30m 16m R 3 0.8 0:00.24 apache2
26298 www-data 20 0 455m 30m 16m R 3 0.8 0:00.22 apache2
26299 www-data 20 0 455m 30m 16m R 3 0.8 0:00.26 apache2
26302 www-data 20 0 456m 30m 16m R 3 0.8 0:00.24 apache2
26315 www-data 20 0 452m 20m 10m R 3 0.5 0:00.08 apache2
26323 www-data 20 0 452m 20m 10m R 3 0.5 0:00.10 apache2
24540 www-data 20 0 456m 33m 19m R 2 0.8 0:06.24 apache2
24878 www-data 20 0 456m 32m 18m R 2 0.8 0:03.48 apache2
25041 www-data 20 0 456m 31m 17m R 2 0.8 0:03.26 apache2
25803 www-data 20 0 455m 31m 17m S 2 0.8 0:01.66 apache2
Der Apache reagiert aber immer noch flüssig. Die Auslieferung der Seiten funktioniert.
Ich dachte eigentlich, dass ich ihn gerade optimiert hatte. Hier meine conf:
Code:
Timeout 60
KeepAlive Off
MaxKeepAliveRequests 0
KeepAliveTimeout 5
StartServers 5
MinSpareServers 5
MaxSpareServers 10
ServerLimit 200
MaxClients 200
MaxRequestsPerChild 0
Die MySQL-Einstellungen orientierten sich am tuning-primer:
Code:
- By: Matthew Montgomery -
MySQL Version 5.0.51a-24+lenny2 x86_64
Uptime = 0 days 0 hrs 12 min 20 sec
Avg. qps = 302
Total Questions = 223812
Threads Connected = 5
Warning: Server has not been running for at least 48hrs.
It may not be safe to use these recommendations
To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service
SLOW QUERIES
The slow query log is NOT enabled.
Current long_query_time = 5 sec.
You have 356 out of 223872 that take longer than 5 sec. to complete
Your long_query_time seems to be fine
BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See http://dev.mysql.com/doc/refman/5.0/en/point-in-time-recovery.html
WORKER THREADS
Current thread_cache_size = 16
Current threads_cached = 7
Current threads_per_sec = 0
Historic threads_per_sec = 1
Your thread_cache_size is fine
MAX CONNECTIONS
Current max_connections = 768
Current threads_connected = 9
Historic max_used_connections = 232
The number of used connections is 30% of the configured maximum.
Your max_connections variable seems to be fine.
MEMORY USAGE
Max Memory Ever Allocated : 869 M
Configured Max Per-thread Buffers : 2.62 G
Configured Max Global Buffers : 58 M
Configured Max Memory Limit : 2.67 G
Physical Memory : 3.85 G
Max memory limit seem to be within acceptable norms
KEY BUFFER
Current MyISAM index space = 5 M
Current key_buffer_size = 16 M
Key cache miss rate is 1 : 1053
Key buffer free ratio = 79 %
Your key_buffer_size seems to be fine
QUERY CACHE
Query cache is enabled
Current query_cache_size = 32 M
Current query_cache_used = 1 M
Current query_cache_limit = 32 M
Current Query cache Memory fill ratio = 4.69 %
Current query_cache_min_res_unit = 2 K
Your query_cache_size seems to be too high.
Perhaps you can use these resources elsewhere
MySQL won't cache query results that are larger than query_cache_limit in size
SORT OPERATIONS
Current sort_buffer_size = 2 M
Current read_rnd_buffer_size = 256 K
Sort buffer seems to be fine
JOINS
Current join_buffer_size = 1.00 M
You have had 5 queries where a join could not use an index properly
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.
If you are unable to optimize your queries you may want to increase your
join_buffer_size to accommodate larger joins in one pass.
Note! This script will still suggest raising the join_buffer_size when
ANY joins not using indexes are found.
OPEN FILES LIMIT
Current open_files_limit = 3840 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine
TABLE CACHE
Current table_cache value = 768 tables
You have a total of 271 tables
You have 561 open tables.
The table_cache value seems to be fine
TEMP TABLES
Current max_heap_table_size = 64 M
Current tmp_table_size = 64 M
Of 8345 temp tables, 25% were created on disk
Perhaps you should increase your tmp_table_size and/or max_heap_table_size
to reduce the number of disk-based temporary tables
Note! BLOB and TEXT columns are not allow in memory tables.
If you are using these columns raising these values might not impact your
ratio of on disk temp tables.
TABLE SCANS
Current read_buffer_size = 128 K
Current table scan ratio = 536 : 1
read_buffer_size seems to be fine
TABLE LOCKING
Current Lock Wait ratio = 1 : 597
You may benefit from selective use of InnoDB.
If you have long running SELECT's against MyISAM tables and perform
frequent updates consider setting 'low_priority_updates=1'
If you have a high concurrency of inserts on Dynamic row-length tables
consider setting 'concurrent_insert=2'.
Sagt also nicht mehr soviel aus. Ich hatte mich aber bisher an den Ausgaben des Skrips orientiert, sodass es da in der Vergangenheit keine extremen Misseinstellungen gab.
Auf dem Server läuft ein Joomla mit bis zu 400 Usern gleichzeitig online.
Hat jemand Tips oder Erfahrungen woran ich noch schrauben könnte?