I am running a recorded test plan. I have assigned 5 diferents users in the Thread Group, with a Ramp-up Period of 5 and Loop Count of 1.
This is what happens:
Start the test.
The test runs without errors and it seems that the 5 users are execute correctly when I check in the View Results Tree but when I check in the system only 2 or 3 users are registrated. I delete the registrated users and run the script again and again 2 or 3 users are registrated (some times are not the same) of the 5 users.
I don't understand what can possibly do that my test behave like that...
Why does my test plan not run for the 5 users?
I've checked the resources being utilized on my machine but they were fine, no problems with that.
The log of the Jmeter is the follow:
2015/01/23 12:54:11 INFO - jmeter.util.BSFTestElement: Registering JMeter version of JavaScript engine as work-round for BSF-22
2015/01/23 12:54:12 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default
2015/01/23 12:54:12 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is
2015/01/23 12:54:12 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is
2015/01/23 12:54:12 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is
2015/01/23 12:54:12 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is
2015/01/23 12:54:12 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2015/01/23 12:54:12 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.control.gui.WebServiceSamplerGui
2015/01/23 12:54:12 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui
2015/01/23 12:54:12 INFO - jorphan.exec.KeyToolUtils: keytool found at 'C:\Program Files (x86)\Java\jre1.8.0_25\bin\keytool'
2015/01/23 12:54:12 INFO - jmeter.protocol.http.proxy.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file E:\Pruebas no Funcionales\JMeter\apache-jmeter-2.12\apache-jmeter-2.12\bin\proxyserver.jks
2015/01/23 12:54:12 INFO - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times
2015/01/23 12:54:12 INFO - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
2015/01/23 12:54:12 INFO - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true
2015/01/23 12:54:12 INFO - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000
2015/01/23 12:54:54 INFO - jmeter.services.FileServer: Default base='E:\Pruebas no Funcionales\JMeter\apache-jmeter-2.12\apache-jmeter-2.12\bin'
2015/01/23 12:54:54 INFO - jmeter.gui.action.Load: Loading file: E:\Pruebas no Funcionales\JMeter\JMScripts\Solicitud_Credito.jmx
2015/01/23 12:54:54 INFO - jmeter.services.FileServer: Set new base='E:\Pruebas no Funcionales\JMeter\JMScripts'
2015/01/23 12:54:54 INFO - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2
2015/01/23 12:54:54 INFO - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8
2015/01/23 12:54:54 INFO - jmeter.save.SaveService: Using SaveService properties version 2.7
2015/01/23 12:54:54 INFO - jmeter.save.SaveService: Using SaveService properties file version 1618048
2015/01/23 12:54:54 INFO - jmeter.save.SaveService: All converter versions present and correct
2015/01/23 12:54:54 INFO - jmeter.protocol.http.control.CookieManager: Settings: Delete null: true Check: false Allow variable: true Save: true Prefix:
2015/01/23 12:54:55 INFO - jmeter.services.FileServer: Set new base='E:\Pruebas no Funcionales\JMeter\JMScripts'
2015/01/23 12:55:06 INFO - jmeter.engine.StandardJMeterEngine: Listeners will be started after enabling running version
2015/01/23 12:55:06 INFO - jmeter.engine.StandardJMeterEngine: To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false
2015/01/23 12:55:06 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2015/01/23 12:55:06 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2015/01/23 12:55:06 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2015/01/23 12:55:06 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2015/01/23 12:55:06 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Carga_Usuarios
2015/01/23 12:55:06 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Carga_Usuarios.
2015/01/23 12:55:06 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2015/01/23 12:55:06 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=true
2015/01/23 12:55:06 INFO - jmeter.threads.ThreadGroup: Started thread group number 1
2015/01/23 12:55:06 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2015/01/23 12:55:06 INFO - jmeter.threads.JMeterThread: jmeterthread.startearlier=true (see jmeter.properties)
2015/01/23 12:55:06 INFO - jmeter.threads.JMeterThread: Running PostProcessors in forward order
2015/01/23 12:55:06 INFO - jmeter.threads.JMeterThread: Thread started: Carga_Usuarios 1-1
2015/01/23 12:55:06 INFO - jmeter.services.FileServer: Stored: Filecnx.csv
2015/01/23 12:55:06 INFO - jmeter.protocol.http.sampler.HTTPHCAbstractImpl: Local host = CONSULT0002
2015/01/23 12:55:06 INFO - jmeter.protocol.http.sampler.HTTPHC4Impl: HTTP request retry count = 0
2015/01/23 12:55:06 INFO - jmeter.protocol.http.sampler.HTTPHC4Impl: Setting up HTTPS TrustAll scheme
2015/01/23 12:55:06 INFO - jmeter.util.JsseSSLManager: Using default SSL protocol: TLS
2015/01/23 12:55:06 INFO - jmeter.util.JsseSSLManager: SSL session context: per-thread
2015/01/23 12:55:56 INFO - jmeter.threads.JMeterThread: Thread is done: Carga_Usuarios 1-1
2015/01/23 12:55:56 INFO - jmeter.threads.JMeterThread: Thread finished: Carga_Usuarios 1-1
2015/01/23 12:55:56 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2015/01/23 12:55:56 INFO - jmeter.services.FileServer: Close: Filecnx.csv
2015/01/23 12:55:56 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
If you need any other information, please let me know...
thank you !
I already found the answer to this problem. It wasn't any problem with the script was a conflict between the data that was sending related to the city and the town. The script was sending a fix value of the city and the town belong of that city.
When the city was different it wasn't a problem because the combobox included all the citys but when the town was different, the script was inserted a value that it doesn't exist in the town combobox so it shows an error validation that stop the flow of that user but it didn't show any error in the JMeter.
So when the users had the same city and town, they were inserted but if they didn't it shows no error but was not inserted in the DB.
Related
I have a jmeter test plan which has run 40000 threads and ramp up time is 600 seconds.
I am running it with command line.
./jmeter -n -t ../../HttpTestPlan.jmx
It runs fine on windows 64 bit machine. It able to execute all 40000 threads without any problem.
But when I run the same test plan in ec2 (with root privilege) it can execute only 31208 threads and then it will stop the execution.
What should I do to make sure it runs all the threads on linux ec2 box?
Thanks
2018-09-05 08:04:58,148 INFO o.a.j.u.JMeterUtils: Setting Locale to en_EN
2018-09-05 08:04:58,164 INFO o.a.j.JMeter: Loading user properties from: user.properties
2018-09-05 08:04:58,165 INFO o.a.j.JMeter: Loading system properties from: system.properties
2018-09-05 08:04:58,170 INFO o.a.j.JMeter: Copyright (c) 1998-2018 The Apache Software Foundation
2018-09-05 08:04:58,170 INFO o.a.j.JMeter: Version 4.0 r1823414
2018-09-05 08:04:58,170 INFO o.a.j.JMeter: java.version=1.8.0_181
2018-09-05 08:04:58,170 INFO o.a.j.JMeter: java.vm.name=OpenJDK 64-Bit Server VM
2018-09-05 08:04:58,170 INFO o.a.j.JMeter: os.name=Linux
2018-09-05 08:04:58,170 INFO o.a.j.JMeter: os.arch=amd64
2018-09-05 08:04:58,170 INFO o.a.j.JMeter: os.version=3.10.0-862.3.3.el7.x86_64
2018-09-05 08:04:58,171 INFO o.a.j.JMeter: file.encoding=UTF-8
2018-09-05 08:04:58,171 INFO o.a.j.JMeter: Max memory =1073741824
2018-09-05 08:04:58,171 INFO o.a.j.JMeter: Available Processors =2
2018-09-05 08:04:58,175 INFO o.a.j.JMeter: Default Locale=English (EN)
2018-09-05 08:04:58,175 INFO o.a.j.JMeter: JMeter Locale=English (EN)
2018-09-05 08:04:58,175 INFO o.a.j.JMeter: JMeterHome=/home/pardema/apache-jmeter-4.0
2018-09-05 08:04:58,175 INFO o.a.j.JMeter: user.dir =/home/pardema/apache-jmeter-4.0/bin
2018-09-05 08:04:58,176 INFO o.a.j.JMeter: PWD =/home/pardema/apache-jmeter-4.0/bin
2018-09-05 08:04:58,180 INFO o.a.j.JMeter: IP: xxxxxxxxxx Name: xxxxxxxxxxx: xxxxxxxxxxxxxx
2018-09-05 08:04:58,183 INFO o.a.j.s.FileServer: Default base='/home/pardema/apache-jmeter-4.0/bin'
2018-09-05 08:04:58,189 INFO o.a.j.s.FileServer: Set new base='/home/pardema/apache-jmeter-4.0/bin/../..'
2018-09-05 08:04:58,336 INFO o.a.j.s.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2
2018-09-05 08:04:58,355 INFO o.a.j.s.SaveService: Using SaveService properties file encoding UTF-8
2018-09-05 08:04:58,360 INFO o.a.j.s.SaveService: Using SaveService properties version 4.0
2018-09-05 08:04:58,366 INFO o.a.j.s.SaveService: Loading file: ../../HttpTestPlan.jmx
2018-09-05 08:04:58,409 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-09-05 08:04:58,409 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-09-05 08:04:58,409 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-09-05 08:04:58,409 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
2018-09-05 08:04:58,410 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2018-09-05 08:04:58,410 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser
2018-09-05 08:04:58,433 INFO o.a.j.JMeter: Creating summariser
2018-09-05 08:04:58,440 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2018-09-05 08:04:58,441 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2018-09-05 08:04:58,441 INFO o.a.j.s.SampleEvent: List of sample_variables: []
2018-09-05 08:04:58,445 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must contain the string: '.functions.'
2018-09-05 08:04:58,445 INFO o.a.j.e.u.CompoundVariable: Note: Function class names must not contain the string: '.gui.'
2018-09-05 08:04:58,851 INFO o.a.j.JMeter: Running test (1536149098851)
2018-09-05 08:04:58,890 INFO o.a.j.e.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2018-09-05 08:04:58,891 INFO o.a.j.e.StandardJMeterEngine: Starting 50000 threads for group Thread Group.
2018-09-05 08:04:58,891 INFO o.a.j.e.StandardJMeterEngine: Thread will continue on error
2018-09-05 08:04:58,891 INFO o.a.j.t.ThreadGroup: Starting thread group... number=1 threads=50000 ramp-up=600 perThread=12.0 delayedStart=false
2018-09-05 08:04:58,900 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-1
2018-09-05 08:04:58,913 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-2
2018-09-05 08:04:58,919 INFO o.a.j.p.h.s.HTTPHCAbstractImpl: Local host = 10-118-9-93.ebiz.verizon.com
2018-09-05 08:04:58,925 INFO o.a.j.p.h.s.HTTPHC4Impl: HTTP request retry count = 0
2018-09-05 08:04:58,932 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-3
2018-09-05 08:04:58,933 INFO o.a.j.s.SampleResult: Note: Sample TimeStamps are START times
2018-09-05 08:04:58,933 INFO o.a.j.s.SampleResult: sampleresult.default.encoding is set to ISO-8859-1
2018-09-05 08:04:58,933 INFO o.a.j.s.SampleResult: sampleresult.useNanoTime=true
2018-09-05 08:04:58,933 INFO o.a.j.s.SampleResult: sampleresult.nanoThreadSleep=5000
2018-09-05 08:04:58,946 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-4
2018-09-05 08:04:58,950 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-5
2018-09-05 08:04:58,962 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-6
2018-09-05 08:04:58,975 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-7
2018-09-05 08:04:59,001 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-9
2018-09-05 08:04:59,006 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-8
2018-09-05 08:04:59,026 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-10
2018-09-05 08:04:59,026 INFO o.a.j.t.JMeterThread: Thread started: Thread Group 1-11
You might need to amend /proc/sys/kernel/threads-max setting
Also check limits.conf as you may need to increase the maximum number of open handles
Be aware that 40k threads is quite big amount for a single JMeter engine so you might need to consider Distributed Testing , ensure that the machine(s) have enough headroom to operate in terms of CPU, RAM, network, disk IO, etc. as if JMeter will not be able to send requests fast enough you will get lower throughput even if your application will not be overloaded and stick to JMeter Best Practices.
Most probably you had a hs_err_pid.log file generated due to crash of your JVM.
Search for such file for root cause of JVM crash.
Among hypothesis:
Linux memory, process, file descriptor limits
Not enough memory on your system
Note that 40k threads requires a powerful machine and most probably more than one to overcome:
- network limits of your card
- CPU
- Other resources required
Your machine (2 CPUs , 1Gb RAM) is very very short for that.
2016/08/30 14:12:34 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2016/08/30 14:12:34 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2016/08/30 14:12:34 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2016/08/30 14:12:34 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2016/08/30 14:12:34 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2016/08/30 14:12:34 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2016/08/30 14:12:34 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false
2016/08/30 14:12:34 INFO - jmeter.threads.ThreadGroup: Started thread group number 1
2016/08/30 14:12:34 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2016/08/30 14:12:34 INFO - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1
2016/08/30 14:12:34 INFO - jmeter.services.FileServer: Stored: NewOffenderInfo Alias: NewOffenderInfo#27949741
2016/08/30 14:12:34 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.IllegalArgumentException: File NewOffenderInfo must exist and be readable
at org.apache.jmeter.services.FileServer.createBufferedReader(FileServer.java:422)
at org.apache.jmeter.services.FileServer.getReader(FileServer.java:388)
at org.apache.jmeter.services.FileServer.getParsedLine(FileServer.java:379)
at org.apache.jmeter.config.CSVDataSet.iterationStart(CSVDataSet.java:196)
at org.apache.jmeter.control.GenericController.fireIterationStart(GenericController.java:405)
at org.apache.jmeter.control.GenericController.fireIterEvents(GenericController.java:397)
at org.apache.jmeter.control.GenericController.next(GenericController.java:158)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:222)
at org.apache.jmeter.control.GenericController.next(GenericController.java:176)
at org.apache.jmeter.control.LoopController.next(LoopController.java:123)
at org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:87)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:239)
at java.lang.Thread.run(Unknown Source)
2016/08/30 14:12:34 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1
2016/08/30 14:12:34 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2016/08/30 14:12:34 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
If I remove my CSV file and run the script it will work, but as long as I put the csv config , I'm not able to run my script. I set the Recycle on EOF = False and Stop Thread on EOF =True and Sharing mode= Current thread group. can somebody help me find out what is wrong?
You need to make sure that the path you have mentioned to configure the CSV is correct. As per the exception in Jmeter.log file, it's not able to find the CSV.
Check following things:
Name of the file is correct. In case of Unix file names are case sensitive so check the name of the file and name you have mentioned in CSV data set configuration.
Keep the CSV file in the same folder where your JMX resides, and just mention file name in CSV dataset config. This avoids confusion in future even if you move the script to any other box.
Also make sure in the file there is no new line character at the end of the file. That will result in error.
As the log says:
File NewOffenderInfo must exist and be readable at
You file is either not here or does not have correct rights.
Be sure to include the filename extension (.csv) in the CSV Data Set Config.
I am trying to use beanshell on jmeter (last version), but everytime I add a beanshell processor (pre, pro or whatever), I got this error
ERROR - jmeter.util.BeanShellTestElement: Cannot find BeanShell: java.lang.ClassNotFoundException: bsh.Interpreter
Ubuntu last stable versione, jmeter last stable version(2.13)
I don't understand what I need to do..
Any suggestions?
Thanks in advance!
EDIT: here full logs:
2016/03/02 14:44:05 INFO - jmeter.util.JMeterUtils: Setting Locale to en_IE 2016/03/02 14:44:05 INFO - jmeter.JMeter: Loading user properties from: /home/asada/Downloads/apache-jmeter-2.13/bin/user.properties 2016/03/02 14:44:05 INFO - jmeter.JMeter: Loading system properties from: /home/asada/Downloads/apache-jmeter-2.13/bin/system.properties 2016/03/02 14:44:05 INFO - jmeter.JMeter: Copyright (c) 1998-2012 The Apache Software Foundation 2016/03/02 14:44:05 INFO - jmeter.JMeter: Version 2.8.20130705 2016/03/02 14:44:05 INFO - jmeter.JMeter: java.version=1.8.0_72 2016/03/02 14:44:05 INFO - jmeter.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM 2016/03/02 14:44:05 INFO - jmeter.JMeter: os.name=Linux 2016/03/02 14:44:05 INFO - jmeter.JMeter: os.arch=amd64 2016/03/02 14:44:05 INFO - jmeter.JMeter: os.version=3.19.0-49-generic 2016/03/02 14:44:05 INFO
- jmeter.JMeter: file.encoding=UTF-8 2016/03/02 14:44:05 INFO - jmeter.JMeter: Default Locale=English (Ireland) 2016/03/02 14:44:05 INFO - jmeter.JMeter: JMeter Locale=English (Ireland) 2016/03/02 14:44:05 INFO - jmeter.JMeter: JMeterHome=/usr/share/jmeter 2016/03/02 14:44:05 INFO - jmeter.JMeter: user.dir
=/home/asada/Downloads/apache-jmeter-2.13/bin 2016/03/02 14:44:05 INFO - jmeter.JMeter: PWD
=/home/asada/Downloads/apache-jmeter-2.13/bin 2016/03/02 14:44:05 INFO - jmeter.JMeter: IP: 127.0.1.1 Name: asada-Precision-WorkStation-T5500 FullName: asada-Precision-WorkStation-T5500 2016/03/02 14:44:05 INFO - jmeter.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties 2016/03/02 14:44:06 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.' 2016/03/02 14:44:06 INFO - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.' 2016/03/02 14:44:07 INFO - jmeter.gui.action.LookAndFeelCommand: Using look and feel: javax.swing.plaf.metal.MetalLookAndFeel [Metal, CrossPlatform] 2016/03/02 14:44:08 INFO - jmeter.util.BSFTestElement: Registering JMeter version of JavaScript engine as work-round for BSF-22 2016/03/02 14:44:08 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Cannot find .className property for htmlParser, using default 2016/03/02 14:44:08 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is 2016/03/02 14:44:08 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is 2016/03/02 14:44:08 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is 2016/03/02 14:44:08 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is 2016/03/02 14:44:08 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 2016/03/02 14:44:08 INFO - jmeter.protocol.http.sampler.HTTPSamplerBase: Reuse SSL session context on subsequent iterations: true 2016/03/02 14:44:08 INFO - jmeter.gui.util.MenuFactory: Skipping org.apache.jmeter.protocol.http.modifier.gui.ParamModifierGui 2016/03/02 14:44:08 INFO - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times 2016/03/02 14:44:08 INFO - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1 2016/03/02 14:44:08 INFO - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true 2016/03/02 14:44:08 INFO - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000 2016/03/02 14:44:24 ERROR - jmeter.util.BeanShellInterpreter: Beanshell Interpreter not found 2016/03/02 14:44:24 ERROR - jmeter.util.BeanShellTestElement: Cannot find BeanShell: java.lang.ClassNotFoundException: bsh.Interpreter 2016/03/02 14:44:29 ERROR - jmeter.util.BeanShellTestElement: Cannot find BeanShell: java.lang.ClassNotFoundException: bsh.Interpreter 2016/03/02 14:44:29 ERROR - jmeter.util.BeanShellTestElement: Cannot find BeanShell: java.lang.ClassNotFoundException: bsh.Interpreter 2016/03/02 14:44:29 INFO - jmeter.engine.StandardJMeterEngine: Listeners will be started after enabling running version 2016/03/02 14:44:29 INFO - jmeter.engine.StandardJMeterEngine: To revert to the earlier behaviour, define jmeterengine.startlistenerslater=false 2016/03/02 14:44:29 INFO - jmeter.engine.StandardJMeterEngine: Running the test! 2016/03/02 14:44:29 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,local) 2016/03/02 14:44:30 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group 2016/03/02 14:44:30 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group. 2016/03/02 14:44:30 INFO
- jmeter.engine.StandardJMeterEngine: Thread will continue on error 2016/03/02 14:44:30 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false 2016/03/02 14:44:30 INFO - jmeter.threads.JMeterThread: jmeterthread.startearlier=true (see jmeter.properties) 2016/03/02 14:44:30 INFO - jmeter.threads.JMeterThread: Running PostProcessors in forward order 2016/03/02 14:44:30 ERROR - jmeter.util.BeanShellTestElement: Cannot find BeanShell: java.lang.ClassNotFoundException: bsh.Interpreter 2016/03/02 14:44:30 ERROR - jmeter.util.BeanShellTestElement: Cannot find BeanShell: java.lang.ClassNotFoundException: bsh.Interpreter 2016/03/02 14:44:30 INFO - jmeter.threads.ThreadGroup: Started thread group number 1 2016/03/02 14:44:30 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started 2016/03/02 14:44:30 INFO - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1 2016/03/02 14:44:30 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1 2016/03/02 14:44:30 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 2016/03/02 14:44:30 INFO - jmeter.services.FileServer: Default base='/home/asada/Downloads/apache-jmeter-2.13/bin' 2016/03/02 14:44:30 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,local)
Double check your JMeter installation, it should contain bsh-2.0b5.jar. If it doesn't - download it from i.e. http://repo1.maven.org/maven2/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar and drop to /lib folder of your JMeter installation. If you installed it from Ubuntu repositories it can be something like /usr/share/jmeter/lib/
Just in case take the following steps:
Create a new Ubuntu user and log into its account.
Download the latest version of Oracle Java Server JRE or JDK an unpack it somewhere
Set JAVA_HOME system variable pointing to Java installation folder and add $JAVA_HOME/bin to PATH variable like:
JAVA_HOME=/opt/java && export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH && export PATH
Download JMeter 2.13 (or newer) and unpack it somewhere
In the same terminal window you set JAVA_HOME and PATH navigate to /bin folder of your JMeter installation and type ./jmeter
If the problem still persists - post full jmeter.log file contents here.
If there will be nothing suspicious in the jmeter.log file - add
debug();
line at the beginning of your Beanshell script and inspect terminal output.
I have faced similar issue. It could be due to your JAVA_TOOLS_OPTIONS.
Remove that, Relaunch everything and Try again.
Close the terminal
ReLaunch the terminal
type jmeter (or ./jmeter)and hit enter
Now - What do you see in the Terminal once jmeter is launched?
Now It works.
With windows I never had a single problem.
BTW I did:
sudo apt-get remove jmeter
delete the folder where I had the second jmeter in my pc.
I update the java alternatives and I choose the
java 8 with both commands: sudo update-alternatives --config java
sudo update-alternatives --config javac
Restart the pc
Download again jmeter
this time I moved the dir on /opt/apache-jmeter-2.13.
I went in bin and I just ran ./jmeter.
This time without errors. I really don't know what was the problem.
2015/06/12 11:00:11 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2015/06/12 11:00:11 INFO - jmeter.samplers.SampleEvent: List of sample_variables: []
2015/06/12 11:00:11 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2015/06/12 11:00:11 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Thread Group
2015/06/12 11:00:11 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2015/06/12 11:00:11 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2015/06/12 11:00:11 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false
2015/06/12 11:00:11 INFO - jmeter.threads.ThreadGroup: Started thread group number 1
2015/06/12 11:00:11 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2015/06/12 11:00:11 INFO - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1
2015/06/12 11:00:11 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.IllegalStateException: The driver executable does not exist: D:\Mm performance\apache-jmeter-2.13\apache-jmeter-2.13\bin
at com.google.common.base.Preconditions.checkState(Preconditions.java:197)
at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:117)
at org.openqa.selenium.chrome.ChromeDriverService.access$000(ChromeDriverService.java:39)
at org.openqa.selenium.chrome.ChromeDriverService$Builder.usingDriverExecutable(ChromeDriverService.java:116)
at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.getThreadService(ChromeDriverConfig.java:72)
at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.createBrowser(ChromeDriverConfig.java:53)
at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.createBrowser(ChromeDriverConfig.java:18)
at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.getPreparedBrowser(WebDriverConfig.java:233)
at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.threadStarted(WebDriverConfig.java:220)
at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:610)
at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:998)
at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:980)
at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:579)
at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:567)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257)
at java.lang.Thread.run(Thread.java:745)
2015/06/12 11:00:11 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1
2015/06/12 11:00:11 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2015/06/12 11:00:11 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
Download the latest version of ChromeDriver from http://chromedriver.storage.googleapis.com/index.html (if not yet)
Add the following line to system.properties file (the file lives under /bin folder of your JMeter installation)
webdriver.chrome.driver=d:/chromedriver.exe
You may have to substitute d:/chromedriver.exe with actual path to the ChromeDriver binary. Remember to use either forward slashes c:/somefoler/someotherfolder or escaped back slashes c:\\somefolder\\someotherfolder if you use Windows
Restart JMeter
ChromeDriver should work normally.
See Apache JMeter Properties Customization Guide for advanced information on various JMeter properties and ways of setting, using and overriding them.
I am trying to load my CSV file in JMeter and I keep getting the error below. I have the file structure set as
c:\claimstest\claimsload.jmx
c:\claimstest\policies.csv
Any help would be greatly appreciated. I also attached a screenshot of the CSV Data Set Config
2012/05/30 10:09:20 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1
2012/05/30 10:09:20 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-1
2012/05/30 10:09:20 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2012/05/30 10:09:20 INFO - jmeter.services.FileServer: Close: policies.csv
2012/05/30 10:09:20 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
2012/05/30 10:09:20 INFO - jmeter.engine.StandardJMeterEngine: Test has ended on host null
2012/05/30 10:15:17 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2012/05/30 10:15:17 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2012/05/30 10:15:17 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Thread Group.
2012/05/30 10:15:17 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2012/05/30 10:15:18 INFO - jmeter.engine.StandardJMeterEngine: All threads have been started
2012/05/30 10:15:18 INFO - jmeter.threads.JMeterThread: Thread started: Thread Group 1-1
2012/05/30 10:15:18 INFO - jmeter.services.FileServer: Stored: policies.csv
2012/05/30 10:15:18 INFO - jmeter.services.FileServer: Stored:
2012/05/30 10:15:18 ERROR - jmeter.threads.JMeterThread: Test failed! java.lang.IllegalArgumentException: Could not read file header line
at org.apache.jmeter.services.FileServer.reserveFile(FileServer.java:275)
at org.apache.jmeter.config.CSVDataSet.iterationStart(CSVDataSet.java:132)
at org.apache.jmeter.control.GenericController.fireIterationStart(GenericController.java:387)
at org.apache.jmeter.control.GenericController.fireIterEvents(GenericController.java:379)
at org.apache.jmeter.control.GenericController.next(GenericController.java:144)
at org.apache.jmeter.control.GenericController.nextIsAController(GenericController.java:200)
at org.apache.jmeter.control.GenericController.next(GenericController.java:162)
at org.apache.jmeter.control.LoopController.next(LoopController.java:108)
at org.apache.jmeter.threads.AbstractThreadGroup.next(AbstractThreadGroup.java:75)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:268)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: C:\claimstest (Access is denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at org.apache.jmeter.services.FileServer.createBufferedReader(FileServer.java:341)
at org.apache.jmeter.services.FileServer.readLine(FileServer.java:318)
at org.apache.jmeter.services.FileServer.readLine(FileServer.java:302)
at org.apache.jmeter.services.FileServer.reserveFile(FileServer.java:273)
... 10 more
2012/05/30 10:15:18 INFO - jmeter.threads.JMeterThread: Thread finished: Thread Group 1-1
2012/05/30 10:15:18 INFO - jmeter.engine.StandardJMeterEngine: Ending thread Thread Group 1-1
2012/05/30 10:15:18 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2012/05/30 10:15:18 INFO - jmeter.services.FileServer: Close: policies.csv
2012/05/30 10:15:18 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
2012/05/30 10:15:18 INFO - jmeter.engine.StandardJMeterEngine: Test has ended on host null
If anyone is getting such a error please try launching the apache J-meter with admin rights.
You just need to say "Run as administrator" & it works, It accept the csv path provided in the bin directory or anywhere in the system. It works for me.
You use CSV Data Set Config with empty Filename ("").
JMeter try read CSV file from path {current directory} + "" = "C:\claimstest".
But "C:\claimstest" is directory.
JMeter write error:
Caused by: java.io.FileNotFoundException: C:\claimstest (Access is denied)
Use Ctrl+F and find "CSV".
You find CSV Data Set Config with empty Filename, remove it.