• 踩坑记:前后端分离的项目启动时间过长


    现象:

    每次项目启动日志到这句就停止不动了(JUL to SLF4J bridge is not available on the classpath),虽然后面会启动起来

    解决办法:在tomcat安装目录中的catalina.sh中加一句配置即可解决该问题

    
    JAVA_OPTS="$JAVA_OPTS -Xms2048m -Xmx2048m -Xmn1024m -XX:PermSize=1024m -XX:MaxPermSize=1024m -XX:+UseConcMarkSweepGC -XX:CMSFullGCsBeforeCompaction=1 -XX:+UseCMSCompactAtFullCollection -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSClassUnloadingEnabled -XX:+CMSParallelRemarkEnabled  

    #tomcat启动时间过长配置参数
    -Djava.security.egd=file:/dev/./urandom
    #debug模式配置参数
    -server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9999"
  • 相关阅读:
    elasticsearch api
    kaili camera
    mysql create db utf8 character
    npm run-script
    d-link kvm 关闭声音
    setInterval js
    jpa datasource config
    mvn添加本地jar
    Sublime Text 2 中文包
    初遇ping++
  • 原文地址:https://www.cnblogs.com/lxcy/p/9714893.html
Copyright © 2020-2023  润新知