![[IBM i]](../images/iseries.gif)
enbprfwas 명령
enbprfwas 명령을 사용하면 Application Server가 프로파일 아래에서 실행되고 선택적으로 그룹 프로파일을 QEJBSVR로 변경할 수 있는 프로파일을 만들 수 있습니다.
iSeries 네비게이터를 사용하여 동일한 작업을 수행할 수도 있습니다. 이 스크립트를 실행하려면 사용자 프로파일에 *ALLOBJ 권한이 있어야 합니다.
구문
명령 구문은 다음과
같습니다.
enbprfwas -profile <user profile> [-chggrpprf]
매개변수
다음 옵션은 enbprfwas 명령에 사용할 수 있습니다.
- -profile
- 이것은 필수 매개변수입니다. <user profile> 값은 애플리케이션 서버를 실행 가능할 수 있게 할 프로파일의 이름을 지정합니다.
- -chggrpprf
- 이는 선택적 매개변수입니다. 이 매개변수를 지정하는 경우, 명령은 <user profile>의 그룹 프로파일을 QEJBSVR로 변경합니다.

- profile_root/properties/.instance.properties 파일을 조사하십시오.
- instance.use.j9 특성 값이 true로 설정된 경우 Application Server에서 IBM Technology for Java JVM을 사용하는 것입니다.
-Xshareclasses JVM 옵션을 사용하도록 Application Server를 최적화하려면
다음 방법 중 하나를 선택하십시오.
bprac- 관리 콘솔 사용:
- 관리 콘솔에서 를 클릭하십시오.
- 서버 인프라 섹션에서 를 클릭하십시오.
- JVM(Java Virtual Machine)을 선택하십시오.
- 일반 JVM 인수 필드에서, 문자열 맨 끝에 공백을 추가한 후 다음 문자열을
추가하십시오.
여기서 profile_name은 profile 매개변수에 대해 설명한 run-as 사용자 프로파일입니다. 확인을 클릭하십시오.-Xshareclasses:name=webspherev80_profile_name,groupAccess,nonFatal
- 확인을 클릭하십시오.
- 콘솔 작업 표시줄에서 저장을 클릭하십시오.
- Application Server를 다시 시작하십시오.
- wsadmin 명령 사용:
- Qshell 환경을 시작하십시오.
- IBM i CL 명령행에서 STRQSH 명령을 실행한 후 다음 명령을 실행하십시오.
cd app_server_root/bin wsadmin -conntype NONE -profileName was_profile # where was_profile is the profile of the application server. set jvm [$AdminConfig getid /Server:server_name/JavaProcessDef:/JavaVirtualMachine:/] # where server_name, is the application server name. set curargs [$AdminConfig showAttribute $jvm genericJvmArguments] set newargs [concat $curargs "-Xshareclasses:name=webspherev80_profile_name,groupAccess,nonFatal"] # where profile_name is the run-as user profile. set attrs [subst {{genericJvmArguments $newargs}}] $AdminConfig modify $jvm $attrs $AdminConfig save exit
- Application Server를 다시 시작하십시오.