7

我的詹金斯服务器随机崩溃,所以我确保拥有最新版本并检查了日志,但它们没有为我提供有用的信息。我的问题是:如何调试这些崩溃?有没有办法提高日志级别?

这是我的日志输出:

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.springframework.web.context.support.StaticWebApplicationContext@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.springframework.web.context.support.StaticWebApplicationContext@271a2576]: org.springframework.beans.factory.support.DefaultListableBeanFactory@28ce41cc
Nov 5, 2012 12:42:43 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@28ce41cc: defining beans [authenticationManager]; root of factory hierarchy
Nov 5, 2012 12:42:44 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@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.springframework.web.context.support.StaticWebApplicationContext@654481bb]: org.springframework.beans.factory.support.DefaultListableBeanFactory@20e1ed5b
Nov 5, 2012 12:42:44 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@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

对我有什么提示吗?

4

1 回答 1

0

要提高 Jenkins 本身的日志级别,请在通过命令行启动 Jenkins 时使用以下参数:

-Djava.util.logging.loglevel=FINE

这应该会改变Jenkins GUI 中显示的日志记录。

于 2017-06-01T16:16:56.107 回答