现在的位置: 首页 > 综合 > 正文

使用STAF/STAX启动VMWare镜像

2013年08月18日 ⁄ 综合 ⁄ 共 1810字 ⁄ 字号 评论关闭

1.      Installing STAF+STAX on theserver

1.1.   [Optional]If JVM not installed,need to install JVM first.

1.2.   Download the latest STAFrelease from
http://staf.sourceforge.net/getcurrent.php
.

1.3.   Download the STAX service from

http://staf.sourceforge.net/getstax.php.

1.4.   Install STAF

1.5.   Create a services folder in theSTAF install folder, for example: C:\STAF\services.

1.6.   Extract the STAX servicearchive (STAXV3XX.zip or STAXV3XX.tar) to ..\STAF\services.You should now have a ..\STAF\services\stax folder.

1.7.   Modify the STAF.cfg file in..STAF\bin to include the following lines:

SERVICE STAX LIBRARY JSTAF EXECUTE \
{STAF/Config/STAFRoot}/services/stax/STAX.jar OPTION J2=-Xmx384m
SERVICE EVENT LIBRARY JSTAF EXECUTE \
{STAF/Config/STAFRoot}/services/stax/STAFEvent.jar
SET MAXQUEUESIZE 10000

网上有解释说

1.SERVICE STAX LIBRARY JSTAF EXECUTE
{STAF/Config/STAFRoot}/services/stax/STAX.jar
通知STAF在启动时以名字STAX(这样在STAF服务列表中,我们看到的STAX的服务名字就叫做STAX)来加载STAX.jar,也就是STAX服务。
传递的参数J2=-Xmx384m表示更改JVM的堆栈大小。如果STAX会出现OutOfMemory错误,则需要调整这个参数,增加JVM的堆栈大小。
建议在加载STAX时总是指定这个参数,并且根据系统环境来调整参数大小。

2. SERVICE EVENT LIBRARY JSTAF EXECUTE
{STAF/Config/STAFRoot}/services/stax/STAFEvent.jar
通知STAF在启动时以名字EVENT来加载STAFEvent.jar

3.要在运行STAX的机器上运行STAX Monitor (STAX任务的监控工具),则需要设置MAXQUEUESIZE,以保证STAXMonitor能够正确运行。

1.8.   Restart STAFProc

1.9.   Run the following cmd to verifyinstallation:

staf local ping ping
staf local service list
staf local stax help

2.      Installing STAF on testmachines

2.1.   Download the latest STAFrelease from
http://staf.sourceforge.net/getcurrent.php
.

2.2.   Install STAF

2.3.   Configure trust levels. Thetrust level of the test machines must set with trust level 5 for the STAX server. Add the following lines to the STAF.cfg filein the STAF/bin folder on each test machine:

trust machine mystaxserver  level 5

 

3.    How do I use STAF and STAXto boot and shutdown VMWare images on my test machines?

{ref: http://staf.sourceforge.net/current/STAFFAQ.htm#d0e724}

(目前完成前两部分,第三部分待补充)

抱歉!评论已关闭.