[로보코드] - Xmx256M
batch 파일과 sh 파일에 들어 있던 옵션 - Xmx256M 이 뭔지 궁금했었다.
아무래도 메모리를 늘려주는 자바옵션으로 보인다.

#2
Version 1.2.6A 버전에서는 batch 파일에는
java -Xmx512M -Dsun.io.useCanonCaches=false -jar robocode.jar
라고 나옵니다. sh 파일에도 유사한 형태입니다.

versions.txt 에 이에대한 설명이 있습니다.

---------------------------------------------
o Added the "-Xmx512M" option to the batch files extending the max. memory heap size to 512 MB
o Added the "-Dsun.io.useCanonCaches=false" which fixes some SecurityException issues on robots
that read from files, and also fixed the installing and compiling problem under Mac 10.3.9
-----------------------------------------------
 알아서 해석하라고 하면 제가 나쁜 놈이겠죠. -Xmx512M 는 메모리 힙 사이즈를 512MB로 늘리는 것이고 -D 라는 옵션은 시스템의 property 값을 설정하는 옵셥입니다.  시스템 속성 값 중 하나인 sun.io.useCanonCaches를 false 로 설정하겠다는 것인데 이것은 로보코드에서 맥에서의 문제 때문에 나오는데 이 말은 뭔지 모르겠군요...
  -jar 라는 옵션은 jar 라는 압축형식으로 압축된 자바 프로그램을 실행시키는 옵셥입니다. 

by 한밀 | 2004/05/28 23:36 | 프로젝트
<< 이전 다음 >>