这是一个大型应用程序,具有多个maven模块,超过500个bean。每个bean都依赖一个或多个。
应用程序能够在一分钟内运行几天,但是现在问题是,即使在10分钟内它也无法启动。我已启用调试模式日志,并连续获取日志下方超过7-8分钟,但最后却收到无法启动tomcat的错误消息。
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Adding type Ljava/util/List<Lcom/param/entity/model/master/KinDetail;>; for parameter kinDetailsList
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Adding collectionElement type Lcom/param/entity/model/master/KinDetail;
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Recursively resolving dependencies for collectionElement type Lcom/param/entity/model/master/KinDetail;
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Adding type Lcom/param/entity/model/master/Unit; for parameter unit
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Recursively resolving dependencies for type Lcom/param/entity/model/master/Unit;
INFO : springfox.documentation.schema.property.ModelPropertiesKeyGenerator - Cache key generated: com.param.entity.model.master.Unit(false)
INFO : springfox.documentation.spring.web.caching.CachingAspect - Caching aspect applied for cache modelProperties with key com.param.entity.model.master.Unit(false)
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Adding type Ljava/sql/Timestamp; for parameter createdDate
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Recursively resolving dependencies for type Ljava/sql/Timestamp;
INFO : springfox.documentation.schema.property.ModelPropertiesKeyGenerator - Cache key generated: java.sql.Timestamp(false)
INFO : springfox.documentation.spring.web.caching.CachingAspect - Caching aspect applied for cache modelProperties with key java.sql.Timestamp(false)
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Adding type Ljava/sql/Timestamp; for parameter updatedDate
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Recursively resolving dependencies for type Ljava/sql/Timestamp;
INFO : springfox.documentation.schema.property.ModelPropertiesKeyGenerator - Cache key generated: java.sql.Timestamp(false)
INFO : springfox.documentation.spring.web.caching.CachingAspect - Caching aspect applied for cache modelProperties with key java.sql.Timestamp(false)
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Adding type Lcom/param/entity/model/master/VisitType; for parameter visitType
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Recursively resolving dependencies for type Lcom/param/entity/model/master/VisitType;
INFO : springfox.documentation.schema.property.ModelPropertiesKeyGenerator - Cache key generated: com.param.entity.model.master.VisitType(false)
INFO : springfox.documentation.spring.web.caching.CachingAspect - Caching aspect applied for cache modelProperties with key com.param.entity.model.master.VisitType(false)
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Adding type Ljava/sql/Timestamp; for parameter createdDate
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Recursively resolving dependencies for type Ljava/sql/Timestamp;
INFO : springfox.documentation.schema.property.ModelPropertiesKeyGenerator - Cache key generated: java.sql.Timestamp(false)
INFO : springfox.documentation.spring.web.caching.CachingAspect - Caching aspect applied for cache modelProperties with key java.sql.Timestamp(false)
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Adding type Ljava/sql/Timestamp; for parameter updatedDate
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Recursively resolving dependencies for type Ljava/sql/Timestamp;
INFO : springfox.documentation.schema.property.ModelPropertiesKeyGenerator - Cache key generated: java.sql.Timestamp(false)
INFO : springfox.documentation.spring.web.caching.CachingAspect - Caching aspect applied for cache modelProperties with key java.sql.Timestamp(false)
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Adding type Ljava/util/List<Lcom/param/entity/model/master/KinDetail;>; for parameter kinDetailsList
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Adding collectionElement type Lcom/param/entity/model/master/KinDetail;
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Recursively resolving dependencies for collectionElement type Lcom/param/entity/model/master/KinDetail;
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Adding type Ljava/util/List<Lcom/param/entity/model/master/State;>; for parameter stateList
DEBUG: springfox.documentation.schema.ModelDependencyProvider - Adding collectionElement type Lcom/param/entity/model/master/State;
....
....
它们可能是一些休眠的关系问题,但是由于应用程序的大小,我无法找出导致此问题的关系。
任何人都可以通过查看这些日志来帮助我,
- 这些日志是什么?
- 以及如何找到错误的休眠关系(如果有)?
- 必须是一些配置问题(因此服务器启动时间超过10分钟)
注意:
1.我已经设置了default-lazy-init="true"
提到了可能的最佳特定component-scan base-package
检查了@ManyToOne(fetch = FetchType.LAZY)