Jenkins running at very high CPU usage
As it turned out, my issue was that several jobs had thousands of old builds. This was fine in Jenkins 1.6 but it's a problem in 2.5 (I guess maybe Jenkins tries to load all the builds into memory when you view the job overview page). To fix it, I just deleted most of the old builds from the problem jobs using this strategy and then reloaded jenkins. Worked like a charm!
I also set the "discard old builds" plugin to keep only the 50 most recent builds, to prevent this from happening again.
High CPU usage of jenkins without running a job
I've solve the problem. The problem was my antivirus program. I uninstalled it and the usage is the whole day 0-1%.
Jenkins High CPU Usage Khugepageds
So, we just had this happen to us. As per the other answers, and some digging of our own, we were able to kill to process (and keep it killed) by running the following command...
rm -rf /tmp/*; crontab -r -u jenkins; kill -9 PID_OF_khugepageds; crontab -r -u jenkins; rm -rf /tmp/*; reboot -h now;
Make sure to replace PID_OF_khugepageds
with the PID on your machine. It will also clear the crontab entry. Run this all as one command so that the process won't resurrect itself. The machine will reboot per the last command.
NOTE: While the command above should kill the process, you will probably want to roll/regenerate your SSH keys (on the Jenkins machine, BitBucket/GitHub etc., and any other machines that Jenkins had access to) and perhaps even spin up a new Jenkins instance (if you have that option).
Related Topics
Check Library Version Netcdf Linux
Set Environment Variable in Gdb from Output of Command
Cache Coloring on Slab Memory Management in Linux Kernel
Raising Hard Limit on Rlimit_Nofile System-Wide on Linux
Installing Ffmpeg on Amazon Linux - Cpp, Gcc & Libstdc++ Dependancies
Differences Between Sponge and Tee
The Difference Between Wait_Queue_Head and Wait_Queue in Linux Kernel
Setting Up Sonarqube on Aws Using Ec2
Grep and Sed with Spaces in Filenames
Linux Kernel Changing Default CPU Scheduler
Delete Line from Text File with Line Numbers from Another File
Would It Be Possible to Read Out Physical Keyboard Strokes in Node.Js
Write and Read from Ttyusb0, Can't Get Response
Tasklist.Exe Equivalent in Linux