Jmeter(Unable to run Jmeter in Ubuntu Amazon Instance) - amazon-ec2

While running Jmeter in Ubuntu Amazon Instance, I am getting the following error--
ubuntu#ip-172-31-22-219:~/Jmeter/apache-jmeter-2.9/bin$ jmeter
[warning] /usr/bin/jmeter: Unable to locate commons-net in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate geronimo-activation-1.1-spec in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate geronimo-javamail-1.4-provider in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate jboss-j2ee in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate jdom1 in /usr/share/java
[warning] /usr/bin/jmeter: No JAVA_CMD set for run_java, falling back to JAVA_CMD = java
java.lang.Throwable: Could not access /usr/share/jmeter/lib/junit
at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:96)
An error occurred: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
I don't know where exactly the problem is . Can any one please help?
Thanks,
Vimal

Seems like you are trying to start the GUI version of JMeter and not the NON GUI version.
If you want to run JMeter on the commandline, you can take a look at this page: http://developer.amd.com/community/blog/using-apache-jmeter-in-non-gui-mode/

jmeter -n -t MyTestPlan.jmx
-n ensures it runs in non-GUI mode.
You should see something like -
Created the tree successfully using Post Request.jmx
Starting the test # Mon Jun 02 16:10:44 IST 2014 (1401705644820)
Waiting for possible shutdown message on port 4445
Tidying up ... # Mon Jun 02 16:10:47 IST 2014 (1401705647509)
... end of run

Related

Issue installing openwhisk with incubator-openwhisk-devtools

I have a blocking issue installing openwhisk with docker
I typed make quick-start right after a git pull of the project incubator-openwhisk-devtools. My OS is Fedora 29, docker version is 18.09.0, docker-compose version is 1.22.0. JDk 8 Oracle.
I get the following error:
[...]
adding the function to whisk ...
ok: created action hello
invoking the function ...
error: Unable to invoke action 'hello': The server is currently unavailable (because it is overloaded or down for maintenance). (code ciOZDS8VySDyVuETF14n8QqB9wifUboT)
[...]
[ERROR] [#tid_sid_unknown] [Invoker] failed to ping the controller: org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for health-0: 30069 ms has passed since batch creation plus linger time
[ERROR] [#tid_sid_unknown] [KafkaProducerConnector] sending message on topic 'health' failed: Expiring 1 record(s) for health-0: 30009 ms has passed since batch creation plus linger time
Please note that controller-local-logs.log is never created.
If I issue a touch controller-local-logs.log in the right directory the log file is always empty after I try to issue make quick-start again.
http://localhost:8888/ping gives me the right answer: pong.
http://localhost:9222 is not reacheable.
Where am I wrong?
Thank you in advance

Unable to test jenkins plugin class jenkins.plugins.slack.SlackNotifier is missing its descriptor

I make fork from https://github.com/jenkinsci/slack-plugin after add feature I wanna test it, so in intellij idea console i write:
mvn install
And after
mvn hpi:run -Djetty.port=8092
In console i have only information about problem with credentials:
Could not initialize class com.cloudbees.plugins.credentials.SystemCredentialsProvider$UserFa
cingAction
But jenkins start. When i try to make build with enable plugin in console I got error:
mar 13, 2018 3:59:31 PM hudson.model.listeners.RunListener report
WARNING: RunListener failed
java.lang.AssertionError: class jenkins.plugins.slack.SlackNotifier is missing its descriptor
at jenkins.model.Jenkins.getDescriptorOrDie(Jenkins.java:1184)
at hudson.tasks.Publisher.getDescriptor(Publisher.java:122)
at hudson.tasks.Notifier.getDescriptor(Notifier.java:51)
at jenkins.plugins.slack.SlackNotifier.getDescriptor(SlackNotifier.java:69)
at jenkins.plugins.slack.SlackNotifier.getDescriptor(SlackNotifier.java:40)
at hudson.model.Descriptor.toMap(Descriptor.java:879)
at hudson.util.DescribableList.toMap(DescribableList.java:149)
at jenkins.plugins.slack.SlackListener.getNotifier(SlackListener.java:51)
at jenkins.plugins.slack.SlackListener.onCompleted(SlackListener.java:27)
at jenkins.plugins.slack.SlackListener.onCompleted(SlackListener.java:15)
at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199)
at hudson.model.Run.execute(Run.java:1783)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:381)
I completly dont have idea how i can test it from hpi. Anybody have idea?

Performance Error in NonGUIDriver java.lang.IllegalArgumentException

I have maven project, with the help of which I am trying to execute a jmx file, running JMeter with (jmeter-maven-plugin). I have the following console output
P E R F O R M A N C E T E S T S
[INFO] -------------------------------------------------------
[INFO] Invalid value detected for <postTestPauseInSeconds>. Setting pause to 0...
[INFO]
[INFO]
[INFO] Executing test: ZawyaJmeterTest.jmx
[INFO] Writing log file to: D:\tools\jmeter_examples\Example\jmeter-maven-example\target\jmeter\logs\ZawyaJmeterTest.jmx.log
[INFO] Error in NonGUIDriver java.lang.IllegalArgumentException: Problem loading XML from:'D:\tools\jmeter_examples\Example\jmeter-maven-example\target\jmeter\testFiles\ZawyaJmeterTest.jmx', missing class com.thoughtworks.xstream.converters.ConversionException: No field 'sentBytes' found in class 'org.apache.jmeter.samplers.SampleSaveConfiguration' : No field 'sentBytes' found in class 'org.apache.jmeter.samplers.SampleSaveConfiguration'
I thought in order to fix the issue org.apache.jmeter.samplers.SampleSaveConfiguration I tried to add SampleSaveConfiguration class in dependency
<dependency>
<groupId>org.apache.jmeter</groupId>
<artifactId>ApacheJMeter_core</artifactId>
<version>3.1</version>
</dependency>
But It did not helped in fact. Than I looked for problem No field 'sentBytes' found in class 'org.apache.jmeter.samplers.SampleSaveConfiguration', but in class SampleSaveConfiguration I found field private boolean sentBytes;
I do not know in what way search such issue.
When running JMeter test locally it is fine -
d:\tools\jmeter_examples\Example\jmeter-maven-example>jmeter -n -t D:\tools\jmeter_examples\Example\jmeter-maven-example\src\test\jmeter\ZawyaJmeterTest.jmx -l D:\tools\jmeter_examples\Example\jmeter-maven-example\target\jmeter\results\ZawyaJmeterTest.jtl
Writing log file to: d:\tools\jmeter_examples\Example\jmeter-maven-example\jmeter.log
Created the tree successfully using D:\tools\jmeter_examples\Example\jmeter-maven-example\src\test\jmeter\ZawyaJmeterTest.jmx
Starting the test # Wed Nov 30 17:26:53 EET 2016 (1480519613563)
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
Tidying up ... # Wed Nov 30 17:27:07 EET 2016 (1480519627819)
... end of run
Does anybody faced such issue? Or recommend some ways of the decision, please!!!
It seems that current version of jmeter-maven-plugin (2.0.3) lags a bit behind the JMeter versions (current is 3.1).
I had absolutely the same exception when tried to run my 3.1-versioned jmx. But, when I've recreated the jmx with JMeter GUI of version 2.13, it worked well with jmeter-maven-plugin of version 2.0.3.
Probably it is worth to downgrade your working version of JMeter.
Last version 2.6.0 of jmeter-maven-plugin now support last version of JMeter 3.3 and is now maintained by 2 persons among which one committer of Apache JMeter project so it now tightly follows JMeter releases.
See this on how to configure it:
https://wiki.apache.org/jmeter/JMeterMavenPlugin
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Basic-Configuration
All your issues should be fixed.

Sonar - Fail to request server version | HTTP Status 404 /

With each run done by console or by Jenkins throws me the following error:
SonarQube Runner 2.4
Java 1.8.0_51 Oracle Corporation (32-bit)
Linux 2.6.32-504.30.3.el6.i686 i386
INFO: Runner configuration file: /usr/local/sonar-runner/conf/sonar-runner.properties
INFO: Project configuration file: /opt/apps/php-sonar-runner/sonar-project.properties
INFO: Default locale: "es_ES", source code encoding: "UTF-8"
INFO: Work directory: /opt/apps/php-sonar-runner/./.sonar
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 0.042s
Final Memory: 0M/28M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Fail to request server version
ERROR: Caused by: Status returned by url : 'http://xxx.xxx.xx.xxx:9000/api/server/version' is invalid : 404
ERROR:
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
Open the URL 'http://xxx.xxx.xx.xxx:9000/api/server/version' in a browser, see if it gives you a 404 error. If so, you need to find the right path to Sonar root on the remote server, maybe 'http://xxx.xxx.xx.xxx:9000/sonar/'?
When you have the full URL of Sonar, update the sonar.host.url property in your pom accordingly. See full documentation for more details.
Check the value of sonar.web.context = /myPath maybe you have some path and you configure other path in your url at your jenkis, tfs, etc. That is the reason you get an 404 error.
In your example you should not have that value configurated or without a value.
'http://xxx.xxx.xx.xxx:9000/myPath/api/server/version
In your sonar-runner.properties file
define #--- Default SonarQube sever as give below
sonar.host.url=http://localhost:9000/sonar
Also cross check in sonar.properties file i.e
sonar.web.port=9000
sonar.web.host=127.0.0.1
sonar.web.context=/sonar

karaf 3.0.1 not starting up

I'm trying to start karaf 3.0.1 in a solaris box (without internet) but getting the following error:
karaf: Ignoring predefined value for KARAF_HOME
Could not resolve mvn:org.eclipse/org.eclipse.osgi/3.8.2.v20130124-134944
and in karaf.log:
Jun 30, 2014 12:21:09 PM org.apache.karaf.main.Main main
SEVERE: Could not launch framework
java.lang.RuntimeException: Could not resolve mvn:org.eclipse/org.eclipse.osgi/3.8.2.v20130124-134944
at org.apache.karaf.main.util.SimpleMavenResolver.resolve(SimpleMavenResolver.java:59)
at org.apache.karaf.main.Main.createClassLoader(Main.java:315)
at org.apache.karaf.main.Main.launch(Main.java:234)
at org.apache.karaf.main.Main.main(Main.java:171)
the bundles are well in place (system folder) and the org.ops4j.pax.url.mvn.cfg file states:
org.ops4j.pax.url.mvn.repositories=\
file:${karaf.home}/${karaf.default.repository}#id=system.repository, \
file:${karaf.data}/kar#id=kar.repository#multi\
http://repo1.maven.org/maven2#id=central,\
http://repository.springsource.com/maven/bundles/release#id=spring.ebr.release,\
http://repository.springsource.com/maven/bundles/external#id=spring.ebr.external
I've tried running the framework using the three methods (server, service, client) but nothing seems to be working.
my environment is:
KARAF_BASE=/export/home/mehdi/bin/karaf
KARAF_HOME=/export/home/mehdi/bin/karaf
KARAF_ETC=/export/home/mehdi/bin/karaf/etc
KARAF_DATA=/export/home/mehdi/bin/karaf/data
JAVA_HOME=/opt/temp/jre1.7.0_13
I googled a bit and found a workaround which says to add -h 127.0.0.1 to the client script, but still nothing.

Resources