Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does putting Java source files into a JAR increase the JVM's RAM consummed?

Tags:

java

jvm

jar

If not, why not always include sources file into "open source" JAR distributions ? (thanks in advance if you have some official weblinks that explain your answers)

like image 419
thecoder Avatar asked Dec 18 '22 00:12

thecoder


1 Answers

No, it does not increase the memory consumption. And it's not done because it would increase the size of the JARs without providing any advantage to most users. And no, the JAR size is not irrelevant. It might not matter to you whether the download is 5 or 7 MB, but it matters quite a lot to whoever has to pay for the bandwith of 100,000 people downloading it.

like image 52
Michael Borgwardt Avatar answered Dec 24 '22 02:12

Michael Borgwardt