NashornJsInvokeService: defaults added for max_memory and max_cpu_time to improve deployment experience
This commit is contained in:
parent
f46f90f06b
commit
b6ce95b99d
@ -61,10 +61,10 @@ public class NashornJsInvokeService extends AbstractJsInvokeService {
|
|||||||
@Value("${js.local.monitor_thread_pool_size}")
|
@Value("${js.local.monitor_thread_pool_size}")
|
||||||
private int monitorThreadPoolSize;
|
private int monitorThreadPoolSize;
|
||||||
|
|
||||||
@Value("${js.local.max_cpu_time}")
|
@Value("${js.local.max_cpu_time:8000}") // 8 seconds
|
||||||
private long maxCpuTime;
|
private long maxCpuTime;
|
||||||
|
|
||||||
@Value("${js.local.max_memory}")
|
@Value("${js.local.max_memory:104857600}") // 100 MiB
|
||||||
private long maxMemory;
|
private long maxMemory;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user