JDK 1.8.0_51 everywhere
Jenkins version 2.7.2
Jenkins Master - RHEL 7.2 (3.10.0-327.10.1.el7.x86_64)
1) 15 Windows 7 (64 bit) slaves
2) 2 Linux slaves - RHEL 7.2 (3.10.0-327.10.1.el7.x86_64)
3) 2 Linux slaves - RHEL 6.5 (2.6.32-431.11.2.el6.x86_64)
4) 1 windows slave with Server 2008
Every week we have to restart jenkins due to OOM. Continuously Metaspace increases and the number of classes loaded are also increasing.
Earlier we had this problem with both master and windows slaves. But we figured out that disabling the JNLP3 protocol on windows slave and not running groovy script on slaves solved the problem. But. it is still a problem on master and restarting a master is not anyone is expecting.
We recently upgraded our jenkins environment to 2.7.2 and took all the latest plugins.
We have moved all our flow jobs to pipeline except one.