dbmdz / iiif-server-hymir

Hymir is a Java based IIIF Server. It is based on "IIIF Image API Java Libraries" and "IIIF Presentation API Java Libraries" projects (see https://github.com/dbmdz)
MIT License
27 stars 7 forks source link

Performance issues #6

Closed VonUniGE closed 6 years ago

VonUniGE commented 6 years ago

I've installed Hymir in a cloud virtual machine with 4Gb of memory. I've installled libturbojpeg. I'm serving 129Gb of images. Some images have a size of 4Mb. These images are scan of books.

I'm using Mirador to visualize books. Some of them are displayed at a reasonable speed but others are really slow, several minutes to load an image.

I don't know, if it's related to a bug or if it's a configuration issue but I think that README.md should give recommendation on:

Thank you.

morpheus-87 commented 6 years ago

Please describe your runtime environment more detailed:

Is there also a performance issue, when you start Hymir on your local machine and access images on your hard disk?

Is loading the full image also slow? (not using Mirador) Example url: https://api.digitale-sammlungen.de/iiif/image/v2//full/full/0/default.jpg

Regarding runtime parameters, we are using (on a 16GB RAM machine):

-XX:+ExitOnOutOfMemoryError -XX:+CrashOnOutOfMemoryError -XX:MaxDirectMemorySize=8G -Xmx4G

We are serving JPG-images up to 100 MB per image. What image format and size/resolution are you reading? Could you please provide us a test image? Is your IIIF-server online accessible?

VonUniGE commented 6 years ago

I'm using Debian 8 on a virtual machine (4Gb of memory) hosted by an OpenStack university cloud. Images are JPEG files with an average size of 1Mb and maximum size of 4Mb. Accessing images without hymir is fast. Ther server is not (yet) publicly accessible.

I've migrated the hymir server to another server (outside the cloud) with 12Gb memory and everything is fast.

morpheus-87 commented 6 years ago

Glad to hear that it's working now :-)