Summary
[unexpected exception halting build]
Example:
ERROR EC1049: Unable to start new thread: Cannot allocate memory
Description
An unexpected exception occurred. The result of receiving this error message is a failed build.
Reasons
There are many possible causes for this error. Refer to the specific OS message to help determine the cause of the error.
Fixes
Refer to the specific OS message to help determine the cause of the error.
Using this example: ERROR EC1049: Unable to start new thread: Cannot allocate memory, the fix is to reduce the number of maximum agents used for the build. This was done by reconfiguring the build class’s maximum number of agents per build or by adding --emake-maxagents=[`max.number]` to your command line.
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.