-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins version 2.176.2
SSH Pipeline Steps plugin 2.0.0
Memory is accumulating over time, eventually making some jobs fail with error
java.lang.OutOfMemoryError: Java heap space
I suspect it is connected to SSH pipeline steps plugin.
Each jobs use this plugin several times and sometimes receives back very long logs.
I attach a graphic of the memory accumulating over the months, while the number and quality of builds remained stable and a heap dump.
I am not an expert of Java so plese guide me if you need something else.
Thanks
I experience the exact same thing.
I call SSH steps couple hundred times per pipeline execution and experienced recurrent agent crashes because of java.lang.OutOfMemoryError: Java heap space caused by memory leak seemingly caused by SSHStep Logger.
The only way I could bypass it was by completely isolating these steps on a dedicated node that I kill when idle (3-5 minutes) and restart when needed to "clear" the memory.
Would appreciate a proper fix.