wok-next rev 6031

icedtea6-jdk: be less memory hungry (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 15 17:29:22 2010 +0200 (2010-08-15)
parents 3ee592ac32af
children 50425ff64b1d
files icedtea6-jdk/receipt
line diff
     1.1 --- a/icedtea6-jdk/receipt	Sun Aug 15 17:15:37 2010 +0200
     1.2 +++ b/icedtea6-jdk/receipt	Sun Aug 15 17:29:22 2010 +0200
     1.3 @@ -22,6 +22,9 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 +	# Limit memory usage
     1.8 +	ulimit -v $(awk '/MemTotal/ { print int(($2*80)/100) }' < /proc/meminfo)
     1.9 +
    1.10  	local JVM_PREFIX
    1.11  	JVM_PREFIX="/usr/lib/jvm/java-icedtea"
    1.12