Re: CruiseControl Dashboard issue.

"Lucas Albers" <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
I tried a number of CC options to resolve this sort of error over the past
month.

And settled on for build/dashboard servers:

 

set CC_OPTS=-server -Xms1024m -Xmx1024m -XX:+AggressiveOpts

 

I have some servers set to run the build and dashboard on the same server, 

Most of my build servers are separated from the dashboard server.

So even if the build is fully utilizing the server, the dashboard will not
slow down, as it is a separate server.

 

On the dedicated dashboard server I have:

CC_OPTS="-server -Xms512m -Xmx512m -XX:+AggressiveOpts"

 

 

These options appear to be the most reliable for long running dashboard
servers.

They don't run out of memory, go into cpu loops, or stop responding.

 

I settled on jdk 1.6 12 x86 as my cc jvm.

 

 

Options I have tried in the past few months:

 

REM Uncomment the following line if you have OutOfMemoryError errors

REM set CC_OPTS=-Xms128m -Xmx256m

rem set CC_OPTS=-server -Xms1024m -Xmx1024m -XX:+UseParallelGC

rem set CC_OPTS=-server -XX:+UseParallelGC

rem set CC_OPTS=-server -XX:PermSize=1024m -XX:MaxPermSize=1024m
-XX:+UseParallelGC  -XX:+UseLargePages -XX:InitialCodeCacheSize=64m

rem set CC_OPTS=-server -Xms1024m -Xmx1024m -XX:+UseParallelGC
-XX:+AggressiveOpts  -XX:+PrintCommandLineFlags 

rem set CC_OPTS=-server -Xms512m -Xmx1024m -XX:+PrintCommandLineFlags
-XX:+AggressiveOpts -XX:+UseBiasedLocking -XX:+UseParallelOldGC
-XX:ParallelGCThreads=2  -XX:ReservedCodeCacheSize=256m
-XX:InitialCodeCacheSize=128m

 

rem http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html#icms

rem set CC_OPTS=-server -Xms1024m -Xmx1024m -XX:+AggressiveOpts
-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+PrintGCDetails
-XX:+PrintGCTimeStamps

 

rem -XX:+AggressiveOpts -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps 

 

rem set CC_OPTS=-server

 

rem set CC_OPTS=-Xms256m -Xmx512m -server

rem set CC_OPTS=-server -Xms512m -Xmx512m  -XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode

 

rem setting the option to:

rem CC_OPTS=

rem ergo default java opts is nice and reliable.

 

rem lets try this one

rem set CC_OPTS=-server -Xms512m -Xmx512m

 

 

 

 

 

From: [email protected] [mailto:[email protected]] 
Sent: Friday, May 01, 2009 10:05 AM
To: [email protected]
Subject: [Cruisecontrol-user] CruiseControl Dashboard issue.

 

Hello,

Has anyone seen the following issue with CruiseControl? It's running out of
memory and after the exception is thrown a message is displayed, Unable to
connect to build loop <compname>. Nothing has changed in my environment that
I know of. This issue has just started to crop up. 

Does anyone have any thoughts or suggestions? FYI...here's my CC_OPTS
settings.

set CC_OPTS=-Xms256m -Xmx1024m -XX:+UseParallelGC -XX:MaxPermSize=256m



2009-05-01 11:32:25.637::WARN: /dashboard/getProjectBuildOutput.ajax
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:597)
at mx4j.remote.AbstractRemoteNotificationClientHandler$NotificationFetch
erThread.start(AbstractRemoteNotificationClientHandler.java:338)
at mx4j.remote.AbstractRemoteNotificationClientHandler$NotificationFetch
erThread.access$400(AbstractRemoteNotificationClientHandler.java:273)
at mx4j.remote.AbstractRemoteNotificationClientHandler.start(AbstractRem
oteNotificationClientHandler.java:82)
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:13
2)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFacto
ry.java:38)
at net.sourceforge.cruisecontrol.dashboard.service.JMXConnectorFactory.c
onnect(JMXConnectorFactory.java:10)
at net.sourceforge.cruisecontrol.dashboard.repository.BuildInformationRe
positoryInMemoImpl.getJmxConnection(BuildInformationRepositoryInMemoImpl.jav
a:44
)
at net.sourceforge.cruisecontrol.dashboard.service.BuildLoopQueryService
.getJMXConnection(BuildLoopQueryService.java:152)
at net.sourceforge.cruisecontrol.dashboard.service.BuildLoopQueryService
.getBuildOutput(BuildLoopQueryService.java:135)
at net.sourceforge.cruisecontrol.dashboard.web.GetProjectBuildOutputCont
roller.handleRequest(GetProjectBuildOutputController.java:62)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.ha
ndle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatch
erServlet.java:858)
at org.springframework.web.servlet.DispatcherServlet.doService(Dispatche
rServlet.java:792)
at org.springframework.web.servlet.FrameworkServlet.processRequest(Frame
workServlet.java:476)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServl
et.java:431)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
62)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
29)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:206)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
52)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
5)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCo
nnection.java:829)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.j
ava:488)
May 1, 2009 11:32:48 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop
executeAcc
eptLoop
WARNING: RMI TCP Accept-0: accept loop for
ServerSocket[addr=0.0.0.0/0.0.0.0,por
t=0,localport=1720] throws
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:597)
at java.util.concurrent.ThreadPoolExecutor.addIfUnderMaximumPoolSize(Thr
eadPoolExecutor.java:727)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.ja
va:657)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTr
ansport.java:384)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:3
41)
at java.lang.Thread.run(Thread.java:619)
May 1, 2009 11:32:48 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop
executeAcc
eptLoop
WARNING: RMI TCP Accept-0: accept loop for
ServerSocket[addr=0.0.0.0/0.0.0.0,por
t=0,localport=1720] throws
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:597)
at java.util.concurrent.ThreadPoolExecutor.addIfUnderMaximumPoolSize(Thr
eadPoolExecutor.java:727)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.ja
va:657)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTr
ansport.java:384)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:3
41)
at java.lang.Thread.run(Thread.java:619)
May 1, 2009 11:32:48 AM sun.rmi.transport.tcp.TCPTransport$AcceptLoop
executeAcc
eptLoop
WARNING: RMI TCP Accept-0: accept loop for
ServerSocket[addr=0.0.0.0/0.0.0.0,por
t=0,localport=1720] throws
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:597)
at java.util.concurrent.ThreadPoolExecutor.addIfUnderMaximumPoolSize(Thr
eadPoolExecutor.java:727)
at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.ja
va:657)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.executeAcceptLoop(TCPTr
ansport.java:384)
at sun.rmi.transport.tcp.TCPTransport$AcceptLoop.run(TCPTransport.java:3
41)
at java.lang.Thread.run(Thread.java:619)

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.