Resolution
Diagnostics and logs successfully sent to Octopus Support for further investigation by Octopus engineering department.
Symptom
Slow pages, long-running queries, high SQL CPU, or SQL timeouts.
Scope: when this is the right article
You self-host Octopus Server and are experiencing the described symptoms. Octopus Cloud customers should contact Octopus Support directly.
Cause
The symptoms can be caused by a number of issues. The main aim of this article is to provide complete diagnostics to Octopus Support so that we can pass that onto our engineering team to see if the issues caused are due to local database issues, or if there is a deeper issue in the application that can be resolved.
Diagnosis and fix
-
Upgrade your Octopus Server to the latest version before continuing to see if any performance issue you may be experiencing were resolved in previous fixes to the application.
-
Check the SQL authentication for the Octopus database. There are some links below to specific database set ups that describe the authentication and how they are configured. Any changes to the authentication will need to be updated in the connection string configuration:
- Azure SQL
- AWS RDS
-
Check the connection string configuration, making sure the required parameters are present (i.e.
Trusted_Connection=True,MultiSubnetFailover=True, etc.). -
Check if any IP-based egress rules need to applied on the network. Any blockers could result in timeouts between the Octopus Server and the database if they are hosted on different machines.
-
Ask your database administrator (DBA) to check the Octopus database and record the results. They can use the standard reports in SQL Server Management Studio (SSMS), which you open by right-clicking the database and selecting Reports > Standard Reports:
-
Table sizes: the Disk Usage by Top Tables report shows the row count and disk space of each table. Large
Release,Deployment, orServerTasktables usually mean retention policies are missing or too generous. - Index fragmentation: the Index Physical Statistics report shows how fragmented each index is. Many large indexes above 30% fragmentation usually mean no routine index maintenance is running.
- Long-running transactions: the Top Transactions by Age report shows open transactions that might be blocking Octopus queries.
If you'd like the exact diagnostic queries Octopus Support uses, contact Octopus Support and we'll send them to you.
-
Download a system diagnostics report from the Octopus Server application.
-
Download any relevant raw task logs from any tasks that had failures or timeouts. You can change the logging level to get more verbose logging by following this documentation.
Once you have collected all the relevant logs and reports, please send those over to Octopus Support so we can investigate further. A support member will be able to provide you with a link to a secure repository.