Skip to content

Commit

Permalink
fix: Update stack and heap size limits for Java
Browse files Browse the repository at this point in the history
  • Loading branch information
ranaldmiao committed Sep 19, 2020
1 parent 656bc97 commit fbf7124
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cms/grading/languages/java_jdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,15 @@ def get_evaluation_commands(
if JavaJDK.USE_JAR:
# executable_filename is a jar file, main is the name of
# the main java class
# Lowered to 2000MB, given problem limit of 2048MB
return [["/usr/bin/java", "-Deval=true", "-Xmx2000M", "-Xss1024M",
# IOI 2020 decision by ISC:
# - Stack: 960MB
# - Heap: 1024MB
return [["/usr/bin/java", "-Deval=true", "-Xmx1024M", "-Xss960M",
"-Xbatch", "-XX:+UseSerialGC", "-XX:-TieredCompilation",
"-XX:CICompilerCount=1", "-cp", executable_filename, main] + args]
else:
unzip_command = ["/usr/bin/unzip", executable_filename]
command = ["/usr/bin/java", "-Deval=true", "-Xmx2000M", "-Xss1024M",
command = ["/usr/bin/java", "-Deval=true", "-Xmx1024M", "-Xss960M",
"-Xbatch", "-XX:+UseSerialGC", "-XX:-TieredCompilation",
"-XX:CICompilerCount=1", main] + args
return [unzip_command, command]

0 comments on commit fbf7124

Please sign in to comment.