• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

MySQL - Too many connections

X

Xtrm2Matt

Guest
Hi there,

Every other night for the past few nights, I've woken up to find my websites and game servers not responding due to MySQL having all it's connections used up. I've just checked the set connections (using mysqld --verbose --help) and it's set to 100.

I've tried looking in the my.ini (found in C:\Program Files\SWsoft\Plesk\Databases\MySQL\Data and also C:\Program Files\SWsoft\Plesk\MySQL\Data) and max_connections is set to 300 in there, so obviously it doesn't read from that config.

1 - Could someone please tell me where the my.ini that Plesk uses is?
2 - Is MySQL limited to use so much RAM/CPU (by default)? <-- If so, how do I let it use more?
3 - Is there any other config-related "tweaks" I could add / change to make MySQL perform better?

Thank you.
 
Actually Plesk 7.5.x use two MySQL instances. One of it installed at %plesk_dir%\Databases\MySQL\ and used for users databases, second installed at %plesk_dir%\MySQL\Data and used for internal Plesk needs. Config files for MySQL stored in Data folder in corresponding locations.

Actually it's quite useful to update Plesk up to 7.5.6 version and both MySQL up to 4.1.18
You can find details about how to update MySQL on Plesk servers in KB article at http://kb.swsoft.com/article_147_1077_en.html
 
Hi there,

I've updated MySQL now (as said above) for both the internal and external MySQL instance. I've checked the configs in both dirs, and double checked them, and the max_connections specified in there is 500 in one, and 800 in the other. However, mysqld --verbose --help still shows max_connections as 100 (and I've restarted MySQL numerous times).

Is it possible that mysqld isn't showing the correct max_connections? Bare in mind it does show the dirs, etc, correctly.

Thank you.
 
I have same problem with plesk 7.5.4

mysql : too many connection
i always get this error.
 
Hi there,

I've found out that mysqld's reading of max_connections is infact false. If you change max_connections in the /Databases/MySQL/Data/my.ini, restart MySQL then check in phpMyAdmin (the one which comes default with Plesk), then that reads max_connections = xxx (e.g., mine is 800 now).

Thanks for the support.

Matt
 
Back
Top