본문 바로가기
MiddleWare(미들웨어)/JEUS

[JEUS6] JVM Option 설정하기

by wonkidoki 2023. 8. 30.
반응형
 
- JEUS6은 JEUS7,8 처럼 Webadmin을 제공하나 다소 불편한 감이 있다. 오히려 JEUS6은 Config 파일을 수정하는 것이 더 편할 수 있다.

- JEUS6의 Config 파일은 JEUSMain.xml 과 WEBMain.xml 이 있다. (경로 JEUS6/config/'hostname')

- JEUSMain.xml 에서 JVM Config를 수정할 수 있다.(command-option 테그 안에 넣으면 된다.)

JEUSMain.xml 파일 수정

<engine-container>

<name>erp</name>

<id>1</id>

<!-- HotSpot JVM -->

<command-option>

-Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m

-XX:+DisableExplicitGC -verbose:gc

-Xloggc:/home/tmax/jeus6/logs/gclog/erp_gc.log

-XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC

-XX:+HeapDumpOnOutOfMemoryError

-XX:HeapDumpPath=/home/tmax/jeus6/logs/dump/

</command-option>

<engine-command>

<type>servlet</type>

<name>erp</name>

</engine-command>

<sequential-start>true</sequential-start>

<system-logging>

<level>INFO</level>

<handler>

<file-handler>

<name>fileHandler</name>

<valid-day>1</valid-day>

</file-handler>

</handler>

</system-logging>

</engine-container>

해당 Container의 JVM 옵션을 수정했다면, 해당 Container만 재 기동 하면 된다.

전체를 Down > Boot 할 필요가 없다.