Hi,
ich betreibe eine Community nutze die Forensoftware von Woltlab und habe im schnitt 1000 Nutzer online, wobei an Wochenenden die Nutzerzahl bis auf 5000-8000 steigt und das Board bzw. der Server jedes mal in die Knie geht.
Suche schon Monate nach Optimierungstipps etc. aber irgendwie will das alles nicht.
Hier meine Server Angaben:
AMD Athlon™ DualCore
1.024 MB DDR2-RAM
160 GB SATA HDD
Apache2 Config:
mySQL Config:
Tuning-Primer.sh output:
ich bedanke mich für jede Hilfe schonmal im voraus, und hoffe endlich eine Lösung zu finden.
gruss
ich betreibe eine Community nutze die Forensoftware von Woltlab und habe im schnitt 1000 Nutzer online, wobei an Wochenenden die Nutzerzahl bis auf 5000-8000 steigt und das Board bzw. der Server jedes mal in die Knie geht.
Suche schon Monate nach Optimierungstipps etc. aber irgendwie will das alles nicht.
Hier meine Server Angaben:
AMD Athlon™ DualCore
1.024 MB DDR2-RAM
160 GB SATA HDD
Apache2 Config:
Code:
Timeout 30
KeepAlive Off
MaxKeepAliveRequests 1000
KeepAliveTimeout 2
StartServers 1
MinSpareServers 1
MaxSpareServers 2
MaxClients 250
MaxRequestsPerChild 10000
mySQL Config:
Code:
skip-external-locking
key_buffer = 24M
max_allowed_packet = 24M
thread_stack = 128K
thread_cache_size = 8
max_connections = 1000
table_cache = 512
query_cache_limit = 1M
query_cache_size = 16M
skip-bdb
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[isamchk]
key_buffer = 16M
Tuning-Primer.sh output:
Code:
SLOW QUERIES
Current long_query_time = 10 sec.
You have 9 out of 4637573 that take longer than 10 sec. to complete
The slow query log is NOT enabled.
Your long_query_time may be too high, I typically set this under 5 sec.
WORKER THREADS
Current thread_cache_size = 8
Current threads_cached = 5
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine
MAX CONNECTIONS
Current max_connections = 1000
Current threads_connected = 3
Historic max_used_connections = 34
The number of used connections is 3% of the configured maximum.
You are using less than 10% of your configured max_connections.
Lowering max_connections could help to avoid an over-allocation of memory
See "MEMORY USAGE" section to make sure you are not over-allocating
MEMORY USAGE
Max Memory Ever Allocated : 139 M
Configured Max Per-thread Buffers : 2 G
Configured Max Global Buffers : 50 M
Configured Max Memory Limit : 2 G
Total System Memory : 1.91 G
Max memory limit exceeds 85% of total system memory
KEY BUFFER
Current MyISAM index space = 51 M
Current key_buffer_size = 24 M
Key cache miss rate is 1 : 3946
Key buffer fill ratio = 100.00 %
You could increase key_buffer_size
It is safe to raise this up to 1/4 of total system memory;
assuming this is a dedicated database server.
QUERY CACHE
Query cache is enabled
Current query_cache_size = 16 M
Current query_cache_used = 3 M
Current query_cach_limit = 1 M
Current Query cache fill ratio = 24.24 %
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 record/read_rnd_buffer_size = 256 K
Sort buffer seems to be fine
JOINS
Current join_buffer_size = 132.00 K
You have had 14 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 = 5000 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 = 512 tables
You have a total of 303 tables
You have 447 open tables.
The table_cache value seems to be fine
TEMP TABLES
Current max_heap_table_size = 16 M
Current tmp_table_size = 32 M
Of 33480 temp tables, 5% were created on disk
Effective in-memory tmp_table_size is limited to max_heap_table_size.
Created disk tmp tables ratio seems fine
TABLE SCANS
Current read_buffer_size = 128 K
Current table scan ratio = 2559 : 1
read_buffer_size seems to be fine
TABLE LOCKING
Current Lock Wait ratio = 1 : 38
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 concurrentcy of inserts on Dynamic row-length tables
consider setting 'concurrent_insert=2'.
ich bedanke mich für jede Hilfe schonmal im voraus, und hoffe endlich eine Lösung zu finden.
gruss