thanks
Also,does anyone have any recommendations on favorite resources for learning WebSphere 6.1 jython
Thanks
See listServers and setJVMInitialHeapSize / setJVMMaxHeapSize at
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/rxml_atservermanagement.html#rxml_atservermanagement__cmd17
Remove the %20 sign it added and you get the page.
Here is an example, just change the intial and max heap size of your choice.
lineSeparator = java.lang.System.getProperty( 'line.separator' )
st = AdminTask.listServers( '[-serverType APPLICATION_SERVER]' ).split(lineSeparator)
for aServer in st:
print 'aServer is :' ,aServer
sName = AdminConfig.showAttribute(aServer, "name" )
sID = AdminConfig.getid( "/Server:" +sName+ "/" )
pDef = AdminConfig.list( "ProcessDef" , sID)
jvm = AdminConfig.list( "JavaVirtualMachine" , pDef)
AdminConfig.modify(jvm, [[ "initialHeapSize" , 256]] )
AdminConfig.modify(jvm, [[ "maximumHeapSize" , 512]] )
AdminConfig.save()
Anant
attributes given an MBean, returns help for attributes
operations given an MBean, returns help for operations
constructors given an MBean, returns help for constructors
description given an MBean, returns help for description
notifications given an MBean, returns help for notifications
classname given an MBean, returns help for classname
all given an MBean, returns help for all the above
help returns this help text
AdminControl returns general help text for the AdminControl object
AdminConfig returns general help text for the AdminConfig object
AdminApp returns general help text for the AdminApp object
wsadmin returns general help text for the wsadmin script
launcher
message given a message id, returns explanation and
user action message
How do you invoke AdminTask
http://www.ibm.com/developerworks/websphere/techjournal/0509_wang/0509_ wang.html
WASX7015E: Exception running command: "print AdminTask.listServers()"; exception information:
com.ibm.bsf.BSFException: exception from Jython: Traceback (innermost last):
File " print AdminTask.help()
WASX7015E: Exception running command: "print AdminTask.help()"; exception information:
com.ibm.bsf.BSFException: exception from Jython: Traceback (innermost last):
File "", line 1, in ?
NameError: AdminTask
any ideas
This has nothing to do with the error, are you invoking the wsadmin with the following parameters to run the jython commands.
wsadmin.sh -lang jython