sql - MYSQL database server Optimize: Queries very slow with many connections -


I am running a MySQL DB server during load testing, with thousands of connections, MySQL queries are taking minutes in minutes . What can I do to optimize this situation?

My short description of mysql DB configuration is here

  1. Read only access to tables.
  2. Using the IODB engine
  3. Mysqltuner has run, and its recommendation is implemented
  4. The system is under a lot of queries and possibly has half open connections There are also.
  5. File System Optimization.

    I know that this is a very open ended question, but like any input.

    Edit: Adding more information:

    The questions are very simple, like "Choose from q6 * * to choose where created_it = '2013-10-02 + 00: 00: 00'". Questions will always be always of this form. Many people like them in the table like schema (one of the six huge tables): Create table q4t_table (created_at TIMESTAMP, tweet TEXT) engine = InnoDB;

    The tables are indexed on timestamps (or user hosted in some tables that are int). Once, out of six, only one table will be delivered.

    The table size is typicall 300Mb or 3gb or 8gb.

    You probably are running out of memory with too many open connections, such as connection pooling like sqlRelay or your Use the built-in pooling mechanism in the language platform.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -