Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

When the server is under heavy load, it may disconnect the connection, causing the build status to become "canceled" #4649

pureivan ·

quickbuild 15.0.8
Is it possible to add a timeout period instead of directly disconnecting and setting the status to "canceled"?

jvm 1 | 2025-07-11 17:54:28,466 ERROR Error connecting server.
jvm 1 | com.caucho.hessian.client.HessianRuntimeException: java.net.UnknownHostException: xx.xxoo.com
jvm 1 | at com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:285)
jvm 1 | at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:171)
jvm 1 | at com.sun.proxy.$Proxy18.connect(Unknown Source)
jvm 1 | at com.pmease.quickbuild.grid.AgentConnectivityTask.run(AgentConnectivityTask.java:62)
jvm 1 | at java.base/java.lang.Thread.run(Thread.java:834)
jvm 1 | Caused by: java.net.UnknownHostException: xx.xxoo.com
jvm 1 | at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:229)
jvm 1 | at java.base/java.net.Socket.connect(Socket.java:608)
jvm 1 | at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177)
jvm 1 | at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:510)
jvm 1 | at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:605)
jvm 1 | at java.base/sun.net.www.http.HttpClient. (HttpClient.java:278)
jvm 1 | at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:377)
jvm 1 | at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:398)
jvm 1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1268)
jvm 1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1202)
jvm 1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1096)
jvm 1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1030)
jvm 1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1403)
jvm 1 | at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1378)
jvm 1 | at com.caucho.hessian.client.HessianURLConnection.getOutputStream(HessianURLConnection.java:99)
jvm 1 | at com.caucho.hessian.client.HessianProxy.sendRequest(HessianProxy.java:283)
jvm 1 | ... 4 more

  • replies 6
  • views 99
  • stars 0
robinshen ADMIN ·

This does not seem like an overload issue. Please check your dns setting to make sure that the host is reachable:

java.net.UnknownHostException: xx.xxoo.com

pureivan ·

The network is fine. There's another identical agent connected to the same switch, and that one has never gone offline. However, this agent experiences very high CPU usage during msbuild. I suspect there might be a network glitch, but the observed symptom here is DNS resolution failure. Can the agent be configured to retry and timeout on DNS resolution failures before disconnecting, allowing some tolerance time?

robinshen ADMIN ·

Please use server ip address instead of dns name to see if the issue still exist

drdt ·

I have had a situation like this. Agents were getting overloaded and disconnecting from the network.

We eventually decided that the steps were creating a lot of log output, which is loaded in to the memory of the agent before being transmitted back to the server.

We were able to resolve by increasing the memory allocated to the agent (wrapper.java.maxmemory).

pureivan ·

Thanks. Currently, I've set wrapper.java.maxmemory to 8192.

pureivan ·

Okay, I'll try not using the domain name and write the IP address directly instead.