Hello,
I have a Jenkins instance running ~1000 jobs on ~30 agents. Recently I have been having problems with high memory usage and slow loading times, I took a heap dump this morning and when I loaded it into a memory analyser it showed a single object taking up 5GB of space - the total used is only 6GB. The culprit is a ConcurrentHashMap in RemoteInvocationHandler.Unexporter. Is this expected behaviour for that class, is it a bug, or am I doing something inadvisable? Is this the likely cause of my loading time problems, or do I need to keep investigating?
The server is running version 2.7.1 on Debian 3.2.81-1 with java version 1.7.0_101, 64-bit. Agents are primarily Windows 8 and 10 with a couple on 7. I am running with the following java options:
-Dgroovy.use.classvalue=true
-Djava.awt.headless=true
-XX:MaxPermSize=512m
-Xmx8192m
-XX:+HeapDumpOnOutOfMemoryError
-Dhudson.model.DirectoryBrowserSupport.CSP=sandbox allow-scripts; default-src 'self'; img-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline';
-Dcom.sun.management.jmxremote.port=
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-Dcom.sun.management.jmxremote.password.file=