Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6031

Fast APIcpu usage goes abobe 100% [closed]

$
0
0

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.


Viewing all articles
Browse latest Browse all 6031

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>