java.lang.OutOfMemoryError: Java heap space

Guys, I encountered an Outofmemory.....

(there is a RemoteCallException: and right after that the outof memory exception is thrown.. could it be related ??

Any help is appreciated...

(If it helps, I got 500 internal error, so i had to restart teamcity..)

here is the stack from the log file (teamcity-sever.log)
I am also posting messages before and after the out of memory....

Thaks

raj

-05 04:23:58,511] INFO - jetbrains.buildServer.SERVER - Agent buildmachine2 has been unregistered. Id: 2
INFO - rverSide.impl.XmlRpcBasedAgent - buildAgent.getVersion returned non-string value: Target: http://10.101.101.115:9090
jetbrains.buildServer.xmlrpc.RemoteCallException: Call http://10.101.101.115:9090/RPC2 buildAgent.getVersion: java.lang.OutOfMemoryError: Java heap space
at jetbrains.buildServer.xmlrpc.AbstractXmlRpcTarget.call(AbstractXmlRpcTarget.java:24)
at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.getRemoteValue(XmlRpcBasedAgent.java:34)
at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.getVersion(XmlRpcBasedAgent.java:1)
at jetbrains.buildServer.serverSide.impl.BuildServerImpl.needUpgrade(BuildServerImpl.java:758)
at jetbrains.buildServer.serverSide.impl.BuildServerImpl.registerAgent(BuildServerImpl.java:508)
at jetbrains.buildServer.serverSide.impl.XmlRpcBasedServer.register(XmlRpcBasedServer.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at jetbrains.buildServer.xmlrpc.ExceptionCollectorWrapper.execute(ExceptionCollectorWrapper.java:38)
at org.apache.xmlrpc.XmlRpcWorker.invokeHandler(XmlRpcWorker.java:84)
at org.apache.xmlrpc.XmlRpcWorker.execute(XmlRpcWorker.java:146)
at jetbrains.buildServer.controllers.XmlRpcController$1$1.execute(XmlRpcController.java:4)
at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:139)
at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:114)
at jetbrains.buildServer.controllers.XmlRpcController.handleRequestInternal(XmlRpcController.java:4)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: Java heap space
WARN - rverSide.impl.XmlRpcBasedAgent - Problem pinging buildmachine1 at http://10.101.101.73:9090. Firewall problem? Or wrong IP of agent?
INFO - jetbrains.buildServer.SERVER - Agent buildmachine1 has been unregistered. Id: 1
INFO - rverSide.impl.XmlRpcBasedAgent - buildAgent.getPluginsSignature returned non-string value: Target: http://10.101.101.115:9090
jetbrains.buildServer.xmlrpc.RemoteCallException: Call http://10.101.101.115:9090/RPC2 buildAgent.getPluginsSignature: org.apache.commons.httpclient.ProtocolException: The server 10.101.101.115 failed to respond with a valid HTTP response
at jetbrains.buildServer.xmlrpc.AbstractXmlRpcTarget.call(AbstractXmlRpcTarget.java:24)
at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.getRemoteValue(XmlRpcBasedAgent.java:34)
at jetbrains.buildServer.serverSide.impl.XmlRpcBasedAgent.getPluginsSignature(XmlRpcBasedAgent.java:50)
at jetbrains.buildServer.serverSide.impl.BuildServerImpl.needUpgrade(BuildServerImpl.java:718)
at jetbrains.buildServer.serverSide.impl.BuildServerImpl.registerAgent(BuildServerImpl.java:508)
at jetbrains.buildServer.serverSide.impl.XmlRpcBasedServer.register(XmlRpcBasedServer.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at jetbrains.buildServer.xmlrpc.ExceptionCollectorWrapper.execute(ExceptionCollectorWrapper.java:38)
at org.apache.xmlrpc.XmlRpcWorker.invokeHandler(XmlRpcWorker.java:84)
at org.apache.xmlrpc.XmlRpcWorker.execute(XmlRpcWorker.java:146)
at jetbrains.buildServer.controllers.XmlRpcController$1$1.execute(XmlRpcController.java:4)
at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:139)
at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:114)
at jetbrains.buildServer.controllers.XmlRpcController.handleRequestInternal(XmlRpcController.java:4)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.httpclient.ProtocolException: The server 10.101.101.115 failed to respond with a valid HTTP response
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1846)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at jetbrains.buildServer.xmlrpc.impl.MyXmlRpcTransport.sendXmlRpc(MyXmlRpcTransport.java:16)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
at org.apache.xmlrpc.TCXmlRpcClient$1.execute(TCXmlRpcClient.java)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
at jetbrains.buildServer.xmlrpc.impl.CommonsXmlRpcTargetImpl$1.execute(CommonsXmlRpcTargetImpl.java:7)
at jetbrains.buildServer.xmlrpc.AbstractXmlRpcTarget.call(AbstractXmlRpcTarget.java:40)
... 36 more
INFO - jetbrains.buildServer.SERVER - Agent buildmachine2 has been registered with id 2 currently runnung build -1
WARN - rverSide.impl.XmlRpcBasedAgent - Problem pinging buildmachine2 at http://10.101.101.115:9090. Firewall problem? Or wrong IP of agent?

1 comment

rajnish wrote:

Guys, I encountered an Outofmemory.....

(there is a RemoteCallException: and right after that the outof memory exception is thrown.. could it be related ??

Any help is appreciated...

(If it helps, I got 500 internal error, so i had to restart teamcity..)

here is the stack from the log file (teamcity-sever.log)
I am also posting messages before and after the out of memory....


What memory settings do you use for server JVM (-Xmx?,-XX:MaxPermSize=?)
How many agents do you have?
How many source roots, which source control systems do you use?

--
Alexey Gopachenko
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.