I am working on a FastAPI application that cleans job data and extracts tokens from it. I have deployed the API on an Ubuntu server with 12 GB of RAM and a 250 GB SSD. The server uses NGINX and Gunicorn with 4 workers.However, when I start a POST request, the CPU usage goes to 100%. I have checked the code and other configurations multiple times and found no issues. Can you tell me why I am facing this problem and suggest possible solutions?
i tried uvicorn and gunicorn separately but not solved. it is walayws taking high cpu for 10 user only. please write your thoughts about it.