Results 1 to 7 of 7
-
10th Apr 2012, 06:31 PM #1OPMemberWebsite's:
PornShareProject.org MidnightDesires.orghelp with "my.cnf" setup/config
Can someone help me with "my.cnf" configuration?
I had been playing around with this for the past few days and I cannot figure out what to do with it.
My server keeps using swap space every 6-12 hours and I'm not sure how to configure this.
Code:[mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock max_connections = 500 skip-locking key_buffer = 256M myisam_sort_buffer_size = 32M join_buffer_size = 1M read_buffer_size = 1M sort_buffer_size = 2M table_cache = 1024 thread_cache_size = 16M interactive_timeout = 25 wait_timeout = 1000 connect_timeout = 10 max_allowed_packet = 16M max_connect_errors = 10 query_cache_limit = 1M query_cache_size = 32M query_cache_type = 1 tmp_table_size = 16M max_heap_table_size = 16M #skip-innodb user=mysql local-infile=0 # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid open_files_limit = 8192 [isamchk] key_buffer = 256M sort_buffer = 256M read_buffer = 16M write_buffer = 16M [myisamchk] key_buffer = 256M sort_buffer = 256M read_buffer = 16M write_buffer = 16M [mysqlhotcopy] interactive-timeout skip-networking #log-slow-queries = /var/log/mysql-slow.log
AlternativeWeb Reviewed by AlternativeWeb on . help with "my.cnf" setup/config Can someone help me with "my.cnf" configuration? I had been playing around with this for the past few days and I cannot figure out what to do with it. My server keeps using swap space every 6-12 hours and I'm not sure how to configure this. datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock max_connections = 500 Rating: 5
-
10th Apr 2012, 06:42 PM #2BannedWebsite's:
vaporhostn.comlower the key_buffer and sort_buffer down to something like 128M or lower...
If its only for one site you don't need to have it that high
-
11th Apr 2012, 12:55 AM #3MemberWebsite's:
solidservers.caHi there,
Your max_connections also seems high. I would suggest you lower that value to something like 150. MySQL will set aside enough RAM to make use of those connections, so when you have the value set too high, you are doing more harm than good.
Regards,
Chris
-
11th Apr 2012, 04:21 AM #4OPMemberWebsite's:
PornShareProject.org MidnightDesires.orgIt's actually for 3 sites, but only one of them is really the resource hog.
These are the changes I made and I'll let you guys know how it works out in a few hours. Let me know if I missed anything, thanks!
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
max_connections = 150
skip-locking
key_buffer = 128M
myisam_sort_buffer_size = 32M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1024
thread_cache_size = 16M
interactive_timeout = 25
wait_timeout = 1000
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 32M
query_cache_type = 1
tmp_table_size = 16M
max_heap_table_size = 16M
#skip-innodb
user=mysql
local-infile=0
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
open_files_limit = 8192
[isamchk]
key_buffer = 128M
sort_buffer = 128M
read_buffer = 16M
write_buffer = 16M
[myisamchk]
key_buffer = 128M
sort_buffer = 128M
read_buffer = 16M
write_buffer = 16M
[mysqlhotcopy]
interactive-timeout
skip-networking
#log-slow-queries = /var/log/mysql-slow.log
---------- Post added at 12:21 AM ---------- Previous post was at 12:06 AM ----------
I just noticed a few processes being marked as "defunct", but i'm not really sure how bad this can be.
-
11th Apr 2012, 05:34 AM #5BannedWebsite's:
vaporhostn.comDefunct means a process that has quit aka a zombie process.
Have you tried updating your kernel and software to a up2date software and kernel?
-
11th Apr 2012, 05:40 AM #6OPMemberWebsite's:
PornShareProject.org MidnightDesires.org
-
11th Apr 2012, 05:48 AM #7BannedWebsite's:
vaporhostn.comjust run a full update
Code:yum update
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Hiring] someone to setup a website for me on "windows server 2008"
By amartin99 in forum ServicesReplies: 6Last Post: 18th Jun 2012, 01:15 PM -
Config your MultiPOSTER now to use "303 Templates"
By CyberAff in forum Webmaster DiscussionReplies: 107Last Post: 15th Jan 2012, 08:51 AM -
"reply" to "create" and vice versa is post update?
By Gene_Autry in forum Technical Help Desk SupportReplies: 0Last Post: 16th Sep 2011, 04:37 PM -
How can I make my Back-up website "Immediately" to replace my "Original Site"??
By fuchen in forum Webmaster DiscussionReplies: 11Last Post: 13th Aug 2011, 04:14 PM -
Filesonic "counted downloads" or "Premium sales count" now?
By kariofilis in forum File Host DiscussionReplies: 15Last Post: 18th Jan 2011, 03:18 AM
themaManager - edit and manage...
Version 4.17 released. Open older version (or...