propertyManager 스크립트를 list, get 또는
set 명령과 함께 실행하여 서버 특성의 값을 검색하고 특성 값을 수정하거나 설정합니다.
GlobalPropertiesMXBean API를 사용하여 서버 특성을 설정하거나 가져올 수도 있습니다.
이 태스크 정보
propertyManager set 명령은 서버에 특성을 추가하여
서버의 동작 및 특성을 수정합니다. 이 특성은 서버의 모든 솔루션에서 적용됩니다.
프로그래밍 방식으로 서버 특성을 설정하거나 수정하려면,
GlobalPropertiesMXBean API에서
메소드를 호출하여 GlobalProperties JMX(Java™ Management Extensions) 관리 Bean(MBean)을 사용하십시오.
Liberty 서버 프로파일은 서버 동작의 제어에 도움을 주는 MBean 및 대응되는 관리 인터페이스 API를 제공합니다.
프로시저
- propertyManager set 명령을 실행하여 서버 특성의 값을 설정하십시오. 예를 들어, Windows에서는 다음을 실행하십시오.
propertyManager set solutionAutoStart=true maxAgentTransactionRetries=2 --host=localhost --port=9080 --username=user1 --password=user1 --trustStoreLocation=C:\IBM\ODMInsights890\runtime\wlp\usr\servers\cisDev\resources\security\key.jks --trustStorePassword=truststore
- propertyManager
set 명령을 실행하여
장기간의 가비지 콜렉션 일시정지를 경고하도록 임계값을 설정하십시오.
장기간의 가비지 콜렉션 일시정지는 제한시간 초과의 위험성을 표시합니다. 이 예에서
시스템 모니터링은 5분 내에 3초를 초과하는 일시정지가 있는 여섯 개의 가비지 콜렉션을 캡처합니다.
propertyManager set warningGCLongPauseCountThreshold="6" warningGCLongPauseTimeThreshold="3000" warningGCLongPausePeriodThreshold="5m"
- 특정 서버 특성의 값을 나열하려면 propertyManager get 명령을 실행하십시오.
특성의 이름을 명령 매개변수로 제공하십시오. 예를 들어, Windows에서는 다음을 실행하십시오.
propertyManager get solutionAutoStart --host=localhost --port=9080 --username=user1 --password=user1 --trustStoreLocation=C:\IBM\ODMInsights890\runtime\wlp\usr\servers\cisDev\resources\security\key.jks --trustStorePassword=truststore
- 서버에 대해 설정된 모든 특성의 목록을 표시하려면 propertyManager list 명령을 실행하십시오. 예를 들어, Windows에서는 다음을 실행하십시오.
propertyManager list --host=localhost --port=9080 --username=user1 --password=user1 --trustStoreLocation=C:\IBM\ODMInsights890\runtime\wlp\usr\servers\cisDev\resources\security\key.jks --trustStorePassword=truststore
- 특성의 값을 프로그래밍 방식으로 설정하려면 GlobalPropertiesMXBean API 및 setProperty 클래스를 사용하십시오. 예:
serverConfig.setProperty("solutionAutoStart", "true");