Skip to content

Commit 5f8a91b

Browse files
committed
set memory limit on jskills
1 parent 43a2471 commit 5f8a91b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manager/manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def update_trueskill(game_id):
8484
classpath = "{0}/JSkills_0.9.0.jar:{0}".format(
8585
os.path.join(os.path.dirname(os.path.realpath(__file__)),
8686
"jskills"))
87-
tsupdater = Popen(["java", "-cp", classpath, "TSUpdate"],
87+
tsupdater = Popen(["java", "-Xmx100m", "-cp", classpath, "TSUpdate"],
8888
stdin=PIPE, stdout=PIPE)
8989
for player in players:
9090
tsupdater.stdin.write("P %s %d %f %f\n" % (player.name, player.rank,

0 commit comments

Comments
 (0)