【发布时间】:2012-01-30 11:51:34
【问题描述】:
我有一个 java web 应用程序,使用 Spring、Jersey (jax-rs) 和 Hibernate。
它运行良好且快速,但有时仅在调试模式下初始化需要大量时间,而且启动时真的很慢......
我在 MAC OS X 上使用 Eclipse 3.6、Apache Tomcat 6 和 java 1.6.0_29。
写入此日志行后应用程序开始缓慢记录:
INFO: Initializing Spring root WebApplicationContext
在此日志行之前:
30-dic-2011 10.51.25 com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
com.example.project.web.rest
我该如何调查?有什么建议吗?
不幸的是,我真的不知道我做了什么来降低性能..
非常感谢您的帮助! 大卫。
【问题讨论】:
标签: java spring debugging tomcat jersey