question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Read results metadata' takes a long time (MySQL)

See original GitHub issue

System information:

  • OS: macOS Monteray (v12.3.1)
  • DBeaver version: 22.0.4 CE
  • Additional extensions: None

Connection specification:

  • Database name and version: MySQL 8.0.13-4
  • Driver name: MySQL (id: mysql8; mysql-connector-java:8.0.17)
  • Do you use tunnels or proxies (SSH, SOCKS, etc): No

Describe the problem you’re observing:

When performing a query, where the resultset is ‘non-default’ then loading the results metadata takes a long time (5 minutes). ‘Non-default’: A set of columns from a select query with a JOIN clause.

Similar issues

#4283 #7008

Steps to reproduce, if exist:

SELECT Invoice.InvoiceId, C.LastName, C.Address,
       Invoice.Total, Invoice.InvoiceDate,
       IL.Quantity, IL.UnitPrice,
       T.Name
  FROM Invoice
  JOIN Customer C on C.CustomerId = Invoice.CustomerId
  JOIN InvoiceLine IL on Invoice.InvoiceId = IL.InvoiceId
  JOIN Track T on T.TrackId = IL.TrackId
 WHERE Invoice.InvoiceId = 11;

Include any warning/errors/backtraces from the logs

From the Query-log:
!ENTRY org.jkiss.dbeaver.model 1 95 2022-05-13 12:01:03.003
!MESSAGE SELECT DATABASE()
!SUBENTRY 1 org.jkiss.dbeaver.model 4 0 2022-05-13 12:01:03.003
!MESSAGE The last packet successfully received from the server was 313,647 milliseconds ago.  The last packet sent successfully to the server was 313,670 milliseconds ago. is longer than the server configured value of 'interactive_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
Thread Dump during the Reading of metadata
2022-05-13 11:59:54
Full thread dump OpenJDK 64-Bit Server VM (11.0.12+7 mixed mode):

Threads class SMR info:
_java_thread_list=0x0000600003606d00, length=35, elements={
0x00007f87c680a800, 0x00007f87c68a1000, 0x00007f87c6025000, 0x00007f87c802e800,
0x00007f87c689f000, 0x00007f87c68ae000, 0x00007f87c7813800, 0x00007f87c700b000,
0x00007f87c602e800, 0x00007f87c702e000, 0x00007f87c72d9800, 0x00007f87c7876800,
0x00007f87c500c000, 0x00007f87c63a5800, 0x00007f87c6b13800, 0x00007f87cd81c800,
0x00007f87c6ad1000, 0x00007f87c830f000, 0x00007f87c72d8800, 0x00007f87c6717000,
0x00007f87c6751800, 0x00007f87c675a000, 0x00007f87c6b6e000, 0x00007f87c6acb000,
0x00007f87cf883800, 0x00007f87cf886000, 0x00007f87c6721000, 0x00007f87c69de000,
0x00007f87ce090000, 0x00007f87cf9d0000, 0x00007f87c7d6f000, 0x00007f87c7a9f000,
0x00007f87c7d67800, 0x00007f87cec0a000, 0x00007f87c7d68800
}

"main" #1 prio=6 os_prio=31 cpu=39166.26ms elapsed=280.06s tid=0x00007f87c680a800 nid=0x103 runnable  [0x00007ff7bcfa7000]
   java.lang.Thread.State: RUNNABLE
        at org.eclipse.swt.internal.cocoa.OS.objc_msgSend_bool(Native Method)
        at org.eclipse.swt.internal.cocoa.NSRunLoop.runMode(NSRunLoop.java:40)
        at org.eclipse.swt.widgets.Display.sleep(Display.java:5145)
        at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:339)
        at org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor.eventLoopIdle(IDEWorkbenchAdvisor.java:994)
        at org.jkiss.dbeaver.ui.app.standalone.ApplicationWorkbenchAdvisor.eventLoopIdle(ApplicationWorkbenchAdvisor.java:306)
        at org.eclipse.ui.internal.Workbench$1.eventLoopIdle(Workbench.java:479)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1160)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
        at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
        at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
        at org.eclipse.ui.internal.Workbench$$Lambda$194/0x00000001003f0040.run(Unknown Source)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
        at org.jkiss.dbeaver.ui.app.standalone.DBeaverApplication.start(DBeaverApplication.java:269)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@11.0.12/Native Method)
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@11.0.12/Unknown Source)
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@11.0.12/Unknown Source)
        at java.lang.reflect.Method.invoke(java.base@11.0.12/Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1467)

"Reference Handler" #2 daemon prio=10 os_prio=31 cpu=1.95ms elapsed=280.04s tid=0x00007f87c68a1000 nid=0x6603 waiting on condition  [0x0000700001bed000]
   java.lang.Thread.State: RUNNABLE
        at java.lang.ref.Reference.waitForReferencePendingList(java.base@11.0.12/Native Method)
        at java.lang.ref.Reference.processPendingReferences(java.base@11.0.12/Unknown Source)
        at java.lang.ref.Reference$ReferenceHandler.run(java.base@11.0.12/Unknown Source)

"Finalizer" #3 daemon prio=8 os_prio=31 cpu=0.34ms elapsed=280.04s tid=0x00007f87c6025000 nid=0x9803 in Object.wait()  [0x0000700001cf0000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at java.lang.ref.ReferenceQueue.remove(java.base@11.0.12/Unknown Source)
        - waiting to re-lock in wait() <0x00000000c00dbd00> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(java.base@11.0.12/Unknown Source)
        at java.lang.ref.Finalizer$FinalizerThread.run(java.base@11.0.12/Unknown Source)

"Signal Dispatcher" #4 daemon prio=9 os_prio=31 cpu=0.19ms elapsed=280.03s tid=0x00007f87c802e800 nid=0x6a03 runnable  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Service Thread" #5 daemon prio=9 os_prio=31 cpu=0.04ms elapsed=280.03s tid=0x00007f87c689f000 nid=0x9403 runnable  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"C2 CompilerThread0" #6 daemon prio=9 os_prio=31 cpu=12608.12ms elapsed=280.03s tid=0x00007f87c68ae000 nid=0x9203 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE
   No compile task

"C1 CompilerThread0" #9 daemon prio=9 os_prio=31 cpu=2680.44ms elapsed=280.03s tid=0x00007f87c7813800 nid=0x6d03 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE
   No compile task

"Sweeper thread" #10 daemon prio=9 os_prio=31 cpu=5.91ms elapsed=280.03s tid=0x00007f87c700b000 nid=0x8d03 runnable  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Common-Cleaner" #11 daemon prio=8 os_prio=31 cpu=1.72ms elapsed=280.00s tid=0x00007f87c602e800 nid=0x8a03 in Object.wait()  [0x0000700002302000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at java.lang.ref.ReferenceQueue.remove(java.base@11.0.12/Unknown Source)
        - waiting to re-lock in wait() <0x00000000c03b8c60> (a java.lang.ref.ReferenceQueue$Lock)
        at jdk.internal.ref.CleanerImpl.run(java.base@11.0.12/Unknown Source)
        at java.lang.Thread.run(java.base@11.0.12/Unknown Source)
        at jdk.internal.misc.InnocuousThread.run(java.base@11.0.12/Unknown Source)

"Active Thread: Equinox Container: 5c750ede-96e7-4ef2-aeb3-3c2019839b68" #13 prio=5 os_prio=31 cpu=2.53ms elapsed=279.57s tid=0x00007f87c702e000 nid=0x14403 waiting on condition  [0x0000700002ca0000]
   java.lang.Thread.State: TIMED_WAITING (parking)
        at jdk.internal.misc.Unsafe.park(java.base@11.0.12/Native Method)
        - parking to wait for  <0x00000000c086c030> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.parkNanos(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.12/Unknown Source)
        at java.lang.Thread.run(java.base@11.0.12/Unknown Source)

"Framework Event Dispatcher: Equinox Container: 5c750ede-96e7-4ef2-aeb3-3c2019839b68" #15 daemon prio=5 os_prio=31 cpu=35.75ms elapsed=279.44s tid=0x00007f87c72d9800 nid=0xc703 in Object.wait()  [0x0000700002da3000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at java.lang.Object.wait(java.base@11.0.12/Unknown Source)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
        - waiting to re-lock in wait() <0x00000000c0857968> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:341)

"Start Level: Equinox Container: 5c750ede-96e7-4ef2-aeb3-3c2019839b68" #16 daemon prio=5 os_prio=31 cpu=307.07ms elapsed=279.44s tid=0x00007f87c7876800 nid=0x14103 in Object.wait()  [0x0000700002ea6000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <0x00000000c0857b60> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
        at java.lang.Object.wait(java.base@11.0.12/Unknown Source)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
        - waiting to re-lock in wait() <0x00000000c0857b60> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:341)

"SCR Component Actor" #17 daemon prio=5 os_prio=31 cpu=0.19ms elapsed=279.42s tid=0x00007f87c500c000 nid=0xda13 in Object.wait()  [0x0000700002fa9000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <0x00000000c0857e50> (a java.util.LinkedList)
        at java.lang.Object.wait(java.base@11.0.12/Unknown Source)
        at org.apache.felix.scr.impl.ComponentActorThread.run(ComponentActorThread.java:83)
        - waiting to re-lock in wait() <0x00000000c0857e50> (a java.util.LinkedList)
        at java.lang.Thread.run(java.base@11.0.12/Unknown Source)

"EMF Reference Cleaner" #19 daemon prio=5 os_prio=31 cpu=1.29ms elapsed=279.19s tid=0x00007f87c63a5800 nid=0x12b03 in Object.wait()  [0x00007000033b5000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at java.lang.ref.ReferenceQueue.remove(java.base@11.0.12/Unknown Source)
        - waiting to re-lock in wait() <0x00000000c086c418> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(java.base@11.0.12/Unknown Source)
        at org.eclipse.emf.common.util.CommonUtil$1ReferenceClearingQueuePollingThread.run(CommonUtil.java:70)

"Bundle File Closer" #20 daemon prio=5 os_prio=31 cpu=13.00ms elapsed=279.08s tid=0x00007f87c6b13800 nid=0x12903 in Object.wait()  [0x00007000034b8000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at java.lang.Object.wait(java.base@11.0.12/Unknown Source)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
        - waiting to re-lock in wait() <0x00000000c0858140> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:341)

"Worker-JM" #21 prio=5 os_prio=31 cpu=0.14ms elapsed=279.06s tid=0x00007f87cd81c800 nid=0xe503 in Object.wait()  [0x00007000037c1000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <0x00000000c0b71178> (a java.util.ArrayList)
        at org.eclipse.core.internal.jobs.InternalWorker.run(InternalWorker.java:61)
        - waiting to re-lock in wait() <0x00000000c0b71178> (a java.util.ArrayList)

"Database navigator events processor" #22 prio=5 os_prio=31 cpu=116.31ms elapsed=278.97s tid=0x00007f87c6ad1000 nid=0x12503 waiting on condition  [0x00007000038c4000]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
        at java.lang.Thread.sleep(java.base@11.0.12/Native Method)
        at org.jkiss.dbeaver.utils.RuntimeUtils.pause(RuntimeUtils.java:165)
        at org.jkiss.dbeaver.model.navigator.DBNModel$EventProcessingJob.run(DBNModel.java:720)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

"Worker-1" #23 prio=5 os_prio=31 cpu=726.50ms elapsed=278.65s tid=0x00007f87c830f000 nid=0xea03 in Object.wait()  [0x0000700003dd3000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:200)
        - waiting to re-lock in wait() <0x00000000c0b838a0> (a org.eclipse.core.internal.jobs.WorkerPool)
        at org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:242)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

"RMI TCP Accept-64726" #26 daemon prio=6 os_prio=31 cpu=0.52ms elapsed=278.49s tid=0x00007f87c72d8800 nid=0xf503 runnable  [0x000070000405f000]
   java.lang.Thread.State: RUNNABLE
        at java.net.PlainSocketImpl.socketAccept(java.base@11.0.12/Native Method)
        at java.net.AbstractPlainSocketImpl.accept(java.base@11.0.12/Unknown Source)
        at java.net.ServerSocket.implAccept(java.base@11.0.12/Unknown Source)
        at java.net.ServerSocket.accept(java.base@11.0.12/Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(java.rmi@11.0.12/Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(java.rmi@11.0.12/Unknown Source)
        at java.lang.Thread.run(java.base@11.0.12/Unknown Source)

"RMI TCP Accept-0" #27 daemon prio=6 os_prio=31 cpu=0.09ms elapsed=278.49s tid=0x00007f87c6717000 nid=0x11803 runnable  [0x0000700004162000]
   java.lang.Thread.State: RUNNABLE
        at java.net.PlainSocketImpl.socketAccept(java.base@11.0.12/Native Method)
        at java.net.AbstractPlainSocketImpl.accept(java.base@11.0.12/Unknown Source)
        at java.net.ServerSocket.implAccept(java.base@11.0.12/Unknown Source)
        at java.net.ServerSocket.accept(java.base@11.0.12/Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(java.rmi@11.0.12/Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(java.rmi@11.0.12/Unknown Source)
        at java.lang.Thread.run(java.base@11.0.12/Unknown Source)

"RMI Reaper" #28 prio=6 os_prio=31 cpu=0.11ms elapsed=278.49s tid=0x00007f87c6751800 nid=0x11703 in Object.wait()  [0x0000700004265000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <0x00000000c0e7a890> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(java.base@11.0.12/Unknown Source)
        - waiting to re-lock in wait() <0x00000000c0e7a890> (a java.lang.ref.ReferenceQueue$Lock)
        at java.lang.ref.ReferenceQueue.remove(java.base@11.0.12/Unknown Source)
        at sun.rmi.transport.ObjectTable$Reaper.run(java.rmi@11.0.12/Unknown Source)
        at java.lang.Thread.run(java.base@11.0.12/Unknown Source)

"RMI GC Daemon" #29 daemon prio=2 os_prio=31 cpu=0.52ms elapsed=278.49s tid=0x00007f87c675a000 nid=0xf803 in Object.wait()  [0x0000700004368000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <0x00000000c0ea4a48> (a sun.rmi.transport.GC$LatencyLock)
        at sun.rmi.transport.GC$Daemon.run(java.rmi@11.0.12/Unknown Source)
        - waiting to re-lock in wait() <0x00000000c0ea4a48> (a sun.rmi.transport.GC$LatencyLock)
        at java.lang.Thread.run(java.base@11.0.12/Unknown Source)
        at jdk.internal.misc.InnocuousThread.run(java.base@11.0.12/Unknown Source)

"DBeaver: Read data [SELECT Invoice.InvoiceId, C.LastName, C.Address,
       Invoice.Total, Invoice.InvoiceDate,
       IL.Quantity, IL.UnitPrice,
       T.Name
  FROM Invoice
  JOIN Customer C on C.CustomerId = Invoice.CustomerId
  JOIN InvoiceLine IL on Invoice.InvoiceId = IL.InvoiceId
  JOIN Track T on T.TrackId = IL.TrackId
 WHERE Invoice.InvoiceId = 11]" #30 prio=5 os_prio=31 cpu=114.00ms elapsed=278.41s tid=0x00007f87c6b6e000 nid=0xfb03 runnable  [0x0000700004469000]
   java.lang.Thread.State: RUNNABLE
        at java.net.SocketInputStream.socketRead0(java.base@11.0.12/Native Method)
        at java.net.SocketInputStream.socketRead(java.base@11.0.12/Unknown Source)
        at java.net.SocketInputStream.read(java.base@11.0.12/Unknown Source)
        at java.net.SocketInputStream.read(java.base@11.0.12/Unknown Source)
        at com.mysql.cj.protocol.ReadAheadInputStream.fill(ReadAheadInputStream.java:107)
        at com.mysql.cj.protocol.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:150)
        at com.mysql.cj.protocol.ReadAheadInputStream.read(ReadAheadInputStream.java:180)
        - locked <0x00000000c23ff770> (a com.mysql.cj.protocol.ReadAheadInputStream)
        at java.io.FilterInputStream.read(java.base@11.0.12/Unknown Source)
        at com.mysql.cj.protocol.FullReadInputStream.readFully(FullReadInputStream.java:64)
        at com.mysql.cj.protocol.a.SimplePacketReader.readHeader(SimplePacketReader.java:63)
        at com.mysql.cj.protocol.a.SimplePacketReader.readHeader(SimplePacketReader.java:45)
        at com.mysql.cj.protocol.a.TimeTrackingPacketReader.readHeader(TimeTrackingPacketReader.java:52)
        at com.mysql.cj.protocol.a.TimeTrackingPacketReader.readHeader(TimeTrackingPacketReader.java:41)
        at com.mysql.cj.protocol.a.MultiPacketReader.readHeader(MultiPacketReader.java:54)
        at com.mysql.cj.protocol.a.MultiPacketReader.readHeader(MultiPacketReader.java:44)
        at com.mysql.cj.protocol.a.NativeProtocol.readMessage(NativeProtocol.java:535)
        at com.mysql.cj.protocol.a.NativeProtocol.checkErrorMessage(NativeProtocol.java:711)
        at com.mysql.cj.protocol.a.NativeProtocol.sendCommand(NativeProtocol.java:650)
        at com.mysql.cj.protocol.a.NativeProtocol.sendQueryPacket(NativeProtocol.java:949)
        at com.mysql.cj.NativeSession.execSQL(NativeSession.java:1113)
        at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:930)
        - locked <0x00000000c23fd4f0> (a com.mysql.cj.jdbc.ConnectionImpl)
        at com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:370)
        - locked <0x00000000c23fd4f0> (a com.mysql.cj.jdbc.ConnectionImpl)
        at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCPreparedStatementImpl.execute(JDBCPreparedStatementImpl.java:261)
        at org.jkiss.dbeaver.model.impl.jdbc.exec.JDBCPreparedStatementImpl.executeStatement(JDBCPreparedStatementImpl.java:205)
        at org.jkiss.dbeaver.model.impl.jdbc.cache.JDBCCompositeCache.loadObjects(JDBCCompositeCache.java:291)
        at org.jkiss.dbeaver.model.impl.jdbc.cache.JDBCCompositeCache.getObjects(JDBCCompositeCache.java:120)
        at org.jkiss.dbeaver.ext.mysql.model.MySQLTable.getConstraints(MySQLTable.java:232)
        at org.jkiss.dbeaver.ext.mysql.model.MySQLTable.loadForeignKeys(MySQLTable.java:448)
        at org.jkiss.dbeaver.ext.mysql.model.MySQLTable.getAssociations(MySQLTable.java:280)
        - locked <0x00000000c3407878> (a org.jkiss.dbeaver.ext.mysql.model.MySQLTable)
        at org.jkiss.dbeaver.model.virtual.DBVUtils.getAllAssociations(DBVUtils.java:329)
        at org.jkiss.dbeaver.model.DBUtils.getAttributeReferrers(DBUtils.java:950)
        at org.jkiss.dbeaver.model.data.DBDAttributeBindingMeta.lateBinding(DBDAttributeBindingMeta.java:263)
        at org.jkiss.dbeaver.model.exec.DBExecUtils.bindAttributes(DBExecUtils.java:824)
        at org.jkiss.dbeaver.ui.controls.resultset.ResultSetDataReceiver.fetchEnd(ResultSetDataReceiver.java:164)
        at org.jkiss.dbeaver.ui.editors.sql.execute.SQLQueryJob.fetchQueryData(SQLQueryJob.java:799)
        at org.jkiss.dbeaver.ui.editors.sql.execute.SQLQueryJob.executeStatement(SQLQueryJob.java:606)
        at org.jkiss.dbeaver.ui.editors.sql.execute.SQLQueryJob.lambda$1(SQLQueryJob.java:484)
        at org.jkiss.dbeaver.ui.editors.sql.execute.SQLQueryJob$$Lambda$884/0x0000000100a63440.run(Unknown Source)
        at org.jkiss.dbeaver.model.exec.DBExecUtils.tryExecuteRecover(DBExecUtils.java:171)
        at org.jkiss.dbeaver.ui.editors.sql.execute.SQLQueryJob.executeSingleQuery(SQLQueryJob.java:491)
        at org.jkiss.dbeaver.ui.editors.sql.execute.SQLQueryJob.extractData(SQLQueryJob.java:878)
        at org.jkiss.dbeaver.ui.editors.sql.SQLEditor$QueryResultsContainer.readData(SQLEditor.java:3515)
        at org.jkiss.dbeaver.ui.controls.resultset.ResultSetJobDataRead.lambda$0(ResultSetJobDataRead.java:118)
        at org.jkiss.dbeaver.ui.controls.resultset.ResultSetJobDataRead$$Lambda$880/0x0000000100a61840.run(Unknown Source)
        at org.jkiss.dbeaver.model.exec.DBExecUtils.tryExecuteRecover(DBExecUtils.java:171)
        at org.jkiss.dbeaver.ui.controls.resultset.ResultSetJobDataRead.run(ResultSetJobDataRead.java:116)
        at org.jkiss.dbeaver.ui.controls.resultset.ResultSetViewer$ResultSetDataPumpJob.run(ResultSetViewer.java:4855)
        at org.jkiss.dbeaver.model.runtime.AbstractJob.run(AbstractJob.java:105)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

"Worker-3" #31 prio=5 os_prio=31 cpu=461.02ms elapsed=277.55s tid=0x00007f87c6acb000 nid=0x6e07 in Object.wait()  [0x0000700002508000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:200)
        - waiting to re-lock in wait() <0x00000000c0b838a0> (a org.eclipse.core.internal.jobs.WorkerPool)
        at org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:242)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

"EventAdmin Async Event Dispatcher Thread" #33 daemon prio=6 os_prio=31 cpu=12.26ms elapsed=276.38s tid=0x00007f87cf883800 nid=0x1670b in Object.wait()  [0x00007000047f7000]
   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at java.lang.Object.wait(java.base@11.0.12/Unknown Source)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.getNextEvent(EventManager.java:400)
        - waiting to re-lock in wait() <0x00000000c1df9800> (a org.eclipse.osgi.framework.eventmgr.EventManager$EventThread)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:341)

"pool-1-thread-1" #34 prio=5 os_prio=31 cpu=5.09ms elapsed=276.37s tid=0x00007f87cf886000 nid=0x1ec03 waiting on condition  [0x00007000048fa000]
   java.lang.Thread.State: WAITING (parking)
        at jdk.internal.misc.Unsafe.park(java.base@11.0.12/Native Method)
        - parking to wait for  <0x00000000c1e00170> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.LinkedBlockingQueue.take(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.12/Unknown Source)
        at java.lang.Thread.run(java.base@11.0.12/Unknown Source)

"pool-2-thread-1" #35 prio=5 os_prio=31 cpu=1.31ms elapsed=276.37s tid=0x00007f87c6721000 nid=0x16b03 waiting on condition  [0x00007000049fd000]
   java.lang.Thread.State: WAITING (parking)
        at jdk.internal.misc.Unsafe.park(java.base@11.0.12/Native Method)
        - parking to wait for  <0x00000000c1e0d740> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
        at java.util.concurrent.locks.LockSupport.park(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.LinkedBlockingQueue.take(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.getTask(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.12/Unknown Source)
        at java.lang.Thread.run(java.base@11.0.12/Unknown Source)

"mysql-cj-abandoned-connection-cleanup" #36 daemon prio=5 os_prio=31 cpu=6.08ms elapsed=272.93s tid=0x00007f87c69de000 nid=0x18a0b in Object.wait()  [0x0000700004b00000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at java.lang.ref.ReferenceQueue.remove(java.base@11.0.12/Unknown Source)
        - waiting to re-lock in wait() <0x00000000c2210ff0> (a java.lang.ref.ReferenceQueue$Lock)
        at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:85)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@11.0.12/Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@11.0.12/Unknown Source)
        at java.lang.Thread.run(java.base@11.0.12/Unknown Source)

"org.eclipse.jface.text.reconciler.MonoReconciler" #37 daemon prio=1 os_prio=31 cpu=22.91ms elapsed=258.03s tid=0x00007f87ce090000 nid=0x16d1f in Object.wait()  [0x0000700004c86000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at org.eclipse.jface.text.reconciler.AbstractReconciler.delay(AbstractReconciler.java:572)
        - waiting to re-lock in wait() <0x00000000c2633b38> (a org.eclipse.jface.text.reconciler.DirtyRegionQueue)
        at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:181)

"Worker-4" #38 prio=5 os_prio=31 cpu=419.78ms elapsed=257.62s tid=0x00007f87cf9d0000 nid=0x19a0b in Object.wait()  [0x0000700004d89000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:200)
        - waiting to re-lock in wait() <0x00000000c0b838a0> (a org.eclipse.core.internal.jobs.WorkerPool)
        at org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:242)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

"Worker-5" #41 prio=5 os_prio=31 cpu=405.60ms elapsed=247.33s tid=0x00007f87c7d6f000 nid=0x1d707 in Object.wait()  [0x00007000014d5000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:200)
        - waiting to re-lock in wait() <0x00000000c0b838a0> (a org.eclipse.core.internal.jobs.WorkerPool)
        at org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:242)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

"Worker-6" #42 prio=5 os_prio=31 cpu=406.94ms elapsed=244.28s tid=0x00007f87c7a9f000 nid=0x19d0f in Object.wait()  [0x0000700004e8c000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:200)
        - waiting to re-lock in wait() <0x00000000c0b838a0> (a org.eclipse.core.internal.jobs.WorkerPool)
        at org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:242)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

"Worker-7" #43 prio=5 os_prio=31 cpu=393.77ms elapsed=240.81s tid=0x00007f87c7d67800 nid=0x2a117 in Object.wait()  [0x0000700004f8f000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:200)
        - waiting to re-lock in wait() <0x00000000c0b838a0> (a org.eclipse.core.internal.jobs.WorkerPool)
        at org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:242)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

"Attach Listener" #44 daemon prio=9 os_prio=31 cpu=2.20ms elapsed=233.68s tid=0x00007f87cec0a000 nid=0x19127 waiting on condition  [0x0000000000000000]
   java.lang.Thread.State: RUNNABLE

"Worker-8" #45 prio=5 os_prio=31 cpu=128.59ms elapsed=85.88s tid=0x00007f87c7d68800 nid=0x1771b in Object.wait()  [0x0000700003f59000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(java.base@11.0.12/Native Method)
        - waiting on <no object reference available>
        at org.eclipse.core.internal.jobs.WorkerPool.sleep(WorkerPool.java:200)
        - waiting to re-lock in wait() <0x00000000c0b838a0> (a org.eclipse.core.internal.jobs.WorkerPool)
        at org.eclipse.core.internal.jobs.WorkerPool.startJob(WorkerPool.java:242)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

"VM Thread" os_prio=31 cpu=83.84ms elapsed=280.04s tid=0x00007f87c6024800 nid=0x6403 runnable  

"GC Thread#0" os_prio=31 cpu=91.55ms elapsed=280.06s tid=0x00007f87c6819800 nid=0x5f03 runnable  

"GC Thread#1" os_prio=31 cpu=92.33ms elapsed=279.58s tid=0x00007f87c8191800 nid=0xac0b runnable  

"GC Thread#2" os_prio=31 cpu=77.61ms elapsed=279.42s tid=0x00007f87c68d5800 nid=0x1310b runnable  

"GC Thread#3" os_prio=31 cpu=80.91ms elapsed=279.42s tid=0x00007f87c7a52800 nid=0xdc0b runnable  

"GC Thread#4" os_prio=31 cpu=71.98ms elapsed=278.77s tid=0x00007f87c879b800 nid=0x12303 runnable  

"GC Thread#5" os_prio=31 cpu=66.42ms elapsed=278.77s tid=0x00007f87c87ab000 nid=0x12103 runnable  

"GC Thread#6" os_prio=31 cpu=65.94ms elapsed=278.77s tid=0x00007f87c82ed800 nid=0xe703 runnable  

"GC Thread#7" os_prio=31 cpu=69.04ms elapsed=278.77s tid=0x00007f87c82ee000 nid=0xe903 runnable  

"GC Thread#8" os_prio=31 cpu=62.90ms elapsed=278.22s tid=0x00007f87c6719000 nid=0xfc03 runnable  

"GC Thread#9" os_prio=31 cpu=63.67ms elapsed=278.22s tid=0x00007f87c6748000 nid=0xfd03 runnable  

"G1 Main Marker" os_prio=31 cpu=3.39ms elapsed=280.06s tid=0x00007f87c6833800 nid=0xa503 runnable  

"G1 Conc#0" os_prio=31 cpu=225.75ms elapsed=280.06s tid=0x00007f87c6834000 nid=0xa103 runnable  

"G1 Conc#1" os_prio=31 cpu=225.57ms elapsed=279.07s tid=0x00007f87c7a92800 nid=0xe203 runnable  

"G1 Conc#2" os_prio=31 cpu=223.00ms elapsed=279.07s tid=0x00007f87c9011800 nid=0xe403 runnable  

"G1 Refine#0" os_prio=31 cpu=2.75ms elapsed=280.06s tid=0x00007f87c687d000 nid=0x6103 runnable  

"G1 Refine#1" os_prio=31 cpu=1.01ms elapsed=279.57s tid=0x00007f87c6a99800 nid=0xbf03 runnable  

"G1 Refine#2" os_prio=31 cpu=0.92ms elapsed=279.57s tid=0x00007f87c72c5800 nid=0xc003 runnable  

"G1 Refine#3" os_prio=31 cpu=0.70ms elapsed=279.57s tid=0x00007f87ca008800 nid=0xc203 runnable  

"G1 Refine#4" os_prio=31 cpu=0.40ms elapsed=279.57s tid=0x00007f87cc811000 nid=0xc303 runnable  

"G1 Refine#5" os_prio=31 cpu=0.34ms elapsed=279.57s tid=0x00007f87c9011000 nid=0x14503 runnable  

"G1 Young RemSet Sampling" os_prio=31 cpu=38.94ms elapsed=280.06s tid=0x00007f87c687d800 nid=0x9f03 runnable  
"VM Periodic Task Thread" os_prio=31 cpu=170.48ms elapsed=279.98s tid=0x00007f87c809e000 nid=0x8803 waiting on condition  

JNI global refs: 672, weak refs: 0

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Matvey16commented, May 27, 2022

@mcbeelen You can disable these two options to load data much faster, but you won’t be able to edit data in a table in that case. But if you only need to read data (like when you cancel loading of metadata) this will make it much faster

dbeaver_s0YAgWGBgc

0reactions
emironovDBcommented, Jun 8, 2022

Thanks for the suggestion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I find which transaction is causing a "Waiting for table ...
I found there was a long running query (it was running for more than two hours). I killed that query and the alter...
Read more >
Scaling and Performance of INFORMATION_SCHEMA
Reading static table meta-data in a query using a single INFORMATION_SCHEMA table, would give us the performance gain in order of ~30 times...
Read more >
Logging and analyzing slow queries in MySQL
When the slow query log feature is enabled, by default MySQL logs any query that takes longer than 10 seconds to execute. We...
Read more >
mysql - Very Simple "SELECT * FROM" Times Out (InnoDB)
is that since the index can't be used, the engine does a full table scan and reads all the data for each row...
Read more >
Troubleshoot slow queries in Amazon RDS for MySQL - AWS
After the long-running query has been identified from a slow query log or Performance Insights, consider ways to improve your query performance.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found