2012-11-05 161 views
6

我的詹金斯服務器隨機崩潰,所以我確保有最新版本並檢查日誌,但他們沒有提供給我有用的信息。我的問題是:如何調試這些崩潰?有沒有增加日誌級別的方法?詹金斯隨機崩潰

這裏是我的日誌輸出:

Running 

from: /usr/share/jenkins/jenkins.war 
Nov 5, 2012 12:42:33 PM winstone.Logger logInternal 
INFO: Beginning extraction from war file 
Jenkins home directory: /var/lib/jenkins found at: EnvVars.masterEnvVars.get("JENKINS_HOME") 
Nov 5, 2012 12:42:35 PM winstone.Logger logInternal 
INFO: HTTP Listener started: port=8080 
Nov 5, 2012 12:42:35 PM winstone.Logger logInternal 
INFO: Winstone Servlet Engine v0.9.10 running: controlPort=disabled 
Nov 5, 2012 12:42:36 PM jenkins.InitReactorRunner$1 onAttained 
INFO: Started initialization 
Nov 5, 2012 12:42:36 PM hudson.ClassicPluginStrategy createPluginWrapper 
INFO: Plugin cvs.jpi is disabled 
Nov 5, 2012 12:42:36 PM hudson.ClassicPluginStrategy createPluginWrapper 
INFO: Plugin translation.jpi is disabled 
Nov 5, 2012 12:42:36 PM hudson.ClassicPluginStrategy createPluginWrapper 
INFO: Plugin subversion.jpi is disabled 
Nov 5, 2012 12:42:36 PM jenkins.InitReactorRunner$1 onAttained 
INFO: Listed all plugins 
Nov 5, 2012 12:42:36 PM jenkins.InitReactorRunner$1 onAttained 
INFO: Prepared all plugins 
Nov 5, 2012 12:42:36 PM jenkins.InitReactorRunner$1 onAttained 
INFO: Started all plugins 
Nov 5, 2012 12:42:41 PM jenkins.InitReactorRunner$1 onAttained 
INFO: Augmented all extensions 
Nov 5, 2012 12:42:41 PM jenkins.InitReactorRunner$1 onAttained 
INFO: Loaded all jobs 
Nov 5, 2012 12:42:41 PM org.apache.sshd.common.util.SecurityUtils$BouncyCastleRegistration run 
INFO: Trying to register BouncyCastle as a JCE provider 
Nov 5, 2012 12:42:41 PM org.apache.sshd.common.util.SecurityUtils$BouncyCastleRegistration run 
INFO: Registration succeeded 
Nov 5, 2012 12:42:42 PM org.jenkinsci.main.modules.sshd.SSHD start 
INFO: Started SSHD at port 52235 
Nov 5, 2012 12:42:42 PM jenkins.InitReactorRunner$1 onAttained 
INFO: Completed initialization 
Nov 5, 2012 12:42:43 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh 
INFO: Refreshing org.[email protected]271a2576: display name [Root WebApplicationContext]; startup date [Mon Nov 05 12:42:43 CET 2012]; root of context hierarchy 
Nov 5, 2012 12:42:43 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory 
INFO: Bean factory for application context [org.[email protected]271a2576]: org.s[email protected]28ce41cc 
Nov 5, 2012 12:42:43 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons 
INFO: Pre-instantiating singletons in org.s[email protected]28ce41cc: defining beans [authenticationManager]; root of factory hierarchy 
Nov 5, 2012 12:42:44 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh 
INFO: Refreshing org.[email protected]654481bb: display name [Root WebApplicationContext]; startup date [Mon Nov 05 12:42:44 CET 2012]; root of context hierarchy 
Nov 5, 2012 12:42:44 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory 
INFO: Bean factory for application context [org.[email protected]654481bb]: org.s[email protected]20e1ed5b 
Nov 5, 2012 12:42:44 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons 
INFO: Pre-instantiating singletons in org.s[email protected]20e1ed5b: defining beans [filter,legacy]; root of factory hierarchy 
Nov 5, 2012 12:42:44 PM hudson.TcpSlaveAgentListener <init> 
INFO: JNLP slave agent listener started on TCP port 52602 
Nov 5, 2012 12:42:44 PM hudson.WebAppMain$2 run 
INFO: Jenkins is fully up and running 

任何暗示我嗎?

+0

你剛剛安裝的日誌部分只顯示它啓動。在Jenkins崩潰之前,還有什麼更多? – Sagar

+0

另外,你在運行什麼操作系統?你在使用內部的Winsone服務器還是Tomcat?它是作爲服務運行嗎? – Sagar

+0

嘗試從命令行('java -jar jenkins.war')運行,並將該輸出添加到問題中。你怎麼知道它崩潰? – hyde

回答

0

爲了增加詹金斯本身的日誌級別,通過命令行開始時詹金斯使用下面的參數:

-Djava.util.logging.loglevel=FINE 

這應該改變記錄作爲顯示在GUI詹金斯