Fork me on GitHub
#leiningen
<
2017-09-05
>
lellis17:09:35

Hi all!!! I have one question about profiles. When i set :jvm-opts ["-Xmx3g" "-Xms1g"] in my profile and start my app using java -Xmx=7g ... the profiles overwrite start arguments or the start arguments override profiles?

noisesmith18:09:05

if you run the java command, nothing in project.clj has any effect

noisesmith18:09:20

other than the deps that were calculated to build your jar

noisesmith18:09:54

if you didn’t set the Xmx as a java arg, you would get your OS default

noisesmith18:09:57

this also means you can’t write your code to rely on profiles of course - there’s really no such thing when running from a jar

lellis18:09:04

make sense! ty