You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2021/02/10 15:40:41 UTC

[activemq-artemis] branch master updated: NO-JIRA Adding thread dump logging

This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/master by this push:
     new e5b27d6  NO-JIRA Adding thread dump logging
e5b27d6 is described below

commit e5b27d6de785256b662a467e9826f648239fd7bb
Author: Clebert Suconic <cl...@apache.org>
AuthorDate: Wed Feb 10 10:34:43 2021 -0500

    NO-JIRA Adding thread dump logging
---
 .../artemis/core/paging/cursor/impl/PageCursorProviderImpl.java        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageCursorProviderImpl.java b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageCursorProviderImpl.java
index 9acffb3..8cbbe0d 100644
--- a/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageCursorProviderImpl.java
+++ b/artemis-server/src/main/java/org/apache/activemq/artemis/core/paging/cursor/impl/PageCursorProviderImpl.java
@@ -43,6 +43,7 @@ import org.apache.activemq.artemis.core.server.ActiveMQServerLogger;
 import org.apache.activemq.artemis.core.transaction.Transaction;
 import org.apache.activemq.artemis.core.transaction.impl.TransactionImpl;
 import org.apache.activemq.artemis.utils.SoftValueLongObjectHashMap;
+import org.apache.activemq.artemis.utils.ThreadDumpUtil;
 import org.apache.activemq.artemis.utils.actors.ArtemisExecutor;
 import org.apache.activemq.artemis.utils.collections.ConcurrentLongHashMap;
 import org.jboss.logging.Logger;
@@ -336,7 +337,7 @@ public class PageCursorProviderImpl implements PageCursorProvider {
    private void waitForFuture() {
       if (!executor.flush(10, TimeUnit.SECONDS)) {
          ActiveMQServerLogger.LOGGER.timedOutStoppingPagingCursor(executor);
-
+         ActiveMQServerLogger.LOGGER.threadDump(ThreadDumpUtil.threadDump(""));
       }
    }