jenkinsci / jenkinsci/support-core-plugin

Newly added $JENKINS_HOME/logs/support/agent-launches folder using up massive disk space

Open
#962 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
19
Forks
77
Avg merge
17h 53m
Merged PRs (30d)
3

Description

### Jenkins and plugins versions report

Environment


```Jenkins OSS 2.555.1 running support-core plugin version 1801.v76b_389d2deec
```

With the new version of the plugin 1801.v76b_389d2deec it seems like my Jenkins home folder is growing 5-10 GB per day due to the "all.log" file being large.

Obviously this instance is pretty heavily used and uses EC2 agents which means a lot of creating and removing agents and there are a few machines we have which are disconnected (I know the reason why and it is from the agent side but the machine is not under my control). This means that you get 200-ish line stacktraces constantly for the connection of each machine and and 100-ish line stacktraces of the disconnected machines causing the log file to grow excessively.

Log file is not the issue, I appreciate what you do here and I am glad to have support-core, I just want a way to either zip that file more often, turn off that accumulation of logs, or to have it rotate off much more often. Ideally it would be within the plugin config itself but the only option I am seeing is MAX_ROTATE_LOGS which is a parameter I would need to set instead of it being in the plugin. I also am not certain if "rotate" means for it to get zipped or it to get cleaned up or what.

For now I disabled but if I find some time I will try to help out here

### What Operating System are you using (both controller, and any agents involved in the problem)?

Ubuntu running Jenkins but also not super relevant I don't think

### Reproduction steps

1. Start Jenkins with support-core installed
2. Have unhealthy agents
3. watch the log file grow

### Expected Results

It to rotate more often

### Actual Results

It doesnt rotate at all from what I can see regardless of size and seems to be time based but that grows too quickly

### Anything else?

_No response_

### Are you interested in contributing a fix?

I will help where I can! Any quick suggestions or clarification you all have would be great

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.