Unable to stop/restart PostgreSQL Flexible Server (CPU at 100%)

Gia 1 Reputation point
2025-01-08T19:51:51.9966667+00:00

I have a Azure Database for PostgreSQL - Flexible Server with its CPU usage at 100% for the past weeks... In the same period, the storage usage has also significantly increased to 80-90% of its 64 GB capacity.

chart

I am unable to stop/restart the server via Azure Portal and CLI.

[ ~ ]$ az postgres flexible-server stop --name serverName --resource-group resourceGroupName Server will be automatically started after 7 days if you do not perform a manual start operation (InternalServerError) An unexpected error occured while processing the request. Tracking ID: '{someGUID}' Code: InternalServerError Message: An unexpected error occured while processing the request. Tracking ID: '{someGUID}'

What could be causing the issue?

I looked on pgAdmin and the database size is about 6 GB. So, what could be using > 80% of the storage?

Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. RahulRandive 10,066 Reputation points
    2025-01-11T14:03:16.08+00:00

    Hi @Gia

    The server's resource utilization is high, indicating a heavy workload. Please review the long-running transactions and terminate any that can be stopped to reduce resource usage. Once resources are stabilized, you may retry restarting the server if necessary.

    If the issue persists, you may need to open a support request to check the server's health and perform a backend restart if needed.

    Thank You!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.