I am a server test engineer from lenovo,and I encounter some issues with STAF/STAX,could you please help me or give me some suggestion?
I was configured the prime client on the 2008 R2 SP1 ENP OS,and I just followed the “VMmark_Benchmarking_Guide_2.5-20121120" orders to completed each partition configuration,but when I was finished the STAF/STAX configuration,restart the machine,found that STAF service didn't start automatically,so I tried to start it manually,and failed with some issues,I got the "Rapid disappearance of screenshots” about this info:
Error on Sevice definition line:
SERVICE STAX LIBRARY JSTAF EXECUT {STAF/Config/STAFRoot}/service/stax/STAX.jar
OPTION J2=-Xmx384m
Error code: 10
Reason : STAFDynamicLibraryOpen: JSTAF EXECUT C:\STAF/services/stax/STAX.jar:
Connot open library file (aka modules/DLL), OS RC 126: The specified module could not be found.
Error in configuration file : C:\STAF\bin\STAF.cfg
STAF version:STAF3413-setup-winamd64
STAX version:STAXV345
EVENT service version:EventV314
JAVA version: use the bulit-in JRE file in the STAF3413-setup-winamd64 package
java version "1.6.0"
Java(TM) SE Runtime Environment (build pwa6460sr7-20091215_02(SR7))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows 7 amd64-64 jvmwa6460sr7-20091
214_49398 (JIT enabled, AOT enabled)
and this is my staf.cfg file:
# Turn on tracing of internal errors and deprecated options
trace enable tracepoints "error deprecated"
# Enable TCP/IP connections
interface ssl library STAFTCP option Secure=Yes option Port=6550
interface tcp library STAFTCP option Secure=No option Port=6500
# Set default local trust
trust machine local://local level 5
trust level 5 machine 192.168.*.*
# Add default service loader
serviceloader library STAFDSLS
SERVICE STAX LIBRARY JSTAF EXECUT \
{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
and this is my environment variable:
path: C:\STAF\jre\bin;C:\STAF\bin
classicpath: C:\STAF\samples\demo\STAFDemo.jar;C:\STAF\bin\JSTAF.jar
now, I'm purposing is there some environment issues related with cygwin environment, or regedit? or some compatible problems?
Double check that there is no weird line endings in the STAF.cfg file. You can also try removing all of the "\" characters and placing the entire entry on one line.
IE :
service stax library JSTAF execute C:\STAF\services\stax\STAX.jar OPTION J2=-Xverify:none parms "numthreads 200 logtcelapsedtime enabled logtcstartstop enabled"
Hello,
First, please only post your question once per issue. You seem to have some issues in your STAF.cfg.
"SERVICE STAX LIBRARY JSTAF EXECUT \"
Should be
"SERVICE STAX LIBRARY JSTAF EXECUTE \"
Also, I noticed that you aren't following the exact formatting for adding the services to staf on the prime client. It should be as follows:
service stax library JSTAF execute \
C:\STAF\services\stax\STAX.jar OPTION \ J2=-Xverify:none \
parms "numthreads 200 logtcelapsedtime enabled logtcstartstop \ enabled"
service event library JSTAF execute C:\STAF\services\stax\STAFEvent.jar
Please take a look at the benchmarking guide' "Create a Customized STAF.cfg file" for further instructions.
Hello,
Sorry for the double post,I'm a bit worried,never mind.
By the way, I just copied the format what you and the guide provided to modified the STAF.cfg ,then executed the "startSTAFProc.bat",still with some issues:
Error on Sevice definition line:
service stax library JSTAF execute \
C:\STAF\services\stax\STAX.jar OPTION \ J2=-Xverify:none \
parms "numthreads 200 logtcelapsedtime enabled logtcstartstop \ enabled"
Error code: 27
Reason : Error constructing service, JSTAF, Result: Error constructing the JVM using JVMName: STAFJVM1, JVM: java, JVMOptions: , RC: 47, Reason: Option \ J2 is not a valid option for JSTAF
Error in configuration file : C:\STAF\bin\STAF.cfg
It seems the STAX cannot be loaded or registered with a invalid option,so ,could you please help me again?
Regards,thank you so much!
Double check that there is no weird line endings in the STAF.cfg file. You can also try removing all of the "\" characters and placing the entire entry on one line.
IE :
service stax library JSTAF execute C:\STAF\services\stax\STAX.jar OPTION J2=-Xverify:none parms "numthreads 200 logtcelapsedtime enabled logtcstartstop enabled"
Hello!
First,so thankful for that you answer my questions again!
After removing all of the "\" characters,and I tried run again,seems there is no more issues,but It will be stop this command-line output (picture:stop),and cannot continue anymore,so you think it's normal?beacause I read the guide include in the STAX zip package,it will be like this command-line output:
Open a command prompt, and type staf local service list
Verify that the STAX and Event services (as well as EventManager, Cron, and Email) are listed in the output:
$ staf local service list
Response
--------
Name Library Executable
------------ ---------- -------------------------------------------------------
CRON JSTAF C:/STAF/services/cron/STAFCron.jar
DELAY <Internal> <None>
DIAG <Internal> <None>
ECHO <Internal> <None>
EMAIL JSTAF C:/STAF/services/email/STAFEmail.jar
EVENT JSTAF C:/STAF/services/stax/STAFEvent.jar
EVENTMANAGER JSTAF C:/STAF/services/eventmanager/STAFEventManager.jar
FS <Internal> <None>
HANDLE <Internal> <None>
HELP <Internal> <None>
LOG STAFLog <None>
MISC <Internal> <None>
PING <Internal> <None>
PROCESS <Internal> <None>
QUEUE <Internal> <None>
SEM <Internal> <None>
SERVICE <Internal> <None>
SHUTDOWN <Internal> <None>
STAX JSTAF C:/STAF/services/stax/STAX.jar
TRACE <Internal> <None>
TRUST <Internal> <None>
VAR <Internal> <None>
and if I try to execute the command"staf local service list"
The command-line output will be like(picture error)
So sorry to trouble you again,thanks so much!
And this is my STAF.cfg file detail:
# Turn on tracing of internal errors and deprecated options
trace enable tracepoints "error deprecated"
# Enable TCP/IP connections
interface ssl library STAFTCP option Secure=Yes option Port=6550
interface tcp library STAFTCP option Secure=No option Port=6500
# Set default local trust
trust machine local://local level 5
# Add default service loader
serviceloader library STAFDSLS
service stax library JSTAF execute C:\STAF\services\stax\STAX.jar OPTION J2=-Xverify:none parms "numthreads 200 logtcelapsedtime enabled logtcstartstop enabled"
service event library JSTAF execute C:\STAF\services\stax\STAFEvent.jar
The message in the window stop.jpg is normal and good. Was that window still up when you tried the staf command?
If you open a command prompt and type "echo %PATH%" do you see c:\STAF\bin; listed?
Also, what version of Windows are you running?
Keep in mind VMmark 2.5 has been tested only with U.S. English-language versions of Windows. While VMmark might work with other language versions, their use is not supported.
After I tried excuted "echo %PATH%", the command-line output will like what you said:
C:\Users\John>echo %PATH%
C:\STAF\jre\bin;C:\STAF\bin;C:\Program Files (x86)\PC Connectivity Solution\;C:\
Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Windows
PowerShell\v1.0\
My Windows version is Win7,because I am in a short vacation now,so for now,I just wanna make sure that the STAF/STAX service can be run normally without any issues, and if done,I will try it in my VMmark 2.5 test environment,my prime client is Windows 2008 R2 SP1 ENP U.S. English-language versions,and all my clients and mailservers also.
So,for now,seems no more issues,and I will try it until I come back my work.
By another way, maybe the issue is caused by the "\" characters.
The last,thank you for that you are enthusiastic to help me solve the issue!