【问题标题】:Hudson server always stopped every morning day哈德逊服务器每天早上总是停止
【发布时间】:2010-10-18 22:13:41
【问题描述】:

我每天早上都会遇到这个常规问题,我的构建服务器 (Hudson) 每天早上总是停止,所以我必须手动启动它,是否有任何原因或任何位置可以开始查找错误消息?

这是我所做的错误诊断:

蛔虫:~# ps -ef | grep -i hud 根 5959 5944 0 09:00 pts/0 00:00:00 grep -i hud 蛔虫:~# cd /etc/init.d 蛔虫:/etc/init.d# ./hudson start 蛔虫:/etc/init.d# ps -ef | grep -i hud 哈德逊 6004 1 0 09:00 ? 00:00:00 /usr/bin/daemon --name=hudson --继承 --env=HUDSON_HOME=/var/lib/hudson --output=/var/log/hudson/hudson.log --user=hudson --pidfile=/var/run/hudson/hudson.pid -- /usr/bin/java -Xms512m -Xmx1 024m -Dhttp.proxyHost=proxy.domain.com -Dhttp.proxyPort=3128 -Dhttp.nonProxyHo sts=" localhost|ascari|*.domain.com" -jar /usr/share/hudson/hudson.war --webroo t=/var/run/hudson/war 哈德逊 6005 6004 48 09:00 ? 00:00:01 /usr/bin/java -Xms512m -Xmx1024m -Dhttp.proxyHost=proxy.domain.com -Dhttp.proxyPort=3128 -Dhttp.nonProxyHosts= "localhost|ascari|*.domain.com" -jar / usr/share/hudson/hudson.war --webroot=/v ar/run/hudson/war 根 6008 5944 14 09:01 pts/0 00:00:00 grep -i hud 蛔虫:/etc/init.d# df -k -h 已使用的文件系统大小可用使用百分比已安装在 /dev/sda1 327M 125M 185M 41% / tmpfs 1.5G 0 1.5G 0% /lib/init/rw udev 10M 96K 10M 1% /dev tmpfs 1.5G 0 1.5G 0% /dev/shm /dev/sda9 4.7G 295M 4.1G 7% /home /dev/sda8 4.2G 155M 3.8G 4% /tmp /dev/sda5 4.6G 3.0G 1.4G 69% /usr /dev/sda6 65G 32G 30G 52% /var 蛔虫:/etc/init.d# uname -a Linux ascari 2.6.26-2-686 #1 SMP Sun Jun 21 04:57:38 UTC 2009 i686 GNU/Linux 蛔虫:/etc/init.d#

【问题讨论】:

    标签: linux apache tomcat hudson


    【解决方案1】:

    您是否检查过日志文件(上面引用过)并设置了--logfile 参数(如文档中的here)?

    【讨论】:

    • 啊...,日志文件引用的位置在哪里?
    • 谢谢,错误日志似乎在 /var/log/message 中,上面写着:[] oom_kill_process+0x4f/0x195 [] out_of_memory+0x14e/0x17f [] error_code+0x72/0x78 它是由同时编译的项目太多引起的,因此将每个项目重新安排为间隔 30 分钟就可以了,现在解决了。
    • 太棒了!很高兴对它进行排序
    【解决方案2】:

    重新安排项目构建可以解决问题。 由于内存过度消耗,Hudson 进程被 Linux 内核杀死。

    【讨论】:

    • 我现在面临同样的问题。真的很奇怪。服务器每天早上停机,下午 5 点重新启动。
    猜你喜欢
    • 1970-01-01
    • 2010-12-22
    • 1970-01-01
    • 1970-01-01
    • 2012-08-20
    • 1970-01-01
    • 2011-01-26
    • 2023-03-24
    • 1970-01-01
    相关资源
    最近更新 更多