Bug #115736 mysql-connector-j 8.4.0 slow initialization
Submitted: 1 Aug 2024 7:01 Modified: 1 Aug 2024 8:17
Reporter: Hyacinth Lelouch Email Updates:
Status: Duplicate Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:8.4.0 OS:Any
Assigned to: CPU Architecture:Any (ARM64 And X86-64)
Tags: initialization, mysql-connector-j 8.4.0, slow

[1 Aug 2024 7:01] Hyacinth Lelouch
Description:
I'm using springboot3.2,HikariCP or Druid connection pool initialization in jdk21 and mysql-connector-j 8.4.0 will encounter that the arm64 m1pro soc macbook connection duration is exactly 30 seconds, using linux intel server initialization speed also takes more than 2 seconds, Neither mysql-Connector-J 8.3.0 nor mysql-Connector-J 8.2.0 will experience this situation and the macbook 30 seconds is a fixed time, presumably some sort of mysql server connection and jdbc compatibility issue will hopefully be resolved,my mysql server version is MySQL (ver. 8.0.26-16

How to repeat:
springboot3.2+jdk21+mysql-connector-j 8.4.0 + mybatis plus + druid or HikariCP
First connection MySQL (ver. 8.0.26-16

Suggested fix:
init connection bug
[1 Aug 2024 8:17] MySQL Verification Team
Hello Hyacinth Lelouch,

Thank you for the report and feedback.
This is most likely duplicate of Bug #115586, please see Bug #115586

regards,
Umesh