Jellyfin Forum
Slow Loading/100% CPU For Thumbnails - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Slow Loading/100% CPU For Thumbnails (/t-slow-loading-100-cpu-for-thumbnails)



Slow Loading/100% CPU For Thumbnails - SilvaNights - 2025-08-04

Version 10.10.7
Linux Docker container with hardware acceleration + 8GB RAM
Server using Intel N100
Windows 11 clients - Chrome/Edge

Hi,

When clients look at the available movies or tv shows there is a delay in loading the thumbnails/cards (they are blurred), on the server side it spikes to 100% CPU until they load on the client.

Not sure what is happening here on the server when this happens, is it generating or pulling them?
All the normal scheduled tasks are enabled and the appropriate metadata pullers are active too.

Is it possible to speed up this process, pre-generate anything beforehand or use the NVME as a cache for these thumbnails?
The media files are on a file server using HDD's and the JellyFin container is on an NVME SSD.

Thanks.


RE: Slow Loading/100% CPU For Thumbnails - RobinHood70 - 2025-08-06

I can confirm this behaviour from the client side in Jellyfin Media Player as well. I don't have ready access to the server.


RE: Slow Loading/100% CPU For Thumbnails - bitmap - 2025-08-06

Recreate the behavior and throw your Jellyfin logs up on a pastebin site like privatebin.net.


RE: Slow Loading/100% CPU For Thumbnails - SilvaNights - 2025-09-01

(2025-08-06, 03:15 PM)bitmap Wrote: Recreate the behavior and throw your Jellyfin logs up on a pastebin site like privatebin.net.

Apologies for the delay, please see here:
https://pastebin.com/a9bhcHRH

I can see loads of these showing up in the debug logs when I have the issue.
Let me know if you require the whole log.

Thanks.


RE: Slow Loading/100% CPU For Thumbnails - hmfaysal - 2025-09-02

I am having the same problem, for the time being solved it with aggressive nginx proxy caching

Code:
    # Images / Thumbnails
    location ~ ^/Items/.*/Images/ {
        proxy_pass http://127.0.0.1:8096;

        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;

        # --- disk cache ---
        proxy_cache          jfimg;
        proxy_cache_valid    200 1y;          # honour upstream max-age if present
        proxy_cache_revalidate on;
        proxy_cache_lock    on;              # avoid stampedes
        proxy_cache_key      "$scheme$proxy_host$request_uri";
        add_header          X-Cache-Status $upstream_cache_status always;

        # --- browser cache ---
        expires 1y;
        add_header Cache-Control "public, immutable";

        # Small buffers are fine for images; leave buffering on for speed
        proxy_buffering      on;
        proxy_buffer_size    64k;
        proxy_buffers        8 64k;
        proxy_busy_buffers_size 256k;
    }

I am well aware this is not a permanent solution. But this has to do for now till we get a better solution. Open to any suggestion


RE: Slow Loading/100% CPU For Thumbnails - SilvaNights - 2025-10-03

BUMP, anyone able to assist please?
Thanks.