2 thoughts on “Benchmarks: memory use can be as important as runtime for some applications

  1. Rich Hickey

    I think one needs to distinguish between the amount of memory a programs requires, vs the amount of memory a program uses because it is allowed to. These benchmarks don’t do that.

    When running with the Java defaults, any program that uses a lot of dynamic memory over time (even short lived ephemeral objects) will seem to ‘use’ all the memory made available to it, even if its max working set is substantially smaller. This is simply good GC policy (you said I had X to work with, so this is the best collection schedule). The same programs could potentially run in far less memory if given a smaller -Xmx limit, and a larger program could run in the same memory.

    Reply

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>