I have a java rest api and it uses 10% to 5% cpu when I run it with the following command:
java -jar myrestapi.jar
when I use nohup command as shown below the cpu usage increases to 90% even though no requests are being sent.
nohup java -jar myrestapi.jar &
I'm looking for suggestions on where to look to identify the problem. This is done on a Linux machine with java 8 on it.