mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-01 10:02:01 +00:00
javac编译也需要指定内存内存分配参数,否则在部分内存较大的机器上,jvm趋向于分配大内存而实际被限制只能分配1G而出现错误。感谢@若木指出这个问题。
This commit is contained in:
parent
c61dea63af
commit
53b132a211
@ -30,7 +30,8 @@ languages = {
|
||||
"code": 3,
|
||||
"compile_max_cpu_time": 3000,
|
||||
"compile_max_memory": 1024 * 1024 * 1024,
|
||||
"compile_command": "/usr/bin/javac {src_path} -d {exe_path} -encoding UTF8",
|
||||
"compile_command": "/usr/bin/javac {src_path} -d {exe_path} -J-Xss1m -J-XX:MaxPermSize=16M "
|
||||
"-J-XX:PermSize=8M -J-Xms16m -J-Xmx1024m -encoding UTF8",
|
||||
"execute_command": "/usr/bin/java -cp {exe_path} -Xss1M -XX:MaxPermSize=16M "
|
||||
"-XX:PermSize=8M -Xms16M -Xmx{max_memory} -Djava.security.manager "
|
||||
"-Djava.security.policy==policy -Djava.awt.headless=true Main",
|
||||
|
Loading…
Reference in New Issue
Block a user