LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-17-2008, 12:21 PM   #31
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270

Quote:
Originally Posted by Stephan_Craft View Post
I did all what the script suggested, make a restart. Not helped!
Run the script again while the server is getting hammered to see what's changed. Something is causing the error, could be something in phpBB even causing the server to stop responding, taking connections, etc.
 
Old 07-17-2008, 12:25 PM   #32
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Original Poster
Rep: Reputation: 30
I have IPB and PHPBB

Quote:
-- MYSQL PERFORMANCE TUNING PRIMER --
- By: Matthew Montgomery -

MySQL Version 4.1.22-standard x86_64

Uptime = 0 days 0 hrs 5 min 52 sec
Avg. qps = 609
Total Questions = 214416
Threads Connected = 111

Warning: Server has not been running for at least 48hrs.
It may not be safe to use these recommendations

To find out more information on how each of these
runtime variables effects performance visit:
http://dev.mysql.com/doc/refman/4.1/...variables.html
Visit http://www.mysql.com/products/enterprise/advisors.html
for info about MySQL's Enterprise Monitoring and Advisory Service

SLOW QUERIES
The slow query log is NOT enabled.
Current long_query_time = 10 sec.
You have 0 out of 216276 that take longer than 10 sec. to complete
Your long_query_time may be too high, I typically set this under 5 sec.

BINARY UPDATE LOG
The binary update log is NOT enabled.
You will not be able to do point in time recovery
See http://dev.mysql.com/doc/refman/4.1/...-recovery.html

WORKER THREADS
Current thread_cache_size = 500
Current threads_cached = 153
Current threads_per_sec = 0
Historic threads_per_sec = 0
Your thread_cache_size is fine

MAX CONNECTIONS
Current max_connections = 10000
Current threads_connected = 76
Historic max_used_connections = 302
The number of used connections is 3% of the configured maximum.
You are using less than 10% of your configured max_connections.
Lowering max_connections could help to avoid an over-allocation of memory
See "MEMORY USAGE" section to make sure you are not over-allocating

MEMORY USAGE
Max Memory Ever Allocated : 40 G
Configured Max Per-thread Buffers : 1332 G
Configured Max Global Buffers : 366 M
Configured Max Memory Limit : 1332 G
Physical Memory : 11.73 G

Max memory limit exceeds 90% of physical memory

KEY BUFFER
Current MyISAM index space = 1 G
Current key_buffer_size = 256 M
Key cache miss rate is 1 : 131
Key buffer fill ratio = 22.00 %
Your key_buffer_size seems to be too high.
Perhaps you can use these resources elsewhere

QUERY CACHE
Query cache is enabled
Current query_cache_size = 100 M
Current query_cache_used = 6 M
Current query_cache_limit = 100 M
Current Query cache Memory fill ratio = 6.81 %
Current query_cache_min_res_unit = 4 K
Query Cache is 26 % fragmented
Run "FLUSH QUERY CACHE" periodically to defragment the query cache memory
If you have many small queries lower 'query_cache_min_res_unit' to reduce fragmentation.
Your query_cache_size seems to be too high.
Perhaps you can use these resources elsewhere
MySQL won't cache query results that are larger than query_cache_limit in size

SORT OPERATIONS
Current sort_buffer_size = 64 M
Current read_rnd_buffer_size = 256 K
Sort buffer seems to be fine

JOINS
Current join_buffer_size = 64.00 M
You have had 223 queries where a join could not use an index properly
join_buffer_size >= 4 M
This is not advised
You should enable "log-queries-not-using-indexes"
Then look for non indexed joins in the slow query log.

OPEN FILES LIMIT
Current open_files_limit = 50000 files
The open_files_limit should typically be set to at least 2x-3x
that of table_cache if you have heavy MyISAM usage.
Your open_files_limit value seems to be fine

TABLE CACHE
Current table_cache value = 2048 tables
You have a total of 522 tables
You have 975 open tables.
The table_cache value seems to be fine

TEMP TABLES
Current max_heap_table_size = 449 M
Current tmp_table_size = 1.95 G
Of 13095 temp tables, 1% were created on disk
Effective in-memory tmp_table_size is limited to max_heap_table_size.
Created disk tmp tables ratio seems fine

TABLE SCANS
Current read_buffer_size = 7 M
Current table scan ratio = 1240 : 1
read_buffer_size seems to be fine

TABLE LOCKING
Current Lock Wait ratio = 1 : 2
You may benefit from selective use of InnoDB.
If you have long running SELECT's against MyISAM tables and perform
frequent updates consider setting 'low_priority_updates=1'
 
Old 07-17-2008, 12:35 PM   #33
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Original Poster
Rep: Reputation: 30
what next?
 
Old 07-17-2008, 12:39 PM   #34
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Original Poster
Rep: Reputation: 30
From 50 refreshes 1 with error

Error Returned
SQL error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) SQL error code: Date: Thursday 17th of July 2008 06:27:00 PM
 
Old 07-17-2008, 12:42 PM   #35
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally Posted by Stephan_Craft View Post
From 50 refreshes 1 with error

Error Returned
SQL error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) SQL error code: Date: Thursday 17th of July 2008 06:27:00 PM
So is this from phpBB you see this error produced?
 
Old 07-17-2008, 12:48 PM   #36
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by trickykid View Post
So is this from phpBB you see this error produced?
from all scripts!
 
Old 07-17-2008, 12:49 PM   #37
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
How big is the database and or the tables?
 
Old 07-17-2008, 01:03 PM   #38
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Original Poster
Rep: Reputation: 30
more then 2.3 gb ipb
300 phpbb and small other scripts less then 200mb
 
Old 07-17-2008, 01:08 PM   #39
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
What is ipb by curiousity?
 
Old 07-17-2008, 01:08 PM   #40
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Original Poster
Rep: Reputation: 30
in Modify User Privileges for db
i have option to turn on "Grant" what it means?
 
Old 07-17-2008, 01:09 PM   #41
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by trickykid View Post
What is ipb by curiousity?
best forum script))
 
Old 07-17-2008, 01:09 PM   #42
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally Posted by Stephan_Craft View Post
in Modify User Privileges for db
i have option to turn on "Grant" what it means?
grant or grants provide users that connect to the database with specific privileges, access, etc. Think of it this way, instead of saying "allow", your granting permission to do "this or that".
 
Old 07-17-2008, 01:09 PM   #43
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Original Poster
Rep: Reputation: 30
Any more suggestions?
 
Old 07-17-2008, 01:12 PM   #44
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by trickykid View Post
grant or grants provide users that connect to the database with specific privileges, access, etc. Think of it this way, instead of saying "allow", your granting permission to do "this or that".
I guess this not much helping me right now…
 
Old 07-17-2008, 01:13 PM   #45
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Original Poster
Rep: Reputation: 30
I searched all the internet to find solution… feel like the only person in the world with this error.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux home router reboot itself when NAT'ing for large number of connections asimov Linux - Networking 8 03-01-2008 09:22 AM
LXer: This week at LWN: Large pages, large blocks, and large problems LXer Syndicated Linux News 0 09-27-2007 11:40 AM
2000 MySQL connections, still "too many connections" newlinuxnewbie Linux - General 0 11-07-2005 01:03 PM
Bash and mysql connections. tia24 Linux - Newbie 1 04-13-2004 01:15 PM
mysql connections srikz Red Hat 1 01-17-2004 07:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration