change sanbodx process number

This commit is contained in:
Himit_ZH 2021-12-12 21:02:48 +08:00
parent 6455eecf9f
commit 544c386759
3 changed files with 4 additions and 4 deletions

View File

@ -73,8 +73,8 @@ public class JudgeRun {
// 使用线程池开启多线程测试每一测试输入数据
ExecutorService threadPool = new ThreadPoolExecutor(
cpuNum, // 核心线程数
cpuNum + 1, // 最大线程数最多几个线程并发
1,//当非核心线程无任务时几秒后结束该线程
cpuNum * 2, // 最大线程数最多几个线程并发
2,//当非核心线程无任务时几秒后结束该线程
TimeUnit.SECONDS,// 结束线程时间单位
new LinkedBlockingDeque<>(200), //阻塞队列限制等候线程数
Executors.defaultThreadFactory(),

View File

@ -68,7 +68,7 @@ public class SandboxRun {
public static final HashMap<String, Integer> RESULT_MAP_STATUS = new HashMap<>();
private static final int maxProcessNumber = 32;
private static final int maxProcessNumber = 128;
private static final int TIME_LIMIT_MS = 16000;

View File

@ -39,7 +39,7 @@ logging:
alibaba:
nacos: error
gargoylesoftware: off
root: info
root: error
config: classpath:logback-spring.xml
file:
path: /judge/log/judgeserver