When connecting with SSL from ODBC via WLAN , we can connect once and than closing ODBC , but after doing so reconnection get impossible.
We observe some pending connection in login state
847 | unauthenticated user | 192.168.100.50:58464 | NULL | Connect | 4388 | login | NULL | 0.000 |
|
| 878 | unauthenticated user | 192.168.100.50:58934 | NULL | Connect | 4334 | login | NULL | 0.000 |
|
| 914 | unauthenticated user | 192.168.100.50:59452 | NULL | Connect | 4277 | login | NULL | 0.000 |
|
| 920 | unauthenticated user | 192.168.100.50:59644 | NULL | Connect | 4253 | login | NULL | 0.000 |
|
| 925 | unauthenticated user | 192.168.100.50:60098 | NULL | Connect | 4204 | login | NULL | 0.000 |
|
| 926 | unauthenticated user | 192.168.100.50:60162 | NULL | Connect | 4196 | login | NULL | 0.000 |
|
| 945 | unauthenticated user | 192.168.100.50:33364 | NULL | Connect | 4035 | login | NULL | 0.000 |
|
| 967 | unauthenticated user | 192.168.100.50:35166 | NULL | Connect | 3835 | login | NULL | 0.000 |
|
| 972 | unauthenticated user | 192.168.100.50:35490 | NULL | Connect | 3799 | login
|
And database SQL become very slow for all operations, i guess that's an effect of thread pool.
Note VM has only one core, so thread_pool_size is 1
Killing those unauthenticated treads make the database performance back to normal .
So far downgrading to last 10.1 looks a valid workaround
Test was done using
Windows ODBC MySQL 3.51.30 32 bits
Windows ODBC MariaDB 3.0.2 32 bits
Connections to user that don't have USING_SSL never trigger this issue
custom variables
[mariadb]
|
|
max_connections = 500
|
max_user_connections = 450
|
thread_cache_size = 32
|
back_log = 128
|
skip_name_resolve = 1
|
max_allowed_packet = 512M
|
|
# Disabling symbolic-links is recommended to prevent assorted security risks
|
# symbolic-links = 0
|
sysdate_is_now = 1
|
connect_timeout = 10
|
bind-address = 192.168.100.71
|
|
local_infile = 0
|
max_connect_errors = 1000000
|
# pam_use_cleartext_plugin = ON
|
# secure_auth = 1
|
skip_show_database = 1
|
|
thread_handling = pool-of-threads
|
extra_port = 3307
|
extra_max_connections = 10
|
|
ssl
|
ssl-ca=/etc/mysql/ssl/ca-cert.pem
|
ssl-cert=/etc/mysql/ssl/server-cert.pem
|
ssl-key=/etc/mysql/ssl/server-key.pem
|
|
plugin_load_add ="semisync_master.so"
|
plugin_load_add ="semisync_slave.so"
|
|
loose_rpl_semi_sync_master = ON
|
loose_rpl_semi_sync_slave = ON
|
loose_rpl_semi_sync_master_enabled = ON
|
loose_rpl_semi_sync_slave_enabled = ON
|
|
sql_mode=''
|
|
open_files_limit = 65000
|
tmp_table_size = 256M
|
max_heap_table_size = 256M
|
key_buffer_size = 1000M
|
table_open_cache = 1024
|
table_definition_cache = 1024
|
max_allowed_packet = 512M
|
sort_buffer_size = 1M
|
read_buffer_size = 256K
|
join_buffer_size = 128M
|
|
innodb_buffer_pool_populate=0
|
innodb_force_primary_key = 1
|
innodb_default_row_format=dynamic
|
innodb_defragment = 1
|
|
|
transaction-isolation=READ-COMMITTED
|
default_storage_engine = InnoDB
|
innodb_adaptive_hash_index = 0
|
innodb_buffer_pool_size = 256M
|
innodb_buffer_pool_instances = 1
|
innodb_flush_log_at_trx_commit = 1
|
innodb_file_per_table=1
|
innodb_read_io_threads = 1
|
innodb_write_io_threads = 1
|
innodb_io_capacity = 150
|
innodb_io_capacity_max = 300
|
innodb_max_dirty_pages_pct = 10
|
innodb_flush_neighbors = 1
|
innodb_doublewrite = 1
|
innodb_log_file_size = 1024M
|
innodb_log_buffer_size = 256M
|
innodb_log_files_in_group = 4
|
innodb_thread_concurrency = 0
|
innodb_file_format = barracuda
|
innodb_flush_method = O_DIRECT
|
|
#innodb_undo_tablespaces = 4
|
innodb_autoinc_lock_mode = 2
|
innodb_stats_on_metadata = 0
|
innodb_buffer_pool_dump_at_shutdown = 1
|
innodb_buffer_pool_load_at_startup = 1
|
innodb_open_files = 16384
|
innodb_purge_threads = 8
|
innodb_change_buffering=none
|
innodb_concurrency_tickets =5000
|
{"report":{"fcp":1389.5,"ttfb":274.7000002861023,"pageVisibility":"visible","entityId":65009,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":0.5,"journeyId":"0cb664cf-8384-4deb-93c8-b53dacd64f39","navigationType":0,"readyForUser":1516.2000002861023,"redirectCount":0,"resourceLoadedEnd":937.3000001907349,"resourceLoadedStart":282.90000009536743,"resourceTiming":[{"duration":142.40000009536743,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":282.90000009536743,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":282.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":425.30000019073486,"responseStart":0,"secureConnectionStart":0},{"duration":142.2999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":283.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":283.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":425.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":390.30000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":283.40000009536743,"connectEnd":428.5,"connectStart":428.5,"domainLookupEnd":428.5,"domainLookupStart":428.5,"fetchStart":283.40000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":431.2000002861023,"responseEnd":673.7000002861023,"responseStart":448.90000009536743,"secureConnectionStart":428.5},{"duration":653.7000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":283.59999990463257,"connectEnd":283.59999990463257,"connectStart":283.59999990463257,"domainLookupEnd":283.59999990463257,"domainLookupStart":283.59999990463257,"fetchStart":283.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":438.2000002861023,"responseEnd":937.3000001907349,"responseStart":452.59999990463257,"secureConnectionStart":283.59999990463257},{"duration":182.09999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":283.80000019073486,"connectEnd":283.80000019073486,"connectStart":283.80000019073486,"domainLookupEnd":283.80000019073486,"domainLookupStart":283.80000019073486,"fetchStart":283.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":440.80000019073486,"responseEnd":465.90000009536743,"responseStart":465.09999990463257,"secureConnectionStart":283.80000019073486},{"duration":219.59999990463257,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":284,"connectEnd":284,"connectStart":284,"domainLookupEnd":284,"domainLookupStart":284,"fetchStart":284,"redirectEnd":0,"redirectStart":0,"requestStart":451,"responseEnd":503.59999990463257,"responseStart":488.90000009536743,"secureConnectionStart":284},{"duration":220.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":284.2000002861023,"connectEnd":284.2000002861023,"connectStart":284.2000002861023,"domainLookupEnd":284.2000002861023,"domainLookupStart":284.2000002861023,"fetchStart":284.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":451.80000019073486,"responseEnd":504.7000002861023,"responseStart":489.80000019073486,"secureConnectionStart":284.2000002861023},{"duration":164.2999997138977,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":284.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":284.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":448.59999990463257,"responseStart":0,"secureConnectionStart":0},{"duration":227.2000002861023,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":284.5,"connectEnd":284.5,"connectStart":284.5,"domainLookupEnd":284.5,"domainLookupStart":284.5,"fetchStart":284.5,"redirectEnd":0,"redirectStart":0,"requestStart":457.30000019073486,"responseEnd":511.7000002861023,"responseStart":506.59999990463257,"secureConnectionStart":284.5},{"duration":171.10000038146973,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":284.59999990463257,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":284.59999990463257,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":455.7000002861023,"responseStart":0,"secureConnectionStart":0},{"duration":236.69999980926514,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":284.80000019073486,"connectEnd":284.80000019073486,"connectStart":284.80000019073486,"domainLookupEnd":284.80000019073486,"domainLookupStart":284.80000019073486,"fetchStart":284.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":459.30000019073486,"responseEnd":521.5,"responseStart":509,"secureConnectionStart":284.80000019073486},{"duration":598.0999999046326,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":314.80000019073486,"connectEnd":314.80000019073486,"connectStart":314.80000019073486,"domainLookupEnd":314.80000019073486,"domainLookupStart":314.80000019073486,"fetchStart":314.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":846.5999999046326,"responseEnd":912.9000000953674,"responseStart":871.9000000953674,"secureConnectionStart":314.80000019073486},{"duration":598.1999998092651,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":314.90000009536743,"connectEnd":314.90000009536743,"connectStart":314.90000009536743,"domainLookupEnd":314.90000009536743,"domainLookupStart":314.90000009536743,"fetchStart":314.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":846.8000001907349,"responseEnd":913.0999999046326,"responseStart":908.9000000953674,"secureConnectionStart":314.90000009536743},{"duration":254.7000002861023,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":902.0999999046326,"connectEnd":902.0999999046326,"connectStart":902.0999999046326,"domainLookupEnd":902.0999999046326,"domainLookupStart":902.0999999046326,"fetchStart":902.0999999046326,"redirectEnd":0,"redirectStart":0,"requestStart":1115.0999999046326,"responseEnd":1156.8000001907349,"responseStart":1156.2000002861023,"secureConnectionStart":902.0999999046326},{"duration":78.09999990463257,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":1241.7000002861023,"connectEnd":1241.7000002861023,"connectStart":1241.7000002861023,"domainLookupEnd":1241.7000002861023,"domainLookupStart":1241.7000002861023,"fetchStart":1241.7000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":1284.0999999046326,"responseEnd":1319.8000001907349,"responseStart":1319.0999999046326,"secureConnectionStart":1241.7000002861023}],"fetchStart":0,"domainLookupStart":54,"domainLookupEnd":56,"connectStart":56,"connectEnd":81,"secureConnectionStart":67,"requestStart":81,"responseStart":274,"responseEnd":316,"domLoading":281,"domInteractive":1672,"domContentLoadedEventStart":1672,"domContentLoadedEventEnd":1761,"domComplete":2206,"loadEventStart":2206,"loadEventEnd":2207,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":1618.3000001907349},{"name":"bigPipe.sidebar-id.end","time":1619.2000002861023},{"name":"bigPipe.activity-panel-pipe-id.start","time":1620},{"name":"bigPipe.activity-panel-pipe-id.end","time":1624.5999999046326},{"name":"activityTabFullyLoaded","time":1782.8000001907349}],"measures":[],"correlationId":"611f28bb5bed0a","effectiveType":"4g","downlink":9.1,"rtt":0,"serverDuration":96,"dbReadsTimeInMs":12,"dbConnsTimeInMs":22,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}
stephane@skysql.com, can you provide all threads stacks if this situation occurs?
"thread apply all bt" . we should count idle thread as idle, but perhaps it is not happening on some reason.