Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU Load/Memory Usage #101

Closed
kingtut opened this issue Jul 16, 2012 · 4 comments
Closed

CPU Load/Memory Usage #101

kingtut opened this issue Jul 16, 2012 · 4 comments
Assignees

Comments

@kingtut
Copy link

kingtut commented Jul 16, 2012

One of my clients has created a directory and added many large images. Now when trying to load the folder/thumbs in file browser, the server CPU load and memory usage goes through the roof, then the thread crashes. Any ideas as to what could be done about this?

EDIT: filebrowser 3.4.3

EDIT: Ok I've isolated the problem to be something to do with the version_object template tag code (thumbnail generator). I will attempt a switch to sorl.thumbnail for now.

@sehmaschine
Copy link
Owner

would be interesting what´s different with sorl.thumbnail and if it works with switching ...

@ghost ghost self-assigned this Jul 16, 2012
@kingtut
Copy link
Author

kingtut commented Jul 16, 2012

It works super fast with sorl thumbnail; as it uses a caching system for thumbnails. Haven't had time to check details. But at a wild guess it stores some kind of image info (image dimensions perhaps?) that PIL would ordinarily get by loading the image into memory.

@ghost ghost assigned sehmaschine Sep 3, 2012
@sehmaschine
Copy link
Owner

@kingtut tried to reproduce this, but I'm not able to ... using the stable/3.5.x branch with pillow.

@sehmaschine
Copy link
Owner

@kingtut if you finde the time, you might wanna test again with master – this should be solved. please reopen the ticket, if the issue still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants