贴一层tomcat启动代码,前辈们看一看项目是哪出了问题 启动特慢,
D:\apache-tomcat-8.0.30\bin\catalina.bat run
[2019-05-13 10:07:54,976] Artifact vlis1:war exploded: Waiting for server connection to start artifact deployment...
Using CATALINA_BASE:   "C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Unnamed_vlis"
Using CATALINA_HOME:   "D:\apache-tomcat-8.0.30"
Using CATALINA_TMPDIR: "D:\apache-tomcat-8.0.30\temp"
Using JRE_HOME:        "D:\feiq\Recv Files\jdk1.8.0_101"
Using CLASSPATH:       "D:\apache-tomcat-8.0.30\bin\bootstrap.jar;D:\apache-tomcat-8.0.30\bin\tomcat-juli.jar"
Connected to the target VM, address: '127.0.0.1:14110', transport: 'socket'
2019-05-13 22:08:24 JRebel:  Starting logging to file: C:\Users\Administrator\.jrebel\jrebel.log
2019-05-13 22:08:24 JRebel:  
2019-05-13 22:08:24 JRebel:  #############################################################
2019-05-13 22:08:24 JRebel:  
2019-05-13 22:08:24 JRebel:  JRebel Agent 2019.1.1 (201904120806)
2019-05-13 22:08:24 JRebel:  (c) Copyright 2007-2019 Rogue Wave Software, Inc.
2019-05-13 22:08:24 JRebel:  
2019-05-13 22:08:24 JRebel:  Over the last 1 days JRebel prevented
2019-05-13 22:08:24 JRebel:  at least 0 redeploys/restarts saving you about 0 hours.
2019-05-13 22:08:24 JRebel:  
2019-05-13 22:08:24 JRebel:  License acquired from License Server: http://139.199.89.239:1008
2019-05-13 22:08:24 JRebel:  
2019-05-13 22:08:24 JRebel:  Licensed to Administrator.
2019-05-13 22:08:24 JRebel:  
2019-05-13 22:08:24 JRebel:  You are using an offline license.
2019-05-13 22:08:24 JRebel:  
2019-05-13 22:08:24 JRebel:  
2019-05-13 22:08:24 JRebel:  #############################################################
2019-05-13 22:08:24 JRebel:  
13-May-2019 22:08:31.677 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.0.30
13-May-2019 22:08:31.681 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Dec 1 2015 22:30:46 UTC
13-May-2019 22:08:31.681 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.0.30.0
13-May-2019 22:08:31.681 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows 7
13-May-2019 22:08:31.682 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            6.1
13-May-2019 22:08:31.683 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
13-May-2019 22:08:31.683 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             D:\feiq\Recv Files\jdk1.8.0_101\jre
13-May-2019 22:08:31.684 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_101-b13
13-May-2019 22:08:31.684 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
13-May-2019 22:08:31.684 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Unnamed_vlis
13-May-2019 22:08:31.687 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         D:\apache-tomcat-8.0.30
13-May-2019 22:08:31.688 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Drebel.base=C:\Users\Administrator\.jrebel
13-May-2019 22:08:31.698 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Drebel.env.ide.plugin.version=2019.1.1
13-May-2019 22:08:31.699 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Drebel.env.ide.version=2018.3
13-May-2019 22:08:31.699 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Drebel.env.ide.product=IU
13-May-2019 22:08:31.699 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Drebel.env.ide=intellij
13-May-2019 22:08:31.700 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Drebel.notification.url=http://localhost:17434
13-May-2019 22:08:31.700 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -agentpath:C:\Users\Administrator\.IntelliJIdea2018.3\config\plugins\jr-ide-idea\lib\jrebel6\lib\jrebel64.dll
13-May-2019 22:08:31.700 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:14110,suspend=y,server=n
13-May-2019 22:08:31.701 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -javaagent:C:\Users\Administrator\.IntelliJIdea2018.3\system\captureAgent\debugger-agent.jar
13-May-2019 22:08:31.701 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
13-May-2019 22:08:31.701 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
13-May-2019 22:08:31.702 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
13-May-2019 22:08:31.702 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
13-May-2019 22:08:31.703 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
13-May-2019 22:08:31.703 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Unnamed_vlis\conf\logging.properties
13-May-2019 22:08:31.703 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
13-May-2019 22:08:31.704 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=D:\apache-tomcat-8.0.30\endorsed
13-May-2019 22:08:31.704 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\Administrator\.IntelliJIdea2018.3\system\tomcat\Unnamed_vlis
13-May-2019 22:08:31.704 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=D:\apache-tomcat-8.0.30
13-May-2019 22:08:31.704 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-8.0.30\temp
13-May-2019 22:08:31.705 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.1.
13-May-2019 22:08:31.705 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
13-May-2019 22:08:33.367 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.1m 19 Mar 2015)
13-May-2019 22:08:34.504 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-8989"]
13-May-2019 22:08:34.556 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-apr-8009"]
13-May-2019 22:08:34.565 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 5481 ms
13-May-2019 22:08:34.793 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
13-May-2019 22:08:34.794 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.30
13-May-2019 22:08:35.173 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-8989"]
13-May-2019 22:08:35.231 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-apr-8009"]
13-May-2019 22:08:35.338 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 771 ms
Connected to server
[2019-05-13 10:08:35,773] Artifact vlis1:war exploded: Artifact is being deployed, please wait...
13-May-2019 22:08:45.204 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\apache-tomcat-8.0.30\webapps\manager
13-May-2019 22:08:46.818 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
13-May-2019 22:08:48.182 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\apache-tomcat-8.0.30\webapps\manager has finished in 2,977 ms
13-May-2019 22:09:30.026 INFO [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2019-05-13 22:09:35 JRebel: Monitoring Spring bean definitions in 'F:\vlis1\target\vlis-1.0-SNAPSHOT\WEB-INF\classes\applicationContext-resources.xml'.
2019-05-13 22:09:36 JRebel: Monitoring Spring bean definitions in 'F:\vlis1\target\vlis-1.0-SNAPSHOT\WEB-INF\classes\applicationContext-dao.xml'.
2019-05-13 22:09:38 JRebel: Monitoring Spring bean definitions in 'F:\vlis1\target\vlis-1.0-SNAPSHOT\WEB-INF\classes\applicationContext-service.xml'.
2019-05-13 22:09:43 JRebel: Monitoring Spring bean definitions in 'F:\vlis1\target\vlis-1.0-SNAPSHOT\WEB-INF\applicationContext.xml'.
2019-05-13 22:09:48 JRebel: Monitoring Spring bean definitions in 'F:\vlis1\target\vlis-1.0-SNAPSHOT\WEB-INF\cxf-servlet.xml'.
2019-05-13 22:09:48 JRebel: Monitoring Spring bean definitions in 'F:\vlis1\target\vlis-1.0-SNAPSHOT\WEB-INF\security.xml'.
2019-05-13 22:10:00 JRebel: Monitoring properties in 'file:/F:/vlis1/target/vlis-1.0-SNAPSHOT/WEB-INF/classes/jdbc.properties'.
2019-05-13 22:10:00 JRebel: Monitoring properties in 'file:/F:/vlis1/target/vlis-1.0-SNAPSHOT/WEB-INF/classes/mail.properties'.
2019-05-13 22:10:00 JRebel: Monitoring properties in 'file:/F:/vlis1/target/vlis-1.0-SNAPSHOT/WEB-INF/classes/hibernate.properties'.
2019-05-13 22:10:00 JRebel: Monitoring properties in 'file:/F:/vlis1/target/vlis-1.0-SNAPSHOT/WEB-INF/classes/package.properties'.
**WARN [RMI TCP Connection(3)-127.0.0.1] SecurityInterceptor.afterPropertiesSet(141) | Could not validate configuration attributes as the SecurityMetadataSource did not return any attributes from getAllConfigAttributes()**

13-May-2019 22:42:01.737 INFO [RMI TCP Connection(3)-127.0.0.1] com.sun.faces.config.ConfigureListener.contextInitialized 初始化上下文 '/vlis1' 的 Mojarra 2.2.10 ( 20150205-0906 https://svn.java.net/svn/mojarra~svn/tags/2.2.10@14334)
13-May-2019 22:42:03.710 INFO [RMI TCP Connection(3)-127.0.0.1] com.sun.faces.spi.InjectionProviderFactory.createInstance JSF1048:有 PostConstruct/PreDestroy 注释。标有这些注释的 ManagedBeans 方法将表示注释已处理。
13-May-2019 22:42:06.353 SEVERE [RMI TCP Connection(3)-127.0.0.1] com.sun.faces.config.JavaClassScanningAnnotationScanner$ConstantPoolInfo.containsAnnotation Unknow type constant pool 18 at position 32

看一下,我电脑4g内存启动时间半个小时,8g内存启动十几分钟,
启动时候mysql同时也在运行中,

WARN [RMI TCP Connection(3)-127.0.0.1] SecurityInterceptor.afterPropertiesSet(141) | Could not validate configuration attributes as the SecurityMetadataSource did not return any attributes from getAllConfigAttributes()
这个在运行完之后就不动了,用的是jrebel debug启动

1个回答

启动半个小时也太夸张了吧,启动慢一般就是加载东西特别多

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!