CPU usage too high

I ran into this issue, which I think is the same as: Java Play 2.7 processes stuck at 100% CPU on Linux server

I was able to fix it by adding this to the Java executable command line parameters:
-XX:ReservedCodeCacheSize=384m -XX:+UseCodeCacheFlushing