I set the JAVA_OPTS and now arguments are set correctly but the problem is, Xmx and Xms values are passed two times, here is the list of JV arguments:
-Xms512M
-Xmx1536M
-Xss1M
-XX:ReservedCodeCacheSize=192m
-XX:+CMSClassUnloadingEnabled
-XX:MaxPermSize=512M
-Xms64m
-Xmx384m
-Xss512k
-Dfile.encoding=UTF-8
-Dplay.version=2.2.1
-Dplay.home=../../Frameworks/play-2.2.1/framework
-Dsbt.boot.properties=../../Frameworks/play-2.2.1/framework/sbt/sbt.boot.properties
When I monitor the heap, it looks like it is obeyed to Xmx384m. But where is the -Xmx1536M and -Xms512M default arguments are passed and is there a way I can remove them?