Description: cap memory usage in autopkgtest context. The default calculation method to reserve memory for the java runtime environment causes excessive memory usage on ci.debian.net machines. Author: Étienne Mollier Bug-Debian: https://bugs.debian.org/1120170 Forwarded: not-needed Last-Update: 2025-11-06 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- bbmap.orig/calcmem.sh +++ bbmap/calcmem.sh @@ -214,6 +214,10 @@ && [ "$RAM" -gt "2000" ] then RAM="2000" fi + # cap to 4GiB on shared autopkgtest resources (ci.debian.net). + if [ -n "$AUTOPKGTEST_TMP" ] && [ "$RAM" -gt "4000" ] + then RAM="4000" + fi #echo $RAM fi #local z="-Xmx${RAM}m"