> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Capture Thread Dumps for Java Processes

> Problem For issues where workflow executions appear to be “hung” or “stuck” with statuses not being updated, it is helpful to the support team to rece

## Problem

> [!NOTE]
>
> For issues where workflow executions appear to be “hung” or “stuck” with statuses not being updated, it is helpful to the support team to receive thread dumps from the java processes used by FlexDeploy. These instructions provide details to collect the thread dumps for the FlexDeploy server JVM and the JVM which executes a plugin operation on an endpoint.

## Solution

### FlexDeploy Server

To generate the thread dump for the FlexDeploy server, you must first locate the process id (PID) of the underlying JVM.

```
ps -ef |grep flexdeploy
```

![Image](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12596425297.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=536d94d2097d911a3412542e78e9ad54)

Now run the following command to signal the thread dump. Run 3 times 10 seconds apart, changing # to 1,2,3 with each iteration.

```
jstack -l <pid> > /var/tmp/threaddump_server_#.txt
```

### Endpoint

To generate the thread dump for an endpoint, similarly you must locate the PID for the JVM running the plugin operation.

```
ps -ef |grep ExternalPluginServer
```

![Image](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12596425294.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=9305c15e8c1a0f8eb26ba104f253acce)

Signal the thread dump. Run 3 times 10 seconds apart, changing # to 1,2,3 with each iteration.

```
jstack -l <pid> > /var/tmp/threaddump_endpoint_#.txt
```

Zip the .txt dump files and attach to the support ticket.

## Related articles

* Page:

  [Capture logs for memory issue](https://docs.flexagon.com/wiki/spaces/FD57/pages/9803742063/Capture+logs+for+memory+issue)

* Page:

  [Java Cryptography Extension (JCE) unlimited strength policy files](https://docs.flexagon.com/wiki/spaces/FD57/pages/9803741515/Java+Cryptography+Extension+JCE+unlimited+strength+policy+files)

* Page:

  [Capture Thread Dumps for Java Processes](https://docs.flexagon.com/wiki/spaces/FD57/pages/9803735852/Capture+Thread+Dumps+for+Java+Processes)

* Page:

  [Capture logs application issues Tomcat](https://docs.flexagon.com/wiki/spaces/FD57/pages/9803743366/Capture+logs+application+issues+Tomcat)

* Page:

  [Capture logs application issues WebLogic](https://docs.flexagon.com/wiki/spaces/FD57/pages/9803743355/Capture+logs+application+issues+WebLogic)
