diff --git a/biopet.wdl b/biopet.wdl
index 2868f0c2692b13dba51e1aad2dd64cb4470b9db0..cb3938dc36b260c0c8fd8641aac1c637a489b967 100644
--- a/biopet.wdl
+++ b/biopet.wdl
@@ -62,7 +62,7 @@ task SampleConfig {
         set -e -o pipefail
         ${preCommand}
         mkdir -p . ${"$(dirname " + jsonOutputPath + ")"} ${"$(dirname " + tsvOutputPath + ")"}
-        java -Xmx2G -jar ${tool_jar} \
+        java -Xmx4G -jar ${tool_jar} \
         -i ${sep="-i " inputFiles} \
         ${"--sample " + sample} \
         ${"--library " + library} \
@@ -77,6 +77,10 @@ task SampleConfig {
         File? tsvOutput = tsvOutputPath
         Object values = if (defined(tsvOutput) && size(tsvOutput) > 0) then read_map(tsvOutput) else { "": "" }
     }
+
+    runtime {
+        memory: 6
+    }
 }
 
 task BaseCounter {