第3å wsadminã³ãã³ãã§æ¥½ã è¨å®ï¼æ å ±æ¡å WebSphere Application Serverããã®1
Tweet
第3åã¯ãã³ãã³ãã©ã¤ã³ã§ã®WebSphereã®ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã®è¨å®ãæ å ±æ¡åããæ¹æ³ã«ã¤ãã¦è§¦ãã¦ããããã¨æãã¾ãã
WASã®ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã®è¨å®ã¨æ å ±æ¡åã«ã¤ãã¦ã§ãããä¾ã¨ãã¦ãJVMã®è¨å®ã¨æ å ±æ¡åãã³ãã³ãã§å®æ½ãã¦ã¿ããã¨æãã¾ãã
以ä¸ã®ã³ãã³ãã§ãæ§æè¦ç´ ãåºåããããããJVMã®æ§ææ å ±ãåå¾ãã¾ãã
print AdminConfig.types()
以ä¸ã®ããã«é常ã«ããããã®æ§æè¦ç´ ãåºåããã¾ãã
wsadmin>print AdminConfig.types()
AccessPointGroup
Action
ActivationSpec
ï½ãä¸ç¥ãï½
JavaPersistenceAPIService
JavaProcessDef
JavaVirtualMachine
JavaVirtualMachinePreset
JobClass
ï½ãä¸ç¥ãï½
com.ibm.etools.webservice.wssecurity.Generator
com.ibm.etools.webservice.wssecurity.Generatorbinding
com.ibm.etools.webservice.wssecurity.WSSecurity
wsadmin>
JVMã®æ
å ±ã¯ããJavaVirtualMachineãã§å®ç¾©ããã¦ãã¾ããååã¾ã§ã«æ§ç¯ããã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ãappserver01ãã®è¨å®æ
å ±ã確èªãã¦ã¿ã¾ãã
以ä¸ã®ã³ãã³ããå®è¡ãæ
å ±ãåå¾ãããã¨ãã§ãã¾ãã
nodename="testNode01"
servername="appserver01"
server=AdminConfig.getid('/Node:'+nodename+'/Server:'+servername+'/')
javavirtualmachine=AdminConfig.list("JavaVirtualMachine", server)
print AdminConfig.show(javavirtualmachine)
wsadmin>nodename="testNode01"
wsadmin>servername="appserver01"
wsadmin>server=AdminConfig.getid('/Node:'+nodename+'/Server:'+servername+'/')
wsadmin>javavirtualmachine=AdminConfig.list("JavaVirtualMachine", server)
wsadmin>print AdminConfig.show(javavirtualmachine)
[bootClasspath []]
[classpath []]
[debugArgs -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777]
[debugMode false]
[disableJIT false]
[genericJvmArguments []]
[hprofArguments []]
[initialHeapSize 0]
[internalClassAccessMode ALLOW]
[maximumHeapSize 0]
[runHProf false]
[systemProperties [com.ibm.security.jgss.debug(cells/testCell01/nodes/testNode01/servers/appserver01|server.xml#Property_xxxxxxxx) com.ibm.security.krb5.Krb5Debug(cells/testCell01/nodes/testNode01/servers/appserver01|server.xml#Property_xxxxxxxx)]]
[verboseModeClass false]
[verboseModeGarbageCollection false]
[verboseModeJNI false]
wsadmin>
ãã®æç¹ã§ã¯ããappserver01ãã¸ã®è¨å®ã¯ç¹ã«ããã¦ããªãããã以ä¸ã®ããã«å¤ãç½®ãæãã¦ãè¨å®ãã¦ã¿ã¾ãã
- ãã¡ã¢ãªã®åæå¤ã → initialheapsize
- ãã¡ã¢ãªã®æ大å¤ã → maximumheapsize
- ãåé·ã¬ã¼ããã¸ã»ã³ã¬ã¯ã·ã§ã³ã → verbosemodegarbagecollection
è¨å®ã¨ãã¦ã¯ãã¡ã¢ãªã®åæå¤ã¨æ大å¤ã1024MBãåé·ã¬ã¼ããã¸ã»ã³ã¬ã¯ã·ã§ã³ã®è¨å®ãONã«ãã¾ãã
nodeName="testNode01"
servername="appserver01"
server=AdminConfig.getid('/Node:'+nodename+'/Server:'+servername+'/')
javavirtualmachine=AdminConfig.list("JavaVirtualMachine", server)
verbosemodegarbagecollection="true"
initialheapsize=str("1024")
maximumheapsize=str("1024")
AdminConfig.modify(javavirtualmachine, "[[initialHeapSize "+initialheapsize+"] [maximumHeapSize "+maximumheapsize+"] [verboseModeGarbageCollection "+verbosemodegarbagecollection+"]]")
AdminConfig.save()
print AdminConfig.show(javavirtualmachine)
wsadmin>nodename="testNode01"
wsadmin>servername="appserver01"
wsadmin>server=AdminConfig.getid('/Node:'+nodename+'/Server:'+servername+'/')
wsadmin>javavirtualmachine=AdminConfig.list("JavaVirtualMachine", server)
wsadmin>verbosemodegarbagecollection="true"
wsadmin>initialheapsize=str("1024")
wsadmin>maximumheapsize=str("1024")
wsadmin>AdminConfig.modify(javavirtualmachine, "[[initialHeapSize "+initialheapsize+"] [maximumHeapSize "+maximumheapsize+"] [verboseModeGarbageCollection "+verbosemodegarbagecollection+"]]")
''
wsadmin>AdminConfig.save()
''
wsadmin>
wsadmin>print AdminConfig.show(javavirtualmachine)
[bootClasspath []]
[classpath []]
[debugArgs -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777]
[debugMode false]
[disableJIT false]
[genericJvmArguments []]
[hprofArguments []]
[initialHeapSize 1024]
[internalClassAccessMode ALLOW]
[maximumHeapSize 1024]
[runHProf false]
[systemProperties [com.ibm.security.jgss.debug(cells/testCell01/nodes/testNode01/servers/appserver01|server.xml#Property_xxxxxxxx) com.ibm.security.krb5.Krb5Debug(cells/testCell01/nodes/testNode01/servers/appserver01|server.xml#Property_xxxxxxxx)]]
[verboseModeClass false]
[verboseModeGarbageCollection true]
[verboseModeJNI false]
wsadmin>
ããã§appserver01ã®ã¡ã¢ãªãµã¤ãºã®åæå¤ãæ大å¤ã1024ãåé·ã¬ã¼ããã¸ã»ã³ã¬ã¯ã·ã§ã³ãæå¹ãªè¨å®ã«å¤æ´ããã¾ãããã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã®ããã»ã¹ãèµ·åãã¦ããå ´åã¯ãåèµ·åå¾ã«è¨å®å¤ãåæ ããã¾ãã
第3åã§ã¯ã³ãã³ãã©ã¤ã³ã§ã®ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã®è¨å®ãæ å ±æ¡åã«ã¤ãã¦ã説æãã¾ããã第4åã§ã¯ãä»åã®æ§ç¯ã³ãã³ããå°ãæ¹è¯ããåæã«è¤æ°å°ã®ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ã®è¨å®ãæ å ±æ¡åããæ¹æ³ã«ã¤ãã¦ã説æãããã¨æãã¾ãã
Tweet