MySQL configuration/settings for optimum use with OpenKM
PostPosted:Sat Aug 24, 2013 7:10 am
Hi all,
Migrated OpenKM over to MySQL with no problems a while back, and I've recently moved to a new server (Hetzner Ex40, running i7-4770, 32Gb RAM, 4TB SATA HDD). I've configured OpenKM via ./setenv.sh to use 20Gb ram (-Xmx20g) and I've also configured it to use parallel garbage collection (-XX:+UseParallelGC) because of some "OutOfMemory: Heap Space" problems I was getting.
MySQL has been configured to use around 10-Gb ram, since the database for OpenKM is 9Gb in my install. My question is this: what kind of settings should I be using in my MySQL install? I'm only running OpenKM, so I don't need to worry about other programs or memory hogs. mysqltuner is reporting the following issues:
Total fragmented tables: 107
Query cache efficiency: 0.0% (1K cached / 2M selects)
Query cache prunes per date: 194724140
Temporary tables created on disk: 49% (10K on disk / 20K total)
Thread cache hit rate: 41% (14 created / 24 connections)
Connections aborted: 20%
My query_cache_limit is already at 2G, query_cache_size is 128M and thread_cache_size is 8. I'm pretty new with MySQL, so I'm not entirely sure what to alter or even what reasonable settings are. Any ideas or support from either the guys at OpenKM or just general MySQL knowledgey people?
For what it may be worth, the repository is approximately 500Gb in size, containing just under a million files.
Migrated OpenKM over to MySQL with no problems a while back, and I've recently moved to a new server (Hetzner Ex40, running i7-4770, 32Gb RAM, 4TB SATA HDD). I've configured OpenKM via ./setenv.sh to use 20Gb ram (-Xmx20g) and I've also configured it to use parallel garbage collection (-XX:+UseParallelGC) because of some "OutOfMemory: Heap Space" problems I was getting.
MySQL has been configured to use around 10-Gb ram, since the database for OpenKM is 9Gb in my install. My question is this: what kind of settings should I be using in my MySQL install? I'm only running OpenKM, so I don't need to worry about other programs or memory hogs. mysqltuner is reporting the following issues:
Total fragmented tables: 107
Query cache efficiency: 0.0% (1K cached / 2M selects)
Query cache prunes per date: 194724140
Temporary tables created on disk: 49% (10K on disk / 20K total)
Thread cache hit rate: 41% (14 created / 24 connections)
Connections aborted: 20%
My query_cache_limit is already at 2G, query_cache_size is 128M and thread_cache_size is 8. I'm pretty new with MySQL, so I'm not entirely sure what to alter or even what reasonable settings are. Any ideas or support from either the guys at OpenKM or just general MySQL knowledgey people?
For what it may be worth, the repository is approximately 500Gb in size, containing just under a million files.