ubuntu 16.04 服务器中后台进程被杀死

ubuntu 16.04 服务器中后台进程被杀死

我有一个 Spring Boot 应用程序,我正在运行它通过这个命令:

mvn spring-boot:run -Drun.jvmArguments="-Xms512m -Xmx1024m" > lms_logs.log 2>&1 &

几个小时后,它会关闭并显示以下日志语句:

011 11-01-2019 03:50:00.010 [pool-1-thread-1] INFO  com.app.jobs.ScheduledJobsConfiguration.uploadScoreReports - Started uploadScoreReports job...
011 11-01-2019 03:50:37.701 [Thread-3] INFO  org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext.doClose - Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@3a85bcaa: startup date [Fri Jan 11 03:27:13 UTC 2019]; root of context hierarchy
011 11-01-2019 03:50:37.704 [Thread-3] INFO  org.springframework.jmx.export.annotation.AnnotationMBeanExporter.destroy - Unregistering JMX-exposed beans on shutdown
011 11-01-2019 03:50:37.705 [Thread-3] INFO  org.springframework.jmx.export.annotation.AnnotationMBeanExporter.unregisterBeans - Unregistering JMX-exposed beans
011 11-01-2019 03:50:37.718 [Thread-3] INFO  org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.destroy - Closing JPA EntityManagerFactory for persistence unit 'default'
011 11-01-2019 03:50:37.719 [Thread-3] INFO  com.zaxxer.hikari.HikariDataSource.close - HikariPool-1 - Shutdown initiated...
011 11-01-2019 03:50:37.731 [Thread-3] INFO  com.zaxxer.hikari.HikariDataSource.close - HikariPool-1 - Shutdown completed.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23:34 min
[INFO] Finished at: 2019-01-11T03:50:37+00:00
[INFO] Final Memory: 76M/451M
[INFO] ------------------------------------------------------------------------

为什么会发生这种情况?

相关内容