Re: OutOfMemoryError "unable to create new native thread" after successful build

Joe Schmetzer <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Does this problem occasionally after CC has been running for a
long-ish period of time? Perhaps this is the memory leak issue that
occurs when a brower watches an in-progress build. A fix has been
committed to subversion, but his has not yet been released:
http://jira.public.thoughtworks.org/browse/CC-831

Regards,
Joe

2009/9/7 Oliver Pfau <[email protected]>:
> Hi,
>
> after a successful build I get an OutOfMemoryError. My machine has 4 Gbyte
> RAM.
> The CC_OPTS=CC_OPTS=-Xms128m -Xmx1024m
>
> Here is my config.xml:
>
> <cruisecontrol>
>   <plugin name="svnbootstrapper"
> classname="net.sourceforge.cruisecontrol.bootstrappers.SVNBootstrapper" />
>   <project name="{project.name}">
>     <listeners>
>   <currentbuildstatuslistener file="logs/{project.name}/status.txt"/>
>     </listeners>
>     <bootstrappers>
>             <antbootstrapper
> anthome="D:/CruiseControlTestEnv/Projekte/trunk/ant"
> buildfile="D:/CruiseControlTestEnv/Projekte/trunk/ant/build.xml"
> target="clean"
>  />
>     </bootstrappers>
>     <modificationset>
>       <!-- touch any file in project to trigger a build -->
>       <svn LocalWorkingCopy="D:/CruiseControlTestEnv/Projekte/trunk" />
>     </modificationset>
>     <schedule interval="3600" ShowProgress="true">
>       <ant
> antscript="D:/CruiseControlTestEnv/Projekte/trunk/ant/bin/ant.bat"
> buildfile="D:/CruiseControlTestEnv/Projekte/trunk/ant/build.xml"
> target="nightlyBuild"
> antWorkingDir="D:/CruiseControlTestEnv/Projekte/trunk/ant"
> usedebug="false" ShowProgress="true" UseQuiet="true" UseLogger="false"
> multiple="1" showAntOutput="false">
>       </ant>
>     </schedule>
>  <log>
>   <merge dir="D:/CruiseControlTestEnv/Projekte/trunk/target/
> temp/testreports"/>
>  </log>
>     <publishers>
>     </publishers>
>   </project>
>   <dashboard />
> </cruisecontrol>
>
>
>
> Here is the stack trace:
> [cc]Sep-07 16:20:13 ScriptRunner  -      [echo] nightly pICS build finished
> at
> 2009-09-07 16:20:13.887 for SVN revision
> 60684 and can be found in E:/pICS Builds/1.7.0.60684.
> [cc]Sep-07 16:20:13 ScriptRunner  -
> [cc]Sep-07 16:20:13 ScriptRunner  - BUILD SUCCESSFUL
> [cc]Sep-07 16:20:13 ScriptRunner  - Total time: 35 minutes 46 seconds
> 2009-09-07 16:20:23.453::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$NotificationDelivererThread.
> start(AbstractRemoteNotificat
> ionClientHandler.java:507)
>         at
> mx4j.remote.AbstractRemoteNotificationClientHandler$NotificationDelivererThread.
> access$300(AbstractRemoteNoti
> ficationClientHandler.java:444)
>         at
> mx4j.remote.AbstractRemoteNotificationClientHandler.start(AbstractRemoteNotifica
> tionClientHandler.java:81)
>         at
> javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:132)
>         at
> javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:38)
>         at
> net.sourceforge.cruisecontrol.dashboard.service.JMXConnectorFactory.connect(JMXC
> onnectorFactory.java:10)
>         at
> net.sourceforge.cruisecontrol.dashboard.repository.BuildInformationRepositoryInM
> emoImpl.getJmxConnection(Buil
> dInformationRepositoryInMemoImpl.java:44)
>         at
> net.sourceforge.cruisecontrol.dashboard.service.BuildLoopQueryService.getJMXConn
> ection(BuildLoopQueryService.
> java:152)
>         at
> net.sourceforge.cruisecontrol.dashboard.service.BuildLoopQueryService.getBuildOu
> tput(BuildLoopQueryService.ja
> va:135)
>         at
> net.sourceforge.cruisecontrol.dashboard.web.GetProjectBuildOutputController.hand
> leRequest(GetProjectBuildOutp
> utController.java:62)
>         at
> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(Simple
> ControllerHandlerAdapter.java
> :48)
>         at
> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.j
> ava:858)
>         at
> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.ja
> va:792)
>         at
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet
> .java:476)
>         at
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.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:362)
>         at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>         at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
>         at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>         at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollecti
> on.java:206)
>         at
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>         at org.mortbay.jetty.Server.handle(Server.java:324)
>         at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>         at
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.ja
> va: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.java:395)
>         at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
> #
> # An unexpected error has been detected by Java Runtime Environment:
> #
> # java.lang.OutOfMemoryError: requested 1024000 bytes for GrET in
> C:\BUILD_AREA\jdk6_03\hotspot\src\share\vm\utilities\g
> rowableArray.cpp. Out of swap space?
> #
> #  Internal Error (414C4C4F434154494F4E0E494E4C494E450E4850500017),
> pid=9592,
> tid=4692
> #
> # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-b05 mixed mode)
> # An error report file with more information is saved as hs_err_pid9592.log
> #
> # If you would like to submit a bug report, please visit:
> #   http://java.sun.com/webapps/bugreport/crash.jsp
> #
> D:\CruiseControlTestEnv\cruisecontrol-bin-2.8.2>
>
> Has anyone an idea ? I do not know what to try else.
>
> Regards
> Oliver
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Cruisecontrol-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
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.