讀取模組列表時,系統龜速在跑,用 top 觀察 MySQL, Apache 並沒有狂吃 RAM,硬碟卻狂轉,等上至少十幾秒才會看到列表結果。調整過以下這個屬於 [mysqld] 的參數,情況大幅改善,主要作用是要 InnoDB engine 善用還很充裕的 RAM 而非硬碟:
innodb_flush_log_at_trx_commit = 2
調整過此參數值後,視機器狀況,讀取模組列表只需 1~4 秒。
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
2 replies on “一個改善 Drupal 管理後台效能的 MySQL 設定參數”
transaction log commit 如果要開成 2 不如開成 0 去壓榨效能?
[…] General. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your 本篇發表於 軟體。將永久鏈結加入書籤。 ← 5 個使用 Drupal […]