| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-29-2012, 08:34 PM
|
#1
|
|
Member
Registered: Aug 2001
Location: Hong Kong, China
Distribution: CentOS, Red Hat, Mandrake, Debian
Posts: 88
Rep:
|
MySQL performance opt for a 5000 connection web site?
Hi all,
I am new on MySQL, and I had my own server host at home with CentOS 6.2 install LAMP by default setting, and it is hosting my Photo Blog.
It using WordPress and NextGen Gallery, special on NextGen Gallery have a big table with hold all my photo id one by one. It will make the MySQL slowly down? or on default cache size too low on the CentOS 6.2 install?
Here are the URL
Jimmy Chan Photo Blog
I am thinking if 5000 user connect to my web site, how to performance MySQL and Apache/PHP etc is good?
I am total new on MySQL.
My server Intel E5200 CPU, 6G RAM.
Thank you very much.
Last edited by explorer1979; 01-29-2012 at 08:35 PM.
|
|
|
|
01-30-2012, 12:58 PM
|
#2
|
|
Senior Member
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140
|
For tunning mysql queries, I like to use mysql command line, and check query with
Also mysql server is tunnable, see my.cnf file options
|
|
|
1 members found this post helpful.
|
01-30-2012, 05:25 PM
|
#3
|
|
Member
Registered: Jan 2012
Distribution: Debian
Posts: 52
Rep: 
|
Additionally, you can try mysqltuner.
http://mysqltuner.com/
|
|
|
|
01-30-2012, 09:05 PM
|
#4
|
|
Member
Registered: Aug 2001
Location: Hong Kong, China
Distribution: CentOS, Red Hat, Mandrake, Debian
Posts: 88
Original Poster
Rep:
|
Hi all,
First, thank you the reply, it is useful for me
And I am using phpmyadmin and press the status
it show me some line on RED Text
This MySQL server has been running for 8 days, 11 hours, 58 minutes and 19 seconds. It started up on Jan 22, 2012 at 10:52 PM.
Query statistics: Since its startup, 1,750,319 queries have been sent to the server.Documentation
Innodb_buffer_pool_readsDocumentation 97 The number of logical reads that InnoDB could not satisfy from buffer pool and had to do a single-page read.
Innodb_row_lock_waitsDocumentation 1 The number of times a row lock had to be waited for.
Handler_read_rndDocumentation 2.5 M The number of requests to read a row based on a fixed position. This is high if you are doing a lot of queries that require sorting of the result. You probably have a lot of queries that require MySQL to scan whole tables or you have joins that don't use keys properly.
Handler_read_rnd_nextDocumentation 47.3 M The number of requests to read the next row in the data file. This is high if you are doing a lot of table scans. Generally this suggests that your tables are not properly indexed or that your queries are not written to take advantage of the indexes you have.
Created_tmp_disk_tablesDocumentation 21.2 k The number of temporary tables on disk created automatically by the server while executing statements. If Created_tmp_disk_tables is big, you may want to increase the tmp_table_size value to cause temporary tables to be memory-based instead of disk-based.
Opened_tablesDocumentation 347 The number of tables that have been opened. If opened tables is big, your table cache value is probably too small.
|
|
|
|
01-31-2012, 04:52 AM
|
#5
|
|
Senior Member
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140
|
Please post your my.cnf config file
Also it seems you use some not optimized queries / tables
You may need to add indexes in some of your tables
see for example:
http://stackoverflow.com/questions/3...ntage-of-index
|
|
|
|
01-31-2012, 07:26 PM
|
#6
|
|
Member
Registered: Aug 2001
Location: Hong Kong, China
Distribution: CentOS, Red Hat, Mandrake, Debian
Posts: 88
Original Poster
Rep:
|
Cedrik,
Hi , thank you
Here are my CentOS 6.2 /etc/my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
All value are default after install.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:11 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|