spring 프로젝트 로드 가 매우 느 립 니 다.

  • spring 이 debug 모드 에서 실행 되 는 지 확인 하 십시오.2 로 이동 하지 않 으 면 3
  • 으로 이동 합 니 다.
  • spring 이 run 모드 에서 실행 되 는 지 여 부 를 보 려 면 3 으로 이동 하 십시오.그렇지 않 으 면 4
  • 로 이동 합 니 다.
  • spring bean 이 여러 번 불 러 왔 는 지 확인 하 십시오. http://blog.csdn.net/chaijunkun/article/details/6925889 안 그러면 넘 어가. http://jinnianshilongnian.iteye.com/blog/1883013 절차 에 따라 검사
  • 코드 에 있 는 모든 코드 정지점 을 비활성화 하거나 모두 삭제 하고 debug 모드 로 다시 들 어가 서 로드 속도 가 빨 라 지 는 지 확인 하 십시오. 

  • debug 모드 에서 응용 시작 속도 가 크게 느 려 질 수 있 음 을 발견 하 였 습 니 다.breakpoint 를 삭제 한 후 나의 응용 프로그램 은 171021ms+43824 ms=====》13021ms+2950ms
    솔 루 션:stackoverflow
    i have a java web application, using Spring, Jersey (jax-rs) and Hibernate.
    It runs fine and fast, but there are some days it takes a big amount of time to initialize in debug mode only and when it starts is really slow...
    I'm using Eclipse 3.6, Apache Tomcat 6 and java 1.6.0_29 for MAC OS X.
    Application begin to log slow after writing this log line:
    INFO: Initializing Spring root WebApplicationContext

    and before this log lines:
    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

    How can I investigate? Any suggestions?
    Unfortunately I really don't know what I did to reduce performance..
    Thanks a lot for help! Davide.
    One thing that's helped me in a similar situation is to delete all breakpoints in Eclipse. It's worth a try.
       http://stackoverflow.com/questions/8678409/java-spring-web-application-starts-slowly-in-debug-mode

    좋은 웹페이지 즐겨찾기