For internal in-memory temporary tables using the MEMORY engine, the per-table limit is the smaller of tmp_table_size and max_heap_table_size. In Oracle MySQL 8.0.28 and later, tmp_table_size also limits an individual internal TempTable table; max_heap_table_size does not limit TempTable. Temporary-table memory depends on the workload, concurrency, engine, and other TempTable limits. Multiplying a table limit by max_connections does not establish a server-wide memory maximum. For more information about memory planning, see our
MySQL Memory Usage guide.
Don't limit your server performance by setting incorrect values for tmp_table_size and max_heap_table_size –
Releem can help.
For more detailed memory planning, check out our
MySQL Memory Calculators to optimize your configuration precisely.
Releem Agent will collect metrics from your servers that are transferred to the Releem Cloud Platform. Releem Cloud Platform will make any recommendations to improve your server performance and then automatically apply these settings.