Limit RAM usage or do not load image while indexing

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

igor88
Posts: 18
Joined: Mon Nov 20, 2023 4:50 pm

Limit RAM usage or do not load image while indexing

Post by igor88 »

I have some folder with 32k files
But its not big - only 3gb

If I open that folder - xnview will eat all my 32gb ram and will start to swap

Reason that it wanna show all images I guess?

It will be nice idea to disable images while indexing some folders.. Or maybe to enable RAM limit
You do not have the required permissions to view the files attached to this post.
tanto
Posts: 3
Joined: Fri Feb 07, 2025 3:35 pm

Re: Limit RAM usage or do not load image while indexing

Post by tanto »

I also have the same issue, it's taking 16GB RAM while specific folder with many files is open. I compared with another popular app and it was taking 1.1GB after loading folder. (thumbs are same size)

'Memory usage for database engine' doesn't seem to work.
I think it's memory leak (memory keeps increasing until I hit max limit then drops and goes maxed again) or app is loading all thumbs in RAM.
User avatar
xnview
Author of XnView
Posts: 45579
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Limit RAM usage or do not load image while indexing

Post by xnview »

you can uncheck 'Settings>Thumbnail>Create thumbnails for whole folder'
Pierre.
tanto
Posts: 3
Joined: Fri Feb 07, 2025 3:35 pm

Re: Limit RAM usage or do not load image while indexing

Post by tanto »

xnview wrote: Wed Feb 12, 2025 3:54 pm you can uncheck 'Settings>Thumbnail>Create thumbnails for whole folder'
Yes but I need them. And they're already generated once. Why do they take all available memory until it crashes? I think it's a bug
User avatar
xnview
Author of XnView
Posts: 45579
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Limit RAM usage or do not load image while indexing

Post by xnview »

even if you uncheck, you'll have them but not all will be in memory
Pierre.
tanto
Posts: 3
Joined: Fri Feb 07, 2025 3:35 pm

Re: Limit RAM usage or do not load image while indexing

Post by tanto »

I see. That's very useful to know. I thought disabling it will not generate any higher resolution thumbnails which I need. What is the purpose of this option? Maybe it's loading all of them but uncompressed in RAM (since the whole folder takes less than RAM usage). Keep up the good work, great software :)