teamcity.agent.log includes lines "Flushing output buffer because it's size 1578844 exceeds threshold 16384"

Any idea for fix for following?

teamcity.agent.log includes lines like:

INFO - er.agent.runner.TextLineFilter - Flushing output buffer because it's size 1578844 exceeds threshold 16384

This ends up causing the following and the build gets Cancelled:

[2024-02-15 09:05:50,760]   WARN - r.agent.impl.AgentLogProxyImpl - Fatal error occurred inside agent process, will kill current build and restart agent 
java.lang.OutOfMemoryError: Java heap space 

This is happening consistently on multiple Linux build agents.

0
1 comment
Hi,

It appears to be connected to the issue described at https://youtrack.jetbrains.com/issue/TW-1693/Cache-build-log-on-disk-to-reduce-agent-memory-usage.

To address this, consider implementing the following workaround to enhance memory availability for the agent: https://www.jetbrains.com/help/teamcity/2023.11/configuring-build-agent-startup-properties.html#Build+Agent+is+Run+via+Script.

Alternatively, adjust the configuration by setting the teamcity.agent.inMemoryMessages.threshold.bytes parameter in the buildAgent.properties file. This value is specified in bytes, and the file is located at /conf/buildAgent.properties: https://www.jetbrains.com/help/teamcity/configure-agent-installation.html.
0

Please sign in to leave a comment.