Bonjour J'ai besoin un peu votre aide.
Mon serveur est sous centos 6 avec php 5.1 (dso)
J'ai installé les scripts nécessaires pour l'analyse de mon serveur...
Mon site est vraiment très très lent... Il est conçu en drupal et de ce côté j'ai activé certain module pour la cache dont Boost et APC.
Côté sql j'ai ceci comme analyse... J'ai beau changer les valeurs... ca ne semble jamais correcte... Peut-être m'aider svp?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 >> MySQLTuner 1.2.0 - Major Hayden <major@mhtx.net> >> Bug reports, feature requests, and downloads at http://mysqltuner.com/ >> Run with '--help' for additional options and output filtering -------- General Statistics -------------------------------------------------- [--] Skipped version check for MySQLTuner script [OK] Currently running supported MySQL version 5.1.66-cll [OK] Operating on 64-bit architecture -------- Storage Engine Statistics ------------------------------------------- [--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster [--] Data in MyISAM tables: 219K (Tables: 63) [--] Data in InnoDB tables: 62M (Tables: 585) [!!] Total fragmented tables: 35 -------- Security Recommendations ------------------------------------------- [OK] All database users have passwords assigned -------- Performance Metrics ------------------------------------------------- [--] Up for: 20m 2s (2K q [1.955 qps], 145 conn, TX: 7M, RX: 445K) [--] Reads / Writes: 59% / 41% [--] Total buffers: 546.0M global + 2.7M per thread (151 max threads) [OK] Maximum possible memory usage: 961.2M (6% of installed RAM) [OK] Slow queries: 0% (12/2K) [OK] Highest usage of available connections: 1% (2/151) [OK] Key buffer size / total MyISAM indexes: 256.0M/280.0K [!!] Key buffer hit rate: 70.3% (74 cached / 22 reads) [OK] Query cache efficiency: 66.6% (1K cached / 1K selects) [OK] Query cache prunes per day: 0 [OK] Sorts requiring temporary tables: 0% (0 temp sorts / 37 sorts) [OK] Temporary tables created on disk: 11% (32 on disk / 288 total) [OK] Thread cache hit rate: 98% (2 created / 145 connections) [!!] Table cache hit rate: 9% (431 open / 4K opened) [OK] Open file limit used: 16% (173/1K) [OK] Table locks acquired immediately: 100% (909 immediate / 909 locks) [OK] InnoDB data size / buffer pool: 62.3M/128.0M -------- Recommendations ----------------------------------------------------- General recommendations: Run OPTIMIZE TABLE to defragment tables for better performance Increase table_cache gradually to avoid file descriptor limits Variables to adjust: table_cache (> 431)et voici mon fichier my.cnf actuel:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102 SLOW QUERIES The slow query log is enabled. Current long_query_time = 1.000000 sec. You have 12 out of 2402 that take longer than 1.000000 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.1/en/point-in-time-recovery.html WORKER THREADS Current thread_cache_size = 4 Current threads_cached = 0 Current threads_per_sec = 0 Historic threads_per_sec = 0 Your thread_cache_size is fine MAX CONNECTIONS Current max_connections = 151 Current threads_connected = 2 Historic max_used_connections = 2 The number of used connections is 1% 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 INNODB STATUS Current InnoDB index space = 37 M Current InnoDB data space = 62 M Current InnoDB buffer pool free = 31 % Current innodb_buffer_pool_size = 128 M Depending on how much space your innodb indexes take up it may be safe to increase this value to up to 2 / 3 of total system memory MEMORY USAGE Max Memory Ever Allocated : 519 M Configured Max Per-thread Buffers : 415 M Configured Max Global Buffers : 514 M Configured Max Memory Limit : 929 M Physical Memory : 15.51 G Max memory limit seem to be within acceptable norms KEY BUFFER Current MyISAM index space = 288 K Current key_buffer_size = 256 M Key cache miss rate is 1 : 3 Key buffer free ratio = 81 % Your key_buffer_size seems to be fine QUERY CACHE Query cache is enabled Current query_cache_size = 128 M Current query_cache_used = 2 M Current query_cache_limit = 8 M Current Query cache Memory fill ratio = 1.84 % Current query_cache_min_res_unit = 4 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 = 132.00 K You have had 0 queries where a join could not use an index properly Your joins seem to be using indexes properly OPEN FILES LIMIT Current open_files_limit = 1024 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_open_cache = 431 tables Current table_definition_cache = 256 tables You have a total of 671 tables You have 431 open tables. Current table_cache hit rate is 4% , while 100% of your table cache is in use You should probably increase your table_cache You should probably increase your table_definition_cache value. TEMP TABLES Current max_heap_table_size = 32 M Current tmp_table_size = 32 M Of 491 temp tables, 11% were created on disk Created disk tmp tables ratio seems fine TABLE SCANS Current read_buffer_size = 128 K Current table scan ratio = 20 : 1 read_buffer_size seems to be fine TABLE LOCKING Current Lock Wait ratio = 0 : 2657 Your table locking seems to be fine
On dirait qu'avant de loader mon site il cherche toujours mon adresse?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 innodb_file_per_table=1 tmp_table_size = 32M max_heap_table_size = 32M slow_query_log=1 long_query_time=1 query_cache_type=1 query_cache_limit = 8M query_cache_size = 128M table_cache = 512M innodb_buffer_pool_size = 128M thread_cache_size = 4 key_buffer = 256M
Y a-il moyen de paramétrer pour qu'il ne recherche pas trop longtemps avant?
Bref je ne sais plus trop quoi changer....
Merci de me venir en aide..
Italya
Partager