Author Topic: fail to run app server workload  (Read 5360 times)

Tang

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
fail to run app server workload
« on: December 26, 2018, 02:30:54 AM »
Hi, sir

I have meet some errors while running app server workload. It seems that some configuration is missing on app server, and it cannot find something.
I set up Control.config to only run appserver workload. Control.config is attached below.
Following is error log. How can I deal with it? Please help me and any suggestion is welcome, thank you.

client-10.67.247.71_1091.log:

2018-12-26 14:59:28:838 Creating jappclient using RMI Registry port 1091
2018-12-26 14:59:28:870 client:1091 ready...
Driver Host: client      Tile Number:0
2018-12-26 14:59:51:369 matchOut() messages set ...
2018-12-26 14:59:51:370 Starting rmiregistry; bindWait = 45000
2018-12-26 15:00:36:371 Starting Controller; bindWait = 45000
2018-12-26 15:00:36:388 waiting for: Binding controller to /
rec'd notifyInterrupt(101) call
Binding controller to //client:2098/Controller
Launcher: done in waitMatch(0)
2018-12-26 15:01:21:665 Starting Agents
---------------//client:2098/Controller
Calling switchLog as master
url[0] is : http://specemulator:8080/Emulator/EmulatorServlet?cmd=switchlog
url[1] is : http://specdelivery:8000/Supplier/DeliveryServlet?cmd=switchlog
calling driver.waitMatch(0)...
2018-12-26 15:02:07:204 waiting for: waiting2ramp
RunID for this run is : 3
Output directory for this run is : /opt/SPECjAppServer2004/output/3
loadFactor=5
changeRate=30
burstyCurve from run.properties=37,72,61,87,132,77,0,49,137,93,187,103,174,138,200,173,153,107,225,44,36,44,48,68,138,125,116,88,38,50
scaleFactor=1.0
Curve avg txRate = 100.0
maxTxRate=225
tileNumber=0
Will run in bursty mode after rampup/warmup phases. Starting at burstPoint:0
WarmUp style = 0 (0=linear only, 1=burstycurve, 2=zigzag)
Phase one of warm up (start of transaction activity) will increase IR from 0 to 100 linearly, over 120 seconds.
Steady-State IR transition stepRate(ms)=40000
Burst Curve StartPoint Tile Multiplier=7
smoothFactor=1
Using default timeSkewTolerance value: 3
Exception encountered in auditor.validateInitialValues(). Aborting.
java.rmi.RemoteException: Failure looking up home javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial

java version on my servers:

openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

thanks,
Tang

DavidSchmidt

  • Moderator
  • Newbie
  • *****
  • Posts: 21
  • Karma: +3/-1
Re: fail to run app server workload
« Reply #1 on: January 03, 2019, 06:07:52 PM »
Hi Tang,

Sorry you are having trouble getting the appserver workload to work. It is not clear from the logs you provided what is exactly the problem. Can you try the following from the client:

run "curl http://specemulator:8080/Emulator/EmulatorServlet?cmd=switchlog"
and "curl http://specdelivery:8000/Supplier/DeliveryServlet?cmd=switchlog"

Both commands should return something like "200K".

Also please check and see that your java environment is set up properly with a jdk. The error indicates a failure in looking up a specific home value. This could be due to the java environment not being set up properly or that the harness is having trouble accessing the appserver, perhaps due to an issue in the /etc/hosts file.

Thanks,

DavidSchmidt

  • Moderator
  • Newbie
  • *****
  • Posts: 21
  • Karma: +3/-1
Re: fail to run app server workload
« Reply #2 on: January 09, 2019, 03:06:20 PM »
Hi Tang. Glad to hear you got the appserver workload to function. To address the batchserver workload issue, I created a new topic #116 "Batchserver workload failed". Please check there for my responses. Thanks,
« Last Edit: January 09, 2019, 03:14:16 PM by DavidSchmidt »

Gabriel69

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-3
Re: fail to run app server workload
« Reply #3 on: April 13, 2022, 01:13:39 AM »
Hi Tang,

Sorry you are having trouble getting the appserver workload to work. It is not clear from the logs you provided what is exactly the problem. Can you try the following from the client:

run "curl http://specemulator:8080/Emulator/EmulatorServlet?cmd=switchlog/MyPepsico
"
and "curl http://specdelivery:8000/Supplier/DeliveryServlet?cmd=switchlog"

Both commands should return something like "200K".

Also please check and see that your java environment is set up properly with a jdk. The error indicates a failure in looking up a specific home value. This could be due to the java environment not being set up properly or that the harness is having trouble accessing the appserver, perhaps due to an issue in the /etc/hosts file.

Thanks,

Thanks a lot for the reply. I will try the suggested solution from your link.