Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 11-01-04
Super Moderator
 
Join Date: Aug 2003
Posts: 1,984
Thanks: 1
Thanked 1 Time in 1 Post
Fraser seems to know their stuff
  mysql processes

more linux server questions if anyone can help me out with some advice it would be great. I feel like I'm back in school trying to learn french again and having no idea what anyone is talking about!

on a server that I'm using for some sites the host says that "the mysql processes are out of control" they seem to use up all the memory and then crash the server.

is this a case of just being too much for the server? my badly written queries? or the way mysql is configured?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-01-04
Aquanuke's Avatar
ShagaaDaggaDoo
 
Join Date: Aug 2003
Location: Surrey
Posts: 1,116
Thanks: 0
Thanked 0 Times in 0 Posts
Aquanuke is an unknown quantity at this point
Most likely cause is just poor configuration. Most servers need to be tuned for how your using it.

Try disabling persistant mysql connections in your php.ini

edit the file /etc/my.cnf to suit your needs.

Your best bet would be to have alook at the vb forums as theres alot of good thread about tunning mysql.. and no doubt this thread would bore most members here to death

Would be a good idea to try this script..
http://www.vbulletin.com/forum/showt...?threadid=3477

Also you do need to tune apache and if your doing alot of php then something like php-accelerator would help keep it all together.

I usualy have around 200 mysql processes running and my.cnf looks like this..

PHP Code:
[mysqld]
datadir=/var/lib/mysql
socket
=/var/lib/mysql/mysql.sock
skip
-locking
skip
-innodb
query_cache_limit
=1M
query_cache_size
=32M
query_cache_type
=1
max_connections
=500
interactive_timeout
=100
wait_timeout
=100
connect_timeout
=10
thread_cache_size
=96
key_buffer
=16M
join_buffer
=1M
max_allowed_packet
=16M
table_cache
=1024
sort_buffer_size
=1M
read_buffer_size
=1M
read_rnd_buffer_size
=768k
max_connect_errors
=10
thread_concurrency
=4
myisam_sort_buffer_size
=64M
log
-bin
server
-id=1

[mysql.server]
user=mysql
basedir
=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid
-file=/var/lib/mysql/mysql.pid
open_files_limit
=8192

[mysqldump]
quick
max_allowed_packet
=16M

[mysql]
no-auto-rehash
#safe-updates

[isamchk]
key_buffer=64M
sort_buffer
=64M
read_buffer
=16M
write_buffer
=16M

[myisamchk]
key_buffer=64M
sort_buffer
=64M
read_buffer
=16M
write_buffer
=16M

[mysqlhotcopy]
interactive-timeout 

Last edited by Aquanuke; 11-01-04 at 03:36 AM..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-01-04
Super Moderator
 
Join Date: Aug 2003
Posts: 1,984
Thanks: 1
Thanked 1 Time in 1 Post
Fraser seems to know their stuff
Thanks again aquanuke for the tips - ideal just to point me in the right direction.

my.cnf file has only one line in it - so it looks like it's not badly configured just not configured at all!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
MYSQL loading JohnC Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 1 07-02-05 03:02 PM
Connect to MySql on a remote server? accelerator Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 3 07-01-05 04:54 PM
Anyone anygood with xml, php, mysql and Affiliate Window AnnonnyMouse The Affiliate Marketing Lounge 1 23-09-04 11:00 AM
MS Access & mySQL Frostie Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 5 04-10-03 10:46 AM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7