limit java program with specify amount of memory
<p>How do I set java program from consumption large amount of memory? Does constantly System.out.println increase in memory consumption?</p>

<p>I have profiling using VisualVM, I don't quite understanding on how to fix some part of the code.</p>
