Spring套1.5.8
java 1.8版
MySQL5.7.23版本
操作系统:centos 7
主持人:数字海洋
Apache
我的头一直撞在墙上。好像有一天突然我的应用程序开始永远加载(小时和小时),不知道为什么。我确实试着安装rocket.chat(node/mongodb/etc),当时事情似乎有了转机,但我认为这只是一个巧合。
我启用了日志记录
logging.level.com=DEBUG
logging.level.org=DEBUG
做了一些我在一些帖子上看到的事情,比如
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false
安装了避风港
什么都没用。在我的本地机器上运行得很好,但是在服务器上,加载需要很长时间。
这是我的日志。东西在原木上飞了大约3秒钟,然后在这里停下来。
/usr/lib/jvm/jre-1.8.0-openjdk/bin/java -jar /var/myjar-1.1.2.jar SuccessExitStatus=143
我想把这个日志粘贴到一个代码剪贴它,但它不工作。。。
2018-09-05 17:37:39.560 DEBUG 7970 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'entityManagerFactoryBuilder'
2018-09-05 17:37:39.560 DEBUG 7970 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating instance of bean 'entityManagerFactoryBuilder'
2018-09-05 17:37:39.560 DEBUG 7970 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Returning cached instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'
2018-09-05 17:37:39.560 DEBUG 7970 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Returning cached instance of singleton bean 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration'
2018-09-05 17:37:39.561 DEBUG 7970 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating shared instance of singleton bean 'jpaVendorAdapter'
2018-09-05 17:37:39.561 DEBUG 7970 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Creating instance of bean 'jpaVendorAdapter'
2018-09-05 17:37:39.561 DEBUG 7970 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Returning cached instance of singleton bean 'org.springframework.transaction.config.internalTransactionAdvisor'
2018-09-05 17:37:39.561 DEBUG 7970 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Returning cached instance of singleton bean 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration'
2018-09-05 17:37:39.642 DEBUG 7970 --- [ main] o.s.jdbc.datasource.DataSourceUtils : Fetching JDBC Connection from DataSource
2018-09-05 17:37:39.689 DEBUG 7970 --- [ main] o.a.tomcat.jdbc.pool.PooledConnection : Instantiating driver using class: com.mysql.jdbc.Driver [url=jdbc:mysql://localhost:3306/mydbname?useSSL=false]
2018-09-05 17:37:39.690 DEBUG 7970 --- [ main] o.a.tomcat.jdbc.pool.ClassLoaderUtil : Attempting to load class[com.mysql.jdbc.Driver] from org.springframework.boot.loader.LaunchedURLClassLoader@65b54208
2018-09-05 17:39:47.377 DEBUG 7970 --- [ main] o.a.tomcat.jdbc.pool.PooledConnection : Instantiating driver using class: com.mysql.jdbc.Driver [url=jdbc:mysql://localhost:3306/mydbname?useSSL=false]
2018-09-05 17:39:47.377 DEBUG 7970 --- [ main] o.a.tomcat.jdbc.pool.ClassLoaderUtil : Attempting to load class[com.mysql.jdbc.Driver] from org.springframework.boot.loader.LaunchedURLClassLoader@65b54208
2018-09-05 17:40:39.080 DEBUG 7970 --- [Engine[Tomcat]]] org.apache.catalina.session.ManagerBase : Start expire sessions StandardManager at 1536187239079 sessioncount 0
2018-09-05 17:40:39.080 DEBUG 7970 --- [Engine[Tomcat]]] org.apache.catalina.session.ManagerBase : End expire sessions StandardManager processingTime 1 expired sessions
如果我需要打开更多的调试,请告诉我。
暂无答案!
目前还没有任何答案,快来回答吧!