> ## 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 slow response

> Problem If FlexDeploy is responding very slowly, provide the following details to support team Solution See details below. Provide exact time of issue

## Problem

> [!NOTE]
>
> If FlexDeploy is responding very slowly, provide the following details to support team

## Solution

See details below.

* Provide exact time of issue.

* Explain issue in detail including screen shots.

* Provide output of **sar** and **free -m** commands on FlexDeploy server.

* Increase log level to FINEST for two loggers - flexagon.fd.model2.jdbc.framework.proxies.FlexOraclePreparedStatementProxy and flexagon.fd.model2.jdbc.framework.impl.FlexCRUDStatement.

  * Look for SLOW, SLOWER, SLOWEST word in log files.

* Capture server logs including .out files, flexdeploy\*log files, gc logs as shown below.

![image-20240814-102836.png](https://mintcdn.com/flexagon-llc-ce77a95c/NkeZh5D-Nf8j_WaD/images/fd111/12596425220.png?fit=max\&auto=format\&n=NkeZh5D-Nf8j_WaD\&q=85\&s=44297f7eda571f9418eb7fe3f57dc44b)

* Capture thread dumps and include it with other details.

```
# First find process id by using ps command, for example
ps -ef | grep java
# Locate JAVA_HOME and cd to execute jstack
cd $JAVA_HOME/bin
# Take 5 thread dumps at least 10 seconds apart. See below, where # will be 1, 2, 3, 4, 5
./jstack -l <pid> > /var/tmp/threaddump_#.txt
# if jstack does not work, use kill -3 <pid> to get thread dumps.
```

## 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)
