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

Very slow and unresponsive on Raspberry Pi 4 #23

Closed
yfuerst opened this issue Dec 14, 2019 · 6 comments
Closed

Very slow and unresponsive on Raspberry Pi 4 #23

yfuerst opened this issue Dec 14, 2019 · 6 comments

Comments

@yfuerst
Copy link

yfuerst commented Dec 14, 2019

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

LOGBACK: No context given for c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@23409366
 ____  __.
|    |/ _|____   _____    _________
|      < /  _ \ /     \  / ___\__  \
|    |  (  <_> )  Y Y  \/ /_/  > __ \_
|____|__ \____/|__|_|  /\___  (____  /
        \/           \//_____/     \/

Version: 0.9.0

2019-12-14 07:59:45.654  INFO 5014 --- [           main] org.gotson.komga.ApplicationKt           : Starting ApplicationKt on vulcan with PID 5014 (/home/yannick/komga/komga-0.9.0.jar started by yannick in /home/yannick/komga)
2019-12-14 07:59:45.848  INFO 5014 --- [           main] org.gotson.komga.ApplicationKt           : The following profiles are active: prod,flyway
2019-12-14 08:01:22.881  INFO 5014 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2019-12-14 08:01:30.955  INFO 5014 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 7554ms. Found 5 repository interfaces.
2019-12-14 08:02:07.811  INFO 5014 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-12-14 08:02:11.231  INFO 5014 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration' of type [org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-12-14 08:02:11.447  INFO 5014 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'objectPostProcessor' of type [org.springframework.security.config.annotation.configuration.AutowireBeanFactoryObjectPostProcessor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-12-14 08:02:11.595  INFO 5014 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler@1fe57a9' of type [org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-12-14 08:02:11.616  INFO 5014 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration' of type [org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-12-14 08:02:11.891  INFO 5014 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'methodSecurityMetadataSource' of type [org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2019-12-14 08:02:32.486  INFO 5014 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2019-12-14 08:02:33.292  INFO 5014 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2019-12-14 08:02:33.295  INFO 5014 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.27]
2019-12-14 08:02:38.469  INFO 5014 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-12-14 08:02:38.472  INFO 5014 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 168778 ms
2019-12-14 08:02:46.520  INFO 5014 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2019-12-14 08:02:54.722  INFO 5014 --- [           main] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.
2019-12-14 08:02:54.976  INFO 5014 --- [           main] o.s.b.a.h2.H2ConsoleAutoConfiguration    : H2 console available at '/h2-console'. Database available at 'jdbc:h2:./komga-database.h2'
2019-12-14 08:03:14.554  INFO 5014 --- [           main] o.f.c.internal.license.VersionPrinter    : Flyway Community Edition 6.0.8 by Redgate
2019-12-14 08:03:15.387  INFO 5014 --- [           main] o.f.c.internal.database.DatabaseFactory  : Database: jdbc:h2:./komga-database.h2 (H2 1.4)
2019-12-14 08:03:16.052  WARN 5014 --- [           main] o.f.c.internal.database.base.Database    : Flyway upgrade recommended: H2 1.4.200 is newer than this version of Flyway and support has not been tested. The latest supported version of H2 is 1.4.199.
2019-12-14 08:03:17.055  INFO 5014 --- [           main] o.f.core.internal.command.DbValidate     : Successfully validated 15 migrations (execution time 00:00.607s)
2019-12-14 08:03:17.285  INFO 5014 --- [           main] o.f.c.i.s.JdbcTableSchemaHistory         : Creating Schema History table "PUBLIC"."flyway_schema_history" ...
2019-12-14 08:03:18.121  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Current version of schema "PUBLIC": << Empty Schema >>
2019-12-14 08:03:18.380  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20190819161603 - First Version
2019-12-14 08:03:18.941  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20190906100609 - regenerate webp covers
2019-12-14 08:03:19.373  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20190906152334 - reparse pdf files
2019-12-14 08:03:19.777  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20190907104615 - reparse pdf files
2019-12-14 08:03:20.179  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20190907143337 - reparse pdf files
2019-12-14 08:03:20.553  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20190910082852 - rescan series
2019-12-14 08:03:21.001  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20190926112211 - library entity
2019-12-14 08:03:21.523  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20190926114415 - create library from series
2019-12-14 08:03:23.015  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20190927132225 - serie library id not null
2019-12-14 08:03:23.454  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20191008135338 - rename serie to series
2019-12-14 08:03:23.872  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20191010153833 - delete thumbnails to force regeneration in jpeg
2019-12-14 08:03:24.318  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20191014143703 - user entity
2019-12-14 08:03:24.805  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20191021101906 - user library sharing
2019-12-14 08:03:25.323  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20191029153618 - book filesize
2019-12-14 08:03:25.831  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Migrating schema "PUBLIC" to version 20191122164159 - book number
2019-12-14 08:03:26.524  INFO 5014 --- [           main] o.f.core.internal.command.DbMigrate      : Successfully applied 15 migrations to schema "PUBLIC" (execution time 00:08.555s)
2019-12-14 08:03:33.761  INFO 5014 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2019-12-14 08:03:41.127  INFO 5014 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate Core {5.4.8.Final}
2019-12-14 08:04:01.430  INFO 5014 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
2019-12-14 08:04:12.467  INFO 5014 --- [           main] org.hibernate.dialect.Dialect            : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2019-12-14 08:05:01.645  INFO 5014 --- [           main] o.h.e.t.j.p.i.JtaPlatformInitiator       : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2019-12-14 08:05:02.182  INFO 5014 --- [           main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2019-12-14 08:05:10.050  INFO 5014 --- [           main] o.g.k.i.image.ImageConverter             : Supported read formats: [JPG, jpg, tiff, bmp, BMP, bigtiff, gif, GIF, WBMP, png, PNG, BIGTIFF, JPEG, JPEG-LOSSLESS, webp, BigTIFF, tif, TIF, TIFF, jpeg, wbmp, jpeg-lossless]
2019-12-14 08:05:10.056  INFO 5014 --- [           main] o.g.k.i.image.ImageConverter             : Supported read mediaTypes: [image/png, image/vnd.wap.wbmp, image/x-png, image/jpeg, image/tiff, image/x-tiff, image/bmp, image/gif, image/webp]
2019-12-14 08:05:10.061  INFO 5014 --- [           main] o.g.k.i.image.ImageConverter             : Supported write formats: [JPG, jpg, tiff, bmp, BMP, gif, GIF, WBMP, png, PNG, JPEG, tif, TIF, TIFF, wbmp, jpeg]
2019-12-14 08:05:10.067  INFO 5014 --- [           main] o.g.k.i.image.ImageConverter             : Supported write mediaTypes: [image/vnd.wap.wbmp, image/png, image/x-png, image/jpeg, image/tiff, image/x-tiff, image/bmp, image/gif]
2019-12-14 08:05:39.858  WARN 5014 --- [           main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2019-12-14 08:06:31.454  INFO 5014 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 16 endpoint(s) beneath base path '/actuator'
2019-12-14 08:06:39.218  INFO 5014 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'parseBookTaskExecutor'
2019-12-14 08:06:39.693  INFO 5014 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'periodicScanTaskExecutor'
2019-12-14 08:06:39.736  INFO 5014 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'regenerateThumbnailsTaskExecutor'
2019-12-14 08:06:40.806  INFO 5014 --- [           main] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2Controller#getDocumentation(String, HttpServletRequest)]
2019-12-14 08:06:51.225  INFO 5014 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: Ant [pattern='/error**'], []
2019-12-14 08:06:51.228  INFO 5014 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: Ant [pattern='/css/**'], []
2019-12-14 08:06:51.230  INFO 5014 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: Ant [pattern='/img/**'], []
2019-12-14 08:06:51.233  INFO 5014 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: Ant [pattern='/js/**'], []
2019-12-14 08:06:51.235  INFO 5014 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: Ant [pattern='/favicon.ico'], []
2019-12-14 08:06:51.237  INFO 5014 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: Ant [pattern='/'], []
2019-12-14 08:06:51.240  INFO 5014 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: Ant [pattern='/index.html'], []
2019-12-14 08:06:55.048  INFO 5014 --- [           main] o.s.b.a.w.s.WelcomePageHandlerMapping    : Adding welcome page: class path resource [public/index.html]
2019-12-14 08:07:06.222  INFO 5014 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@1526f71, org.springframework.security.web.context.SecurityContextPersistenceFilter@13da830, org.springframework.security.web.header.HeaderWriterFilter@f4f8f2, org.springframework.web.filter.CorsFilter@1ca94a9, org.springframework.security.web.authentication.logout.LogoutFilter@12d1782, org.springframework.security.web.session.ConcurrentSessionFilter@f730b2, org.gotson.komga.infrastructure.security.LoggingBasicAuthFilter@1ab310b, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@1c93d16, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@1658133, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@1fd62b, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@140de43, org.springframework.security.web.session.SessionManagementFilter@a72ecd, org.springframework.security.web.access.ExceptionTranslationFilter@166f664, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@7ae90c]
2019-12-14 08:07:25.142  INFO 5014 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'taskScheduler'
2019-12-14 08:07:28.324  INFO 5014 --- [           main] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed
2019-12-14 08:07:30.742  INFO 5014 --- [           main] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s)
2019-12-14 08:07:34.949  INFO 5014 --- [           main] s.d.s.w.s.ApiListingReferenceScanner     : Scanning for api listing references
2019-12-14 08:07:47.706  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: getBookFileUsingGET_1
2019-12-14 08:07:47.837  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: getBookFileFromSeriesUsingGET_1
2019-12-14 08:07:50.377  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: getLatestSeriesUsingGET_1
2019-12-14 08:07:51.028  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_1
2019-12-14 08:07:51.124  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingDELETE_1
2019-12-14 08:07:51.171  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_2
2019-12-14 08:07:51.220  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_3
2019-12-14 08:07:51.269  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_4
2019-12-14 08:07:51.318  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_5
2019-12-14 08:07:51.367  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_6
2019-12-14 08:07:51.421  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_7
2019-12-14 08:07:51.470  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_8
2019-12-14 08:07:51.519  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_9
2019-12-14 08:07:51.567  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_10
2019-12-14 08:07:51.616  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_11
2019-12-14 08:07:51.666  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_12
2019-12-14 08:07:51.714  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_13
2019-12-14 08:07:51.761  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_14
2019-12-14 08:07:51.854  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_15
2019-12-14 08:07:51.903  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_16
2019-12-14 08:07:51.952  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_17
2019-12-14 08:07:52.002  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_18
2019-12-14 08:07:52.051  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_19
2019-12-14 08:07:52.105  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_20
2019-12-14 08:07:52.735  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: getAllSeriesUsingGET_1
2019-12-14 08:07:52.824  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: getLatestSeriesUsingGET_2
2019-12-14 08:07:52.886  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: getOneSeriesUsingGET_1
2019-12-14 08:07:53.330  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: addOneUsingPOST_1
2019-12-14 08:07:53.616  INFO 5014 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: getAllUsingGET_1
2019-12-14 08:07:56.694  INFO 5014 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2019-12-14 08:07:56.717  INFO 5014 --- [           main] org.gotson.komga.ApplicationKt           : Started ApplicationKt in 533.304 seconds (JVM running for 550.357)
2019-12-14 08:07:57.339  INFO 5014 --- [nTaskExecutor-1] o.g.k.domain.service.AsyncOrchestrator   : Starting periodic libraries scan
2019-12-14 08:07:57.339  INFO 5014 --- [sTaskExecutor-1] o.g.k.domain.service.AsyncOrchestrator   : Regenerate missing thumbnails
2019-12-14 08:08:06.206  INFO 5014 --- [nTaskExecutor-1] o.g.k.domain.service.AsyncOrchestrator   : No libraries defined, nothing to scan
2019-12-14 08:08:06.217  INFO 5014 --- [           main] o.g.k.i.scheduler.InitialUserController  : No users exist in database, creating initial users
2019-12-14 08:08:06.971  INFO 5014 --- [sTaskExecutor-1] o.g.k.domain.service.AsyncOrchestrator   : Generated 0 thumbnails in 00:00:00.000 (virtual: 00:00:00.000)
2019-12-14 08:08:22.385  INFO 5014 --- [           main] o.g.k.i.s.KomgaUserDetailsLifecycle      : Created user: admin@example.org, roles: [ADMIN]
2019-12-14 08:08:25.536  INFO 5014 --- [           main] o.g.k.i.scheduler.InitialUserController  : Initial user created. Login: admin@example.org, Password: rTdrf3Vw5HFF
2019-12-14 08:08:40.696  INFO 5014 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2019-12-14 08:08:40.698  INFO 5014 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2019-12-14 08:08:41.205  INFO 5014 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet        : Completed initialization in 504 ms
2019-12-14 08:09:23.789  INFO 5014 --- [nio-8080-exec-5] o.g.k.i.security.LoggingBasicAuthFilter  : Authentication success for user: admin@example.org, RequestInfo(ip=10.182.72.38, userAgent=Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0, method=GET, url=http://vulcan:8080/api/v1/users/me, query=null)
2019-12-14 08:09:30.204  INFO 5014 --- [nio-8080-exec-8] o.g.k.i.security.LoggingBasicAuthFilter  : Authentication success for user: admin@example.org, RequestInfo(ip=10.182.72.38, userAgent=Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0, method=GET, url=http://vulcan:8080/api/v1/users/me, query=null)
2019-12-14 08:10:14.247  INFO 5014 --- [nio-8080-exec-8] o.g.k.i.s.KomgaUserDetailsLifecycle      : Created user: yannick.fuerst@posteo.de, roles: [ADMIN]
2019-12-14 08:10:21.555  INFO 5014 --- [nio-8080-exec-2] o.g.k.i.s.KomgaUserDetailsLifecycle      : Deleting user: admin@example.org
2019-12-14 08:10:21.735  INFO 5014 --- [nio-8080-exec-2] o.g.k.i.s.KomgaUserDetailsLifecycle      : Expiring all sessions for user: admin@example.org
2019-12-14 08:10:21.742  INFO 5014 --- [nio-8080-exec-2] o.g.k.i.s.KomgaUserDetailsLifecycle      : Expiring session: 4D714A18CA831D8201BBCA3FF0C9F1DE
2019-12-14 08:10:21.745  INFO 5014 --- [nio-8080-exec-2] o.g.k.i.s.KomgaUserDetailsLifecycle      : Expiring session: F44219D573CFB2C30F4A306664094626
^C2019-12-14 08:11:25.953  INFO 5014 --- [extShutdownHook] o.s.s.c.ThreadPoolTaskScheduler          : Shutting down ExecutorService 'taskScheduler'
2019-12-14 08:11:26.010  INFO 5014 --- [extShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'regenerateThumbnailsTaskExecutor'
2019-12-14 08:11:26.016  INFO 5014 --- [extShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'periodicScanTaskExecutor'
2019-12-14 08:11:26.023  INFO 5014 --- [extShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'parseBookTaskExecutor'
2019-12-14 08:11:26.392  INFO 5014 --- [extShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2019-12-14 08:11:26.442  INFO 5014 --- [extShutdownHook] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown initiated...
2019-12-14 08:11:26.458  INFO 5014 --- [extShutdownHook] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Shutdown completed.
2019-12-14 08:11:33.800  INFO 5014 --- [nio-8080-exec-9] o.g.k.i.security.LoggingBasicAuthFilter  : Log message invocation failed: java.lang.IllegalStateException: remoteAddr must not be null

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?

@gotson
Copy link
Owner

gotson commented Dec 14, 2019

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.

@yfuerst
Copy link
Author

yfuerst commented Dec 14, 2019

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.

@yfuerst yfuerst closed this as completed Dec 14, 2019
@gotson
Copy link
Owner

gotson commented Dec 14, 2019

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.

@yfuerst
Copy link
Author

yfuerst commented Dec 14, 2019

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

@gotson
Copy link
Owner

gotson commented Dec 15, 2019

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.

@yfuerst
Copy link
Author

yfuerst commented Dec 15, 2019

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants