Page 1 of 1

Limit RAM usage or do not load image while indexing

Posted: Mon Dec 16, 2024 1:46 pm
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

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

Posted: Fri Feb 07, 2025 3:47 pm
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.

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

Posted: Wed Feb 12, 2025 3:54 pm
by xnview
you can uncheck 'Settings>Thumbnail>Create thumbnails for whole folder'

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

Posted: Wed Feb 12, 2025 5:48 pm
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

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

Posted: Thu Feb 13, 2025 11:47 am
by xnview
even if you uncheck, you'll have them but not all will be in memory

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

Posted: Thu Feb 13, 2025 12:21 pm
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 :)