|NO.Z.00024|——————————|^^ 报错 ^^|——|Jenkins报错分析.V01|

报错分析一:报错现象:jenkins访问一直处于等待状态
### --- 报错现象
~~~     tomcat日志显示如下信息:

[root@server11 ~]# tail -f /usr/local/tomcat/logs/catalina.out
WARNING [Handling GET /jenkins/login from 10.0.0.174 : http-nio-8080-exec-3 HudsonIsLoading/index.jelly] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/lib/layout/breadcrumbs.jelly] to the cache for web application [/jenkins] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
### --- 解决方案
~~~     只要在$CATALINA_BASE/conf/context.xml里增加资源最大可缓存的大小就行了,
~~~     大小可按自己的需要定义  
~~~     最后重起tomcat,问题解决!

[root@server11 ~]# vim /usr/local/tomcat/conf/context.xml 
<Context>

    <!-- Default set of monitored resources. If one of these changes, the    -->
    <!-- web application will be reloaded.                                   -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    <WatchedResource>WEB-INF/tomcat-web.xml</WatchedResource>
    <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
    <Resources
        cachingAllowed="true"
        cacheMaxSize="100000"
    />
</Context>

报错分析二:剩余内存必须大于2G
### --- 报错现象:tomcat启动之前的内存:

[root@server12 ~]# free -m
              total        used        free      shared  buff/cache   available
Mem:           2845         130        2212          17         502        2630
Swap:          4095           0        4095
### --- 解决方案:tomcat启动之后的内存:

[root@server11 ~]# free -m
              total        used        free      shared  buff/cache   available
Mem:           8837         2435       5232        33        1169        6045
Swap:          4095           3        4092

报错分析三:
### --- 报错现象:

~~~     插件下载后继续下面初始化完成点开始的时候跳到一个空白页面
### --- 解决方案:

~~~     点击地址栏左边的后退按钮即可进入正常页面
~~~     接着上面的错误,返回之后虽然进入正常界面,但是会有如下提示:手动安装这些插件

四、报错分析四:
### --- 报错现象:脚本权限
~~~     控制台输出报错脚本权限问题

bash:/jenkins/sh/deploy.sh:Permission denied
### --- 解决方案:

~~~     尝试修改构建后脚本的权限

五、报错分析五:
### --- 构建个人的github库时,缺失pom文件;

~~~     可以用公共库中拷贝,传到自己的GitHub上。 

 
 
 
 
 
 
 
 
 

Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
                                                                                                                                                   ——W.S.Landor

 

 

posted on   yanqi_vip  阅读(41)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示