-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Very slow and unresponsive on Raspberry Pi 4 #23
Comments
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. |
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. |
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. |
You are right, it runs much better on jdk 11 than jdk 8. Thank you very much. |
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. |
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. |
I like komga very much and tried running it on a Raspberry Pi 4. This is the output from
java -Xms256m -Xmx512m -jar komga-0.9.0.jar
As you can see it took 533.304s to start ApplicationKt. Once running it is very unresponsive and uses a lot of system ressources. Am I doing something wrong or is komga simply not optimized for arm7?
The text was updated successfully, but these errors were encountered: