gpt4 book ai didi

java - Mac OS X 上的 Jenkins 速度缓慢并且崩溃

转载 作者:行者123 更新时间:2023-12-01 12:42:39 26 4
gpt4 key购买 nike

我在旧的 Mac Mini (2006) 上安装了 Jenkins,当我通过以下方式启动它时:

sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

它启动并运行,但一段时间后它停止工作(这意味着浏览器只会给我一个空白的白色屏幕)

但是当我尝试通过此命令(来自/Applications/Jenkins)运行它时:

 java -jar jenkins.war

然后我在终端中收到此错误:

webroot: $user.home/.jenkins
Jul 25, 2014 2:23:44 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Jul 25, 2014 2:23:48 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-8.y.z-SNAPSHOT
Jul 25, 2014 2:23:52 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: /Users/echoqa/.jenkins found at: $user.home/.jenkins
Jul 25, 2014 2:23:53 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: FAILED SelectChannelConnector@0.0.0.0:8080: java.net.BindException: Address already in use
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.Server.doStart(Server.java:293)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at winstone.Launcher.<init>(Launcher.java:154)
at winstone.Launcher.main(Launcher.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at Main._main(Main.java:293)
at Main.main(Main.java:98)
Jul 25, 2014 2:23:53 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: FAILED org.eclipse.jetty.server.Server@45c1f5b2: java.net.BindException: Address already in use
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.Server.doStart(Server.java:293)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at winstone.Launcher.<init>(Launcher.java:154)
at winstone.Launcher.main(Launcher.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at Main._main(Main.java:293)
at Main.main(Main.java:98)
Jul 25, 2014 2:23:53 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: stopped w.{,file:/Users/echoqa/.jenkins/war/},/Users/echoqa/.jenkins/war
Jul 25, 2014 2:23:54 PM winstone.Logger logInternal
INFO: Winstone shutdown successfully
Jul 25, 2014 2:23:54 PM winstone.Logger logInternal
SEVERE: Container startup failed
java.io.IOException: Failed to start Jetty
at winstone.Launcher.<init>(Launcher.java:156)
at winstone.Launcher.main(Launcher.java:354)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at Main._main(Main.java:293)
at Main.main(Main.java:98)
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)
at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)
at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at org.eclipse.jetty.server.Server.doStart(Server.java:293)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
at winstone.Launcher.<init>(Launcher.java:154)
... 7 more
Jul 25, 2014 2:23:54 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Jul 25, 2014 2:23:54 PM hudson.util.BootFailure publish
SEVERE: Failed to initialize Jenkins
hudson.util.HudsonFailedToLoad: java.lang.InterruptedException
at hudson.WebAppMain$3.run(WebAppMain.java:234)
Caused by: java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:485)
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:267)
at jenkins.InitReactorRunner.run(InitReactorRunner.java:44)
at jenkins.model.Jenkins.executeReactor(Jenkins.java:896)
at jenkins.model.Jenkins.<init>(Jenkins.java:795)
at hudson.model.Hudson.<init>(Hudson.java:82)
at hudson.model.Hudson.<init>(Hudson.java:78)
at hudson.WebAppMain$3.run(WebAppMain.java:222)

我认为 Mac Mini 可能没有最佳的硬件,但不确定。我尝试增加 Jenkins 中的堆大小,但这似乎也没有帮助。

Mac Mini 规范为:

Mac OS X 10.6.82 GHz 英特尔酷睿 2 双核2 GB 667 MHz DDR2 SDRAM

有人知道为什么 Jenkins 这么慢并且崩溃吗?

最佳答案

我们在类似的硬件上运行 Jenkins,这根本不应该是问题。

这看起来是另一个进程已经绑定(bind)到端口 8080 的错误,并且很有可能这可能是您之前启动的 jenkins 实例。如果没有,请检查是否有任何其他进程尚未占用此端口。

尝试将 localhost:8080 放入浏览器中以检查 Jenkins 是否已在运行。或者尝试在终端中运行 lsof -i:8080 来查看还可能绑定(bind)的内容。

关于java - Mac OS X 上的 Jenkins 速度缓慢并且崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24964545/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com