Skip to main content

Posts

Showing posts from December, 2019

JMeter: Connection refused to host

                              JMeter: Connection refused to host Error: Connection refused to host:, nested exception is : java.net.connectException: connection timed out: connect Unable to run test form in Remote machine and get the above error Quick resolution: Check whether jmeter-server.bat file is running on remote system This should resolve the error. Happy Testing!!!

JMeter Test is not Stopping

                              JMeter test is not stopping JMeter test is not stopping in backend!!! One of the reasons might be, the machine on which we're running JMeter at is overloaded. Quick resolution to end the test gracefully: 1.   Terminate JMeter test gracefully using either shutdown.cmd shell script or forcefully using stoptest.cmd script . Note: 1. Don't run load tests using GUI mode. NonGUI mode is always good for load testing execution.       2. Both scripts are located under "bin" folder of JMeter installation.       3. Try to follow JMeter Best Practices This should resolve the error. Happy Testing!!!

JMeter Script Recording Error

                              JMeter Script Recording Error Sometimes JMeter does not record the script even doing everything in right way!! To resolve recording issue of JMeter, follow below steps: 1.        Go to Bin folder of JMeter 2.       There should be a JMeter certificate (ApacheJMeterTemporaryRootCA) should be available 3.       Add this certificate into the Browsers list of trusted certificates By navigating to Go to Tools> Internet Options> Content >Certificates > Import Certificate from the Bin directory 4.       Now Add Thread Group under Test Plan 5.       Add Recording controller under Thread Group. 6.       Under WorkBench add HTTPS Test Sc...

Save Jmeter Test results into CSV/XML

                                        Save Jmeter Test results into CSV/XML 1.        Launch JMeter   2.       Right click Test Plan and Add -> Threads (Users) -> Thread Group 3.         Right click Thread Group and Add -> Samplers -> HTTP Request 4.       Add example.com to the Server input field of the HTTP Request 5.       Right click Thread Group and Add -> Listeners -> Aggregate Report Save Apache JMeter Results to a CSV file 6.         Configure the filename in the Filename field of the Aggregate Report i.e.: path of diskspace/test1results.csv where path of diskspace is the ...

Jmeter Errors

                                         Jmeter Errors I have shared some errors I have encountered in previous post Let’s have a look on some more error: Problem 1: java.lang.String">java.net.BindException: Address already in use: connect in jmeter how to resolve: Now this one is hit   & trial either 1.        Change the port Or 2.       Increase Ramp up time Problem 2: NON HTTP response message: The target server failed to respond how to resolve: 1.        Disable KeepAlive 2.       Change jmeter.properties file for retries = 3 and timeout = 120. Problem 3: Connection refused to host : : java.net.ConnectionException : Connection Refused how to resolve: this can be a proxy error/issue 1.   ...

Error: Scripting issue in Jmeter

                                        Error: Scripting issue in Jmeter  JMeter is open source tool for performance testing. It is very popular and powerful software. While creating jmeter script (.jmx) we faced lots of common issues. Today ia m going to share some general or common error which I have faced during scriting: Problem 1: jmeter.threads.JMeterThread: Test failed! java.lang.OutOfMemoryError: Java heap space how to resolve: 1.        Increase heap memory in jmeter.bat or jmeter.sh Problem 2: java.net.SocketException: Connection reset how to resolve: ·          Add the following properties in user.properties file which located under /bin folder of installed JMeter ·  ...

Server failed to start: java.rmi.server.ExportException in JMeter

   Server failed to start: java.rmi.server.ExportException in JMeter Whenever you are trying to start Jmeter.server.bat file from the bin folder, you would be having below error. ->Server failed to start: java.rmi.server.ExportException: Listen failed on port: 0; nested exception is:         java.io.FileNotFoundException: rmi_keystore.jks (The system cannot find the file specified) An error occurred: Listen failed on port: 0; nested exception is:         java.io.FileNotFoundException: rmi_keystore.jks (The system cannot find the file specified) errorlevel=1 ->Server failed to start: java.rmi.server.ExportException: Listen failed on port: 0; nested exception is:         java.io.IOException: java.security.UnrecoverableKeyException: Cannot rec over key An error occurred: Listen failed on port: 0; nested exception is: ...

Generate HTML reports for JMeter

                                           Generate HTML reports for JMeter Using ANT  Generate HTML reports for JMeter we can use Apache ant (JMeter apache) Installation steps: Step 1 : Download Apache Ant   from   here : https://ant.apache.org/bindownload.cgi Step 2 : Copy ant-jmeter-xxx from C:\JEMETER\apache-jmeter-3.2\apache-jmeter-3.2\extras   to C:\apache-ant-1.9.14\lib Step 3 : Install Ant and setup ANT_HOME : D:\apache-ant-1.9.14 in user variables of Environment Variables. Step 4 : Update path in System variable with ;D:\apache-ant-1.9.14\bin. Note: To check whether have installed Ant properly or not. -Just go to command prompt and type Ant -version. - Ant version will display Step 6 : Now open  build.xml present ...