I have a java project running jMonkey Engine. On my normal laptop (not the greatest laptop there is) my project runs fine. But on my high-end gaming pc (GeForce GTX 970, Intel i5-6600K @3.50 GHz, 16 GB RAM) the program lags. Like every 2 seconds my engine just freezes for a couple ms which causes huge lags. I am using this java (recently updated it to see if that would fix it)
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)