# HG changeset patch # User Pascal Bellard # Date 1281886162 -7200 # Node ID 9b0fe4a58cfa6533de4359b2c88ed4204c14ea74 # Parent 3ee592ac32af72750a305a5a3bac0a9ecfb2d9cb icedtea6-jdk: be less memory hungry (again) diff -r 3ee592ac32af -r 9b0fe4a58cfa icedtea6-jdk/receipt --- a/icedtea6-jdk/receipt Sun Aug 15 17:15:37 2010 +0200 +++ b/icedtea6-jdk/receipt Sun Aug 15 17:29:22 2010 +0200 @@ -22,6 +22,9 @@ # Rules to configure and make the package. compile_rules() { + # Limit memory usage + ulimit -v $(awk '/MemTotal/ { print int(($2*80)/100) }' < /proc/meminfo) + local JVM_PREFIX JVM_PREFIX="/usr/lib/jvm/java-icedtea"