cPanel increase of disk space usage happening, and it is gone shortly after restarting the environment

The rise in space is coming from your MySQL temporary tablespace that is enabled. Non-compressed, user-created temporary tables and on-disk internal temporary tables are created in a shared temporary tablespace. This information is cleaned up when MySQL restarts ( or when the server reboots).

[12:39:05 server root@server ~]aict# mysql -e "SELECT @@innodb_temp_data_file_path;"
+------------------------------+
| @@innodb_temp_data_file_path |
+------------------------------+
| ibtmp1:12M:autoextend        |
+------------------------------+

 

var/lib/mysql
-rw-r-----  1 mysql mysql 212G Apr 12 12:39 ibtmp1

More in-depth information about the temporary tablespace can be found in MySQL documentation: 
https://dev.mysql.com/doc/refman/5.7/en/innodb-temporary-tablespace.html

In order to solve this issue edit /etc/my.cnf

Add below:

innodb_temp_data_file_path=ibtmp1:64M:autoextend:max:20G

Then restart the MySQL the issue must be solved now.

 

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Run OPTIMIZE TABLE to defragment tables for better performance

For this suggestion:Run OPTIMIZE TABLE to defragment tables for better performanceRun this...

How to clear Error Log of a cPanel Account.

User the below code to clear Error Log:Replace User with Username:Code:for i in `find...

What is php.ini ?

The php.ini file and changing PHP Settings The php.ini file is a special file for PHP and...

How to fix ini_set() has been disabled for security reasons

1. Create php.ini file inside your public_html folder, OR the folder in which you have...

How to fix Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone:

1: Create .htaccess file inside your public_html folder, OR the folder in which you have...