Optimize memory usage

Issue #396 resolved
Petr Nejedly repo owner created an issue

try to introduce more aggressive heap shrinking. Should test with a large image and look at the heap usage in a tool to make sure there are no memory leaks.

http://www.petefreitag.com/articles/gctuning/

Console should work with:

-XX:+UseSerialGC -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -Xms5M

Also look at this if it makes any difference: * http://code.google.com/p/java-image-scaling/ * http://www.gotoquiz.com/web-coding/programming/java-programming/resize-images-in-java-preserving-image-quality/ http://marvinproject.sourceforge.net/en/index.html

Comments (9)

  1. Petr Nejedly reporter

    all java libraries use BuferedImage, causing huge memory consumption; increased Xmx to 512M instead

  2. Log in to comment