Giter Site home page Giter Site logo

Comments (6)

yfuerst avatar yfuerst commented on May 14, 2024 1

You are right, it runs much better on jdk 11 than jdk 8. Thank you very much.

from komga.

yfuerst avatar yfuerst commented on May 14, 2024 1

The startup time is reduced to 41.714s. This is still a lot, but the program is usable. I kept the ram at 1gb as you suggested and didn't experience any problems.

from komga.

gotson avatar gotson commented on May 14, 2024

Hello,

Komga is running on Spring Boot ans Java, so it's not optimized (or not) for a specific architecture.

I didn't know so much about raspberry pi so I had to look it up, and also about the state of Java for arm processors.

Can you advise how much total ram you have on your pi, as I read there are different models?

Could you also advise which version of the jdk you are using? (version and provider like oracle jdk or open jdk).

Spring Boot is not very light by design on ram, nor is Komga, so running Komga with 512mb even on powerful hardware will usually result in out of memory exceptions from the few experiments I did.

from komga.

yfuerst avatar yfuerst commented on May 14, 2024

Thank you for the fast reply. I have a Raspberry pi 4 with 4GB RAM running open jdk, but there are other services running too. For the Raspberry, I need more lightweight solutions.

from komga.

gotson avatar gotson commented on May 14, 2024

I read some articles about Java on arm, it seems the oracle jdk was working well, but not the openjdk, at least until recently.

It seems this stackoverflow question is similar to your problem : https://stackoverflow.com/questions/48127960/spring-boot-startup-slow-on-raspberry-pi

You could try openjdk 11, Komga is compatible with jdk 11.

That should solve the startup time problem.

Then you can experiment for the ram, I would suggest 1gb if that's something you can live with, else try smaller and check if you get out of memory exceptions.

from komga.

gotson avatar gotson commented on May 14, 2024

Glad to hear that!

How long does it take to start now?

Also, please report your ram experiment if you can, I still have some plans to optimize the memory usage in the future.

from komga.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.