Skip to content

Commit 07e5465

Browse files
committed
add JVM params : -Xss20M
1 parent fc3b769 commit 07e5465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discrete-optimization/knapsack/solverJava.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def solve_it(input_data):
1717

1818
os.system("javac .\Solver.java") # this line is addded by taotao
1919

20-
process = Popen(['java', 'Solver', '-file=' + tmp_file_name], stdout=PIPE)
20+
process = Popen(['java','-Xss20M','Solver', '-file=' + tmp_file_name], stdout=PIPE)
2121
(stdout, stderr) = process.communicate()
2222
# removes the temporay file
2323
os.remove(tmp_file_name)

0 commit comments

Comments
 (0)