rebot 汇聚多个output.xml文件时 失败的解决方案

前端之家收集整理的这篇文章主要介绍了rebot 汇聚多个output.xml文件时 失败的解决方案前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

起因:

[jenkins@hzNgJenkins 187]$ rebot --nostatusrc -o output.xml -N verification_2H_Main --logtitle verification_2H_Main --reporttitle verification_2H_Main /home/jenkins/.jenkins/jobs/Verification_2H_CITB2/builds/184/robot-plugin/output.xml /home/jenkins/.jenkins/jobs/Verification_2H_CITB12/builds/184/robot-plugin/output.xml /home/jenkins/.jenkins/jobs/Verification_2H_CITB10/builds/184/robot-plugin/output.xml /home/jenkins/.jenkins/jobs/Verification_2H_CITB8/builds/184/robot-plugin/output.xml /home/jenkins/.jenkins/jobs/Verification_2H_CITB6/builds/185/robot-plugin/output.xml /home/jenkins/.jenkins/jobs/Verification_2H_CITB4/builds/185/robot-plugin/output.xml
Killed

调查:

通过top -b >> /tmp/1.txt

发现是swap内存被消耗光了,原来的2G swap 不够

解决

通过文件方式扩大swap分解的大小


创建要作为swap分区的文件

root 用户登陆

touch/home/swapfile

dd if=/dev/zero of=/home/swapfile bs=1M count=8192


格式化为交换分区文件:

[root@hzNgJenkins home]# mkswap /home/swapfile
Setting up swapspace version 1,size = 8388604 KiB
no label,UUID=8556066c-dbed-4a26-941b-aab2e0a51a76
[root@hzNgJenkins home]#

#启用交换分区文件

chmod 0600 /home/swapfile

swapon /home/swapfile

# free -m 查看结果

#系统开机自启动:

文件/etc/fstab中添加一行:

/home/swapfile swap swap defaults 0 0

原文链接:https://www.f2er.com/xml/293656.html

猜你在找的XML相关文章