Optymalizacja mysql w windows
#1
Napisany 24 listopad 2011 - 23:02
Aktualnie w mysql mam 4 bazy gdzie w dwóch z nich jest ok 36 830 rekordów... (w jednej bazie) I cały czas dochodzi na min ok 20szt rekordów.... baza aktualnie waży ok 5mb. Aktualnie config mam z bloga "blueman- http://www.blueman.pl/" I zauważyłem poprawę co do wersji z podstawowego my.cnf.. (b3 się już tak nie wiesza, ja to robił wcześniej...)
Mysql w wersji 5.5.16-log(xampp1.7.7)
#2
Napisany 24 listopad 2011 - 23:09
http://www.webyog.com/en/
Warto kupić szczególnie, że teraz przez parę dni jest 50% taniej.
#3
Napisany 25 listopad 2011 - 00:28
#4
Napisany 25 listopad 2011 - 01:15
#5
Napisany 26 listopad 2011 - 01:10
[client] port = 3306 socket = "xxmysql/mysql.sock" [mysqld] port= 3306 socket= "xxmysql/mysql.sock" basedir="xxmysql" tmpdir=xx/tmp" datadir="xx/mysql/data" pid_file="mysql.pid" max_connections=30 max_user_connections=24 log_error="xx/mysql_error.log" #skip-locking #bind-address="127.0.0.1" skip-external-locking key_buffer = 16M sort_buffer_size = 64M table_cache = 2000 thread_cache_size = 256 tmp_table_size = 190M #128M read_rnd_buffer_size = 768K read_buffer_size = 8M max_allowed_packet = 16M query_cache_limit = 8M query_cache_size = 35M query_cache_type = 1 thread_concurrency = 4 # dodano po optymalizacji join_buffer_size = 256K max_heap_table_size = 50M log-slow-queries = "xx/mysql-slow-queries.log" long_query_time = 5 open_files_limit = 5000 skip-federated server-id = 1 #skip-innodb innodb_data_home_dir = "xxmysql/data" innodb_data_file_path = ibdata1:10M:autoextend innodb_log_group_home_dir = "xx/mysql/data" innodb_buffer_pool_size = 16M innodb_additional_mem_pool_size = 2M innodb_log_file_size = 5M innodb_log_buffer_size = 8M innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 50 [mysqldump] quick max_allowed_packet = 16M [mysql] no-auto-rehash [isamchk] key_buffer = 20M sort_buffer_size = 20M read_buffer = 2M write_buffer = 2M [myisamchk] key_buffer = 20M sort_buffer_size = 20M read_buffer = 2M write_buffer = 2M [mysqlhotcopy] interactive-timeout
Dodam że maszyna to W3520+24GB ram i win 2008ST.. Proszę o pomoc.... Jakie informacje podać... i co pozmieniać...
lokalizacja plików ukryta
Ten post był edytowany przez SanKen dnia: 26 listopad 2011 - 01:11
#7
Napisany 27 listopad 2011 - 01:14
Ten post był edytowany przez SanKen dnia: 27 listopad 2011 - 01:26
#8
Napisany 27 listopad 2011 - 02:32
#9
Napisany 27 listopad 2011 - 17:06
#10
Napisany 27 listopad 2011 - 17:53
#11
Napisany 27 listopad 2011 - 18:22
Tak samo możesz sobie odpalić http://mysqltuner.pl/mysqltuner.pl i da ci jakies podpowiedzi
#12
Napisany 27 listopad 2011 - 20:54
#13
Napisany 27 listopad 2011 - 21:24
#14
Napisany 27 listopad 2011 - 21:49
Cytuj
>> Bug reports, feature requests, and downloads at http://mysqltuner.com/
>> Run with '--help' for additional options and output filtering
[--] Performing tests on ......:3306
[--] Assuming 24576 MB of physical memory
[!!] Assuming 0 MB of swap space (use --forceswap to specify)
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.16-log
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 3M (Tables: 49)
[!!] InnoDB is enabled but isn't being used
[!!] Total fragmented tables: 3
-------- Performance Metrics -------------------------------------------------
[--] Up for: 3d 3h 21m 26s (94K q [0.349 qps], 2K conn, TX: 57M, RX: 17M)
[--] Reads / Writes: 37% / 63%
[--] Total buffers: 127.0M global + 73.2M per thread (30 max threads)
Use of uninitialized value $arch in string eq at mysqltuner.pl line 703, <>
line 2 (#1)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
To suppress this warning assign a defined value to your variables.
To help you figure out what was undefined, perl will try to tell you the
name of the variable (if any) that was undefined. In some cases it cannot
do this, so it also tells you what operation you used the undefined value
in. Note, however, that perl optimizes your program and the operation
displayed in the warning may not necessarily appear literally in your
program. For example, "that $foo" is usually optimized into "that "
. $foo, and the warning will refer to the concatenation (.) operator,
even though there is no . in your program.
[OK] Maximum possible memory usage: 2.3G (9% of installed RAM)
[OK] Slow queries: 0% (4/94K)
[OK] Highest usage of available connections: 46% (14/30)
[OK] Key buffer size / total MyISAM indexes: 16.0M/2.8M
[!!] Key buffer hit rate: 93.9% (47K cached / 2K reads)
[!!] Query cache efficiency: 1.7% (437 cached / 25K selects)
[OK] Query cache prunes per day: 0
[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 899 sorts)
[OK] Temporary tables created on disk: 15% (437 on disk / 2K total)
[OK] Thread cache hit rate: 99% (15 created / 2K connections)
[!!] Table cache hit rate: 1% (49 open / 2K opened)
[OK] Open file limit used: 1% (99/7K)
[OK] Table locks acquired immediately: 100% (4K immediate / 4K locks)
-------- Recommendations -----------------------------------------------------
General recommendations:
Add skip-innodb to MySQL configuration to disable InnoDB
Run OPTIMIZE TABLE to defragment tables for better performance
Increase table_cache gradually to avoid file descriptor limits
Variables to adjust:
query_cache_limit (> 8M, or use smaller result sets)
table_cache (> 2000)
Czyli ustawić te dwie wartości mniejsze niż tutaj podane ?
restart MySQL i czekamy kolejne 24h ?
Ten post był edytowany przez Miłosz dnia: 02 grudzień 2011 - 16:17
#15
Napisany 27 listopad 2011 - 22:49
1 Użytkowników czyta ten temat
0 użytkowników, 1 gości, 0 anonimowych użytkowników













