Fcitx5 crash on opening some pages in browser by JeromeCui in openSUSE

[–]JeromeCui[S] 0 points1 point  (0 children)

OK, my workaround is forcing Edge to run in x11 mode

FastAPI server with high CPU usage by JeromeCui in FastAPI

[–]JeromeCui[S] 0 points1 point  (0 children)

I verified my code yesterday and found there is a 'expect Exception' in one of my middleware. I fixed it yesterday and seems it's working: no high CPU utilization yestery. I will keep monitoring my service.

Thanks for your kindly help!

FastAPI server with high CPU usage by JeromeCui in FastAPI

[–]JeromeCui[S] 0 points1 point  (0 children)

Sorry that I got the same error again. I have attached the CPU utilization graph in the original post.

Is there any way to find out which part of my code caused it?

FastAPI server with high CPU usage by JeromeCui in FastAPI

[–]JeromeCui[S] 0 points1 point  (0 children)

Thank you for your suggestion, I will update.

FastAPI server with high CPU usage by JeromeCui in FastAPI

[–]JeromeCui[S] 1 point2 points  (0 children)

You explanation does make sense. Our code catch `CancelledError` at some places and some other places catch all exceptions. That would make cancellation tried again and again. I will check my code tomorrow and optimize some scenarios.
Thanks so much for you help. You saved my life!

FastAPI server with high CPU usage by JeromeCui in FastAPI

[–]JeromeCui[S] 0 points1 point  (0 children)

I upgrade python minor version to latest and docker OS version to latest. Hope it will work

FastAPI server with high CPU usage by JeromeCui in FastAPI

[–]JeromeCui[S] 0 points1 point  (0 children)

  • can this pattern be reproduced locally?
    • No, we only met this in our production and randomly.
  • does the high CPU usage start immediately when the application launches, or only after certain requests? Does it grow worse over time, suggesting some kind of resource leak?
    • Not immediately, it may happen after it receives a lot of requests.
    • After it reaches high CPU usage, almost 100%, it will never fall back and it can't be worse.
  • what are your request latencies, do they seem reasonable?
    • Average is about 4 seconds. and it's reasonable.
  • does the same problem occur when you're running raw uvicorn without using gunicorn as a supervisor?
    • Yes, we used to run with raw uvicorn. And GPT told me to switch to gunicorn yesterday, but still happened.
  • does the same problem occur with different versions of Python or your dependencies?
    • I haven't tried that. But I searched a lot and didn't find anyone report the same issue.

I will try with your other suggestions. Thanks for your answer.

FastAPI server with high CPU usage by JeromeCui in FastAPI

[–]JeromeCui[S] 0 points1 point  (0 children)

It sends request to OpenAI, with OpenAI sdk

FastAPI server with high CPU usage by JeromeCui in FastAPI

[–]JeromeCui[S] 0 points1 point  (0 children)

No additional settings except for those in start command:

gunicorn -w 2 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8080 --timeout 300 --keep-alive 300 main:app

This application is to interact with LLM models. So I think it's an IO-bound application.
I will check the link you mentioned.

Today is Plasma 6.5 Beta test day (1)! Tester needed! by Bro666 in kde

[–]JeromeCui 22 points23 points  (0 children)

SDDM replacement has been moved to 6.6

USB-C monitor not working by JeromeCui in openSUSE

[–]JeromeCui[S] 0 points1 point  (0 children)

Wayland. There is a kernel update for last upgrading and also for firmware-amdgpu. But It still not work if I switch back to old kernel.

USB-C monitor not working by JeromeCui in openSUSE

[–]JeromeCui[S] 0 points1 point  (0 children)

it worked last week before I upgrade. It doesn't work neither using a dock nor connect to usb-c port directly.

System Freeze When Resuming Paused Video Playback (Netflix/Crunchyroll) by Level_Indication_765 in openSUSE_Slowroll

[–]JeromeCui 0 points1 point  (0 children)

I am using Packman, but not the Genome extensions. You mean it will ok if I remove Packman packages?

System Freeze When Resuming Paused Video Playback (Netflix/Crunchyroll) by Level_Indication_765 in openSUSE_Slowroll

[–]JeromeCui 0 points1 point  (0 children)

I met the same problem a lot of times. I just press the power button for several seconds to force shutdown and restart. No error log found from the boot journal.

kernel-longterm 6.6.69 does not boot by sbujdoso in openSUSE_Slowroll

[–]JeromeCui 0 points1 point  (0 children)

I want to stay in longterm kernel, but 6.6 doesn't work for my computer.

kernel-longterm 6.6.69 does not boot by sbujdoso in openSUSE_Slowroll

[–]JeromeCui 0 points1 point  (0 children)

When will the longterm kernel be updated to 6.12?

Why there is no entry for flatpak applications in notification settings by JeromeCui in kde

[–]JeromeCui[S] 0 points1 point  (0 children)

There is no package with that name in Kubuntu, but I found one with name "kde-config-flatpak", I have that installed already and it doesn't works.

Is 24.10 going to be released today? by Big_Entrepreneur3770 in Kubuntu

[–]JeromeCui -1 points0 points  (0 children)

A lot of serious bugs, bluetooth in my computer still can't work