> ## 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 logs for memory issue

> Problem If FlexDeploy is responding very slow due to memory issues, provide following details to support team. Solution See details below on what is n

## Problem

> [!NOTE]
>
> If FlexDeploy is responding very slow due to memory issues, provide following details to support team.

## Solution

See details below on what is needed by support team.

* ​Provide exact FlexDeploy version.

* Indicate application server type - Tomcat or WebLogic.

* Provide all server logs including flexdeploy, gc and out files.

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

* Provide output of following 3 commands.

```
ps -ef | grep java
sar
free -m
```

* Generate heap dump - use command shown below.

```
jmap -dump:live,file=/var/tmp/heapdump <pid>
```

* Provide three thread dumps at least 10 seconds apart (change # to 1, 2, 3 in command shown below)

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

> [!NOTE]
>
> Support team will provide location where heap dump files can be uploaded.

## Related articles

* Page:

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

* Page:

  [Capture logs for slow response](https://docs.flexagon.com/wiki/spaces/FD52/pages/1500512261/Capture+logs+for+slow+response)

* Page:

  [Screen shot and Logs collection for Workflow execution failure](https://docs.flexagon.com/wiki/spaces/FD52/pages/1490550959/Screen+shot+and+Logs+collection+for+Workflow+execution+failure)

* Page:

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

* Page:

  [Unable to resolve 'ejb.B2BUtilityBean'](https://docs.flexagon.com/wiki/spaces/FD52/pages/1361052358/Unable+to+resolve+ejb.B2BUtilityBean)
