spring boot jar 在Linux运行一段时间后自动关闭

乌鸦东南飞 发布于 2016/08/23 11:24
阅读 4K+
收藏 0
 2016-08-23 02:34:04.748  INFO 19546 --- [Thread-3] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
2016-08-23 02:34:04.757  INFO 19546 --- [Thread-3] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2016-08-23 02:24:15.650  INFO 19546 --- [http-nio-8080-exec-5] c.l.vcs.web.filter.SimpleCorsFilter      : < doFilter
2016-08-23 02:24:15.650  INFO 19546 --- [http-nio-8080-exec-5] v.w.f.RequestContextInitializationFilter : < doFilter
2016-08-23 02:24:55.146  INFO 19546 --- [pool-2-thread-1] c.l.vcs.service.ScheduledTokenService    : >Update token8/23/16 2:24 AM
2016-08-23 02:24:55.147  INFO 19546 --- [pool-2-thread-1] c.l.vcs.service.token.TokenService       : TokenRequest{grant_type='client_credentials', client_id='YXA6DvF2gJ2dEeWucPPU3kS6Ww', client_secret='YXA6Jiv5cV1676TJ_7Bcd7JJjAUJS7g'}
2016-08-23 02:24:55.147  INFO 19546 --- [pool-2-thread-1] c.l.vcs.service.token.TokenService       : {"client_id":"YXA6DvF2gJ2dEeWucPPU3kS6Ww","client_secret":"YXA6Jiv5cV1676TJ_7Bcd7JJjAUJS7g","grant_type":"client_credentials"}
2016-08-23 02:24:55.148  INFO 19546 --- [pool-2-thread-1] c.l.vcs.service.token.TokenService       : https://a1.easemob.com/vanship83/glxssvideo/token
2016-08-23 02:24:55.370  INFO 19546 --- [pool-2-thread-1] com.llvision.vcs.util.http.HttpClient    : code:    200
2016-08-23 02:24:55.371  INFO 19546 --- [pool-2-thread-1] c.l.vcs.service.token.TokenService       : TokenResponse{access_token='YWMtx6zyzmjYEeaSRNc5-y86qQAAAVfqNI5A7uaxo0Jh-rXaJvjHpoWs9cZG0tI', expires_in=5183999, application='0ef17680-9d9d-11e5-ae70-f3d4de44ba5b'}
2016-08-23 02:24:55.372  INFO 19546 --- [pool-2-thread-1] c.l.vcs.service.token.TokenService       : ??token????59?
2016-08-23 02:24:55.372  INFO 19546 --- [pool-2-thread-1] c.l.vcs.service.ScheduledTokenService    : <Update token
2016-08-23 02:34:04.720  INFO 19546 --- [Thread-3] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@25f38edc: startup date [Tue Aug 23 01:24:17 UTC 2016]; root of context hierarchy
2016-08-23 02:34:04.725  INFO 19546 --- [Thread-3] o.s.c.support.DefaultLifecycleProcessor  : Stopping beans in phase 0
2016-08-23 02:34:04.748  INFO 19546 --- [Thread-3] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
2016-08-23 02:34:04.757  INFO 19546 --- [Thread-3] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2016-08-23 02:35:38.836  INFO 19596 --- [main] com.llvision.vcs.Application             : Starting Application v1.0 on 46caeef14e06 with PID 19596 (/opt/vcs_v1/vcs-1.0.jar started by vcs in /opt/vcs_v1)
2016-08-23 02:35:38.847  INFO 19596 --- [main] com.llvision.vcs.Application             : The following profiles are active: mysql
2016-08-23 02:35:39.145  INFO 19596 --- [main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@25f38edc: startup date [Tue Aug 23 02:35:39 UTC 2016]; root of context hierarchy
2016-08-23 02:35:43.362  INFO 19596 --- [main] o.s.b.f.s.DefaultListableBeanFactory     : Overriding bean definition for bean 'ignoredPathsWebSecurityConfigurerAdapter' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.security.SpringBootWebSecurityConfiguration; factoryMethodName=ignoredPathsWebSecurityConfigurerAdapter; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/security/SpringBootWebSecurityConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.actuate.autoconfigure.ManagementWebSecurityAutoConfiguration; factoryMethodName=ignoredPathsWebSecurityConfigurerAdapter; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/actuate/autoconfigure/ManagementWebSecurityAutoConfiguration.class]]
@                     
    这是日志,当程序运行到Thread-3 时停止 应该是什么时候停止了  但是为什么在Ubuntu上回无故停止呢 
加载中
0
乌鸦东南飞
乌鸦东南飞
2016-08-23 02:34:04.748  INFO 19546 --- [Thread-3] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
2016-08-23 02:34:04.757  INFO 19546 --- [Thread-3] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2016-08-23 02:24:15.650  INFO 19546 --- [http-nio-8080-exec-5] c.l.vcs.web.filter.SimpleCorsFilter      : < doFilter
2016-08-23 02:24:15.650  INFO 19546 --- [http-nio-8080-exec-5] v.w.f.RequestContextInitializationFilter : < doFilter
2016-08-23 02:24:55.146  INFO 19546 --- [pool-2-thread-1] c.l.vcs.service.ScheduledTokenService    : >Update token8/23/16 2:24 AM
2016-08-23 02:24:55.147  INFO 19546 --- [pool-2-thread-1] c.l.vcs.service.token.TokenService       : TokenRequest{grant_type='client_credentials', client_id='YXA6DvF2gJ2dEeWucPPU3kS6Ww', client_secret='YXA6Jiv5cV1676TJ_7Bcd7JJjAUJS7g'}
2016-08-23 02:24:55.147  INFO 19546 --- [pool-2-thread-1] c.l.vcs.service.token.TokenService       : {"client_id":"YXA6DvF2gJ2dEeWucPPU3kS6Ww","client_secret":"YXA6Jiv5cV1676TJ_7Bcd7JJjAUJS7g","grant_type":"client_credentials"}
2016-08-23 02:24:55.148  INFO 19546 --- [pool-2-thread-1] c.l.vcs.service.token.TokenService       : https://a1.easemob.com/vanship83/glxssvideo/token
2016-08-23 02:24:55.370  INFO 19546 --- [pool-2-thread-1] com.llvision.vcs.util.http.HttpClient    : code:    200
2016-08-23 02:24:55.371  INFO 19546 --- [pool-2-thread-1] c.l.vcs.service.token.TokenService       : TokenResponse{access_token='YWMtx6zyzmjYEeaSRNc5-y86qQAAAVfqNI5A7uaxo0Jh-rXaJvjHpoWs9cZG0tI', expires_in=5183999, application='0ef17680-9d9d-11e5-ae70-f3d4de44ba5b'}
2016-08-23 02:24:55.372  INFO 19546 --- [pool-2-thread-1] c.l.vcs.service.token.TokenService       : ??token????59?
2016-08-23 02:24:55.372  INFO 19546 --- [pool-2-thread-1] c.l.vcs.service.ScheduledTokenService    : <Update token
2016-08-23 02:34:04.720  INFO 19546 --- [Thread-3] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@25f38edc: startup date [Tue Aug 23 01:24:17 UTC 2016]; root of context hierarchy
2016-08-23 02:34:04.725  INFO 19546 --- [Thread-3] o.s.c.support.DefaultLifecycleProcessor  : Stopping beans in phase 0
2016-08-23 02:34:04.748  INFO 19546 --- [Thread-3] o.s.j.e.a.AnnotationMBeanExporter        : Unregistering JMX-exposed beans on shutdown
2016-08-23 02:34:04.757  INFO 19546 --- [Thread-3] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2016-08-23 02:35:38.836  INFO 19596 --- [main] com.llvision.vcs.Application             : Starting Application v1.0 on 46caeef14e06 with PID 19596 (/opt/vcs_v1/vcs-1.0.jar started by vcs in /opt/vcs_v1)
2016-08-23 02:35:38.847  INFO 19596 --- [main] com.llvision.vcs.Application             : The following profiles are active: mysql
2016-08-23 02:35:39.145  INFO 19596 --- [main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@25f38edc: startup date [Tue Aug 23 02:35:39 UTC 2016]; root of context hierarchy
2016-08-23 02:35:43.362  INFO 19596 --- [main] o.s.b.f.s.DefaultListableBeanFactory     : Overriding bean definition for bean 'ignoredPathsWebSecurityConfigurerAdapter' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.security.SpringBootWebSecurityConfiguration; factoryMethodName=ignoredPathsWebSecurityConfigurerAdapter; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/security/SpringBootWebSecurityConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.actuate.autoconfigure.ManagementWebSecurityAutoConfiguration; factoryMethodName=ignoredPathsWebSecurityConfigurerAdapter; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/actuate/autoconfigure/ManagementWebSecurityAutoConfiguration.class]]
@                    
0
乌鸦东南飞
乌鸦东南飞
怎么回事呢   是服务器定时重启了还是 内存溢出你呢 但是在本地开监控并没有发现什么异常
0
s
shuye007

找到原因了么?我也遇到了呀

张囡囡
回复 @乌鸦东南飞 : 哇,什么意思啊,贴下解决的代码
乌鸦东南飞
乌鸦东南飞
关闭时线程自己关闭了,不太懂,就是退出时候一关命令行
0
天灯石
天灯石

我也碰到了,提示都一样啊,spring boot 版本1.5.2

 

0
无怨_无悔

你们解决了这个问题了吗?能否给出你们的建议?

乌鸦东南飞
乌鸦东南飞
我的是,在我退出的时候关闭了线程,原因并没有找到,望找到后告知
0
yysf
yysf
java -jar aaa.jar >/dev/null 2>&1 &

用这个命令启动程序试试

0
乌鸦东南飞
乌鸦东南飞

谢谢大家,原因找到了是每次终结程序时自动终结了线程。

返回顶部
顶部