当前位置: 移动技术网 > IT编程>开发语言>Java > 踩坑记:前后端分离的项目启动时间过长

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

2018年09月28日  | 移动技术网IT编程  | 我要评论

现象:

每次项目启动日志到这句就停止不动了(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"

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网