Avatar of stevejepsen
stevejepsen
Flag for United States of America asked on

MySQL ISAM database format tuning --- for 4gb server

I am looking for recommendations for setting up a MySQL server on a server with 4gb memory.  Below are the ISAM setting from a server a few years old, and I suspect they are default settings and not tuned at all to the server it's running on.  
Question: My current mysqld process is using 1.8 percent memory.  Should that be configured to use 50% or more on a dedicated MySQL server ?


key_buffer                              = 16M
max_allowed_packet                      = 1M
table_cache                             = 64
sort_buffer_size                        = 512K
net_buffer_length                       = 8K
read_buffer_size                        = 256K
read_rnd_buffer_size            = 512K
myisam_sort_buffer_size         = 8M
MySQL Server

Avatar of undefined
Last Comment
Umesh

8/22/2022 - Mon
Umesh

Correct me if I'm wrong here - You are talking about MyISAM rather than ISAM engine??  
Please let me know so that I can suggest... I see these settings are for MyISAM engine and they seems to be default settings...

Also - Is this machine dedicated to MySQL?
        - Is MyISAM is the only engine you are planning to use?
stevejepsen

ASKER
MyIsam is the database.
Yes the server is dedicated to the SQL operations.
MyISAM is the only engine involved/used.

ASKER CERTIFIED SOLUTION
Umesh

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
stevejepsen

ASKER
The max connections can be set at 50  I am looking at my tcp connections from the apache server, at peak I am at 20-30.   The processor is a single processor with two cores so I am not sure what value to use for thread_concurrency   2 or 4.



   
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
SOLUTION
Umesh

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.