Sonam Chauhan | 2 May 2011 05:54
Picon

Re: Bulk JMX reconversion to 2.4 format

Thanks Deepak. The error is an NPE (shown below) in
'org.apache.jmeter.samplers.SampleSaveConfiguration'. This is thrown when
calling this statement:

    HashTree tree = SaveService.loadTree(reader);

If this cannot be solved here, I'll try JMeter-dev.

Regards
Sonam

==============================================
# Compile ConvertJMX.java.
# Previously setup  dummy directory hierarchy for saveservice.properties
# (as setting JMETER_HOME did not work)
#
$ javac -cp "lib/*;lib/ext/*"  ConvertJMX.java

# Run with 'a.jmx'  being the JMX file to convert.
#
$ java -cp "lib/*;lib/ext/*;."  ConvertJMX a.jmx

Found file a.jmx
Attempting to load tree for a.jmx
INFO    2011-05-02 13:41:39.550 [jmeter.s] (): Testplan (JMX) version: 2.2.
Testlog (JTL) version: 2.2
INFO    2011-05-02 13:41:39.581 [jmeter.s] (): Using SaveService properties
file encoding ISO-8859-1
INFO    2011-05-02 13:41:39.583 [jmeter.s] (): Using SaveService properties
file version 1.2
(Continue reading)

Rajiv Nanduani | 2 May 2011 09:05
Picon
Gravatar

Jmeter run on Linux using putty

Hi All,

We have provided a linux server to run JMETER. First I have to install the jmeter on linux machine , to access the linux server we can connect through Putty/WinSCP only becoz linux server is placed on remote location. Some how i have installed the Jmeter under under data/apps/jmeter/jakarta-jmeter-2.4 folder .  but i am not sure how it will run. becoz as per jmter guide line JVM 1.5 or above should be installed on linux.
The problem is how would i know that JVM is already installed or not if yes where i have to check. I am new to linux. or if not where i hav to install the JVM or set the path variable like in windows JMETER_HOME etc..

Apart from that when i am run the jmeter.sh file in linux using putty. there is an error is showing.
(.:20929): Gtk-WARNING **: cannot open display: please refer to attachment

Note : I have all rights

-rwxr-xr-x 1 rajiv appuser  1372 Apr 28  2011 jmeter.sh


Is it possible to run jmeter from putty  means jmeter GUI will display when i  run jmeter.sh ffile from putty window.

Waiting for reply

--

Regards

RAJIV KUMAR NANDVANI

http://rajivkumarnandvani.wordpress.com
http://testeverythingqtp.blogspot.com/





---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe <at> jakarta.apache.org
For additional commands, e-mail: jmeter-user-help <at> jakarta.apache.org
Barrie Treloar | 2 May 2011 09:14
Picon
Gravatar

Re: Bulk JMX reconversion to 2.4 format

On Mon, May 2, 2011 at 1:24 PM, Sonam Chauhan <sonamc <at> gmail.com> wrote:
> ==============================================
> # Compile ConvertJMX.java.
> # Previously setup  dummy directory hierarchy for saveservice.properties
> # (as setting JMETER_HOME did not work)
> #
> $ javac -cp "lib/*;lib/ext/*"  ConvertJMX.java
>
>
> # Run with 'a.jmx'  being the JMX file to convert.
> #
> $ java -cp "lib/*;lib/ext/*;."  ConvertJMX a.jmx
[del]
> Exception in thread "main" java.lang.ExceptionInInitializerError
>        at java.lang.Class.forName0(Native Method)
>        at java.lang.Class.forName(Class.java:169)
>        at

Are you sure the classpath is correct?
I'm guessing that you are getting errors because the a.jmx test case
contains references to classes it can't load.

Your a.jmx is stored in ${JMETER_HOME}?
Felix Frank | 2 May 2011 09:53
Picon

Re: Redirects and embedded objects

On 04/30/2011 04:21 PM, Doxa wrote:
> Hi,
> 
> To optimize my JMeter script I have played with two options in the HTTP
> sampler:
> (1) Retrieve all embedded resources from HTML files.
> I expect that with this option my script will be more independent from
> future changes made on some website resources. And I do not have to add the
> HTTP samplers to retrieve the resources, which makes my JMeter script a lot
> shorter.

Hi,

adding static resources as Samplers is discouraged, anyway:
http://jakarta.apache.org/jmeter/usermanual/best-practices.html#lean_mean

So you're on the right track here.

> (2) Follow redirects.
> This will limit the number of HTTP samplers.
> 
> With the second option I get an error message (exceeded maximum number of
> redirects: 5). I know how to increase the maximum number of redirects, but I
> not sure whether this is the right way to handle this. 
> 
>  Please let me know what you think about my thoughts. And if you have other
> or better ideas how to optimize Jmeter scripts, please share them with us.

If your application requires more than 5 redirects of the same requests,
you should allow that by all means.

This could also mean that there's something funny going on, so you I
suggest you carefully check whether Jmeter is doing the right thing.

Regards,
Felix
rkedari | 2 May 2011 15:24
Picon

Re: Jmeter run on Linux using putty

Hi,

You will require JDK version for Linux and you can verify JAVA/JVM by 'java
-version' command.
You can not run JMeter in GUI mode from putty. If your Linux is supporting
then you can access it using VPN and run JMeter in GUI mode.
You can run JMeter in NON-GUI mode from putty to execute the test plan.

regards,
rkedari

--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-run-on-Linux-using-putty-tp4364104p4364687.html
Sent from the JMeter - User mailing list archive at Nabble.com.
Felix Frank | 2 May 2011 15:33
Picon

Re: Jmeter run on Linux using putty

On 05/02/2011 03:24 PM, rkedari wrote:
> Hi,
> 
> You will require JDK version for Linux and you can verify JAVA/JVM by 'java
> -version' command.
> You can not run JMeter in GUI mode from putty. If your Linux is supporting
> then you can access it using VPN and run JMeter in GUI mode.
> You can run JMeter in NON-GUI mode from putty to execute the test plan.

Well, technically, you *can* run the GUI using putty, but it's not trivial.

You need to install Xming (on your Windows desktop) and configure X11
forwarding in Putty.
It's not rocket science, but it's a lot less straight forward than it
should be!

Cheers,
Felix
Rajiv Nanduani | 2 May 2011 16:55
Picon
Gravatar

Re: Jmeter run on Linux using putty

thanks for the reply.but still I am waiting the answer of

The problem is how would i know that *JVM* is already installed or not if
yes where i have *to* check. I am new *to* *linux*. or if not where i hav *
to* install the *JVM* or set the path variable like in windows
*JMETER_HOME*etc..

Currently it showing java version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-48)

Copyright (C) 2006 Free Software Foundation, Inc.

is prob of java version or we need more than java 1.5

On Mon, May 2, 2011 at 9:33 AM, Felix Frank <ff <at> mpexnet.de> wrote:

> On 05/02/2011 03:24 PM, rkedari wrote:
> > Hi,
> >
> > You will require JDK version for Linux and you can verify JAVA/JVM by
> 'java
> > -version' command.
> > You can not run JMeter in GUI mode from putty. If your Linux is
> supporting
> > then you can access it using VPN and run JMeter in GUI mode.
> > You can run JMeter in NON-GUI mode from putty to execute the test plan.
>
> Well, technically, you *can* run the GUI using putty, but it's not trivial.
>
> You need to install Xming (on your Windows desktop) and configure X11
> forwarding in Putty.
> It's not rocket science, but it's a lot less straight forward than it
> should be!
>
> Cheers,
> Felix
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe <at> jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help <at> jakarta.apache.org
>
>

--

-- 

Regards

*RAJIV <http://testeverythingrajiv.com/>
KUMAR<http://rajivkumarnandvani.wordpress.com/>
NANDVANI <http://testeverythingqtp.blogspot.com>*

http://rajivkumarnandvani.wordpress.com
http://testeverythingqtp.blogspot.com/
Felix Frank | 2 May 2011 17:05
Picon

Re: Jmeter run on Linux using putty

On 05/02/2011 04:55 PM, Rajiv Nanduani wrote:
> thanks for the reply.but still I am waiting the answer of
> 
> The problem is how would i know that *JVM* is already installed or not if
> yes where i have *to* check. I am new *to* *linux*. or if not where i hav *
> to* install the *JVM* or set the path variable like in windows
> *JMETER_HOME*etc..
> 
> Currently it showing java version
> java version "1.4.2"
> gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-48)
> 
> Copyright (C) 2006 Free Software Foundation, Inc.
> 
> is prob of java version or we need more than java 1.5

Uhm..what's this? OpenJDK or anything?

No good. You should download the Sun JDK.

Simple steps:
1. Download the java bin-file from Oracle
2. Extract in your home on the Linux machine
3. Add the bin dir from the extracted Java to your path and run "java"
   e.g. run 'PATH=$PATH:~/jdk1.6.0_24/bin java -version'

You can run Jmeter using a similar syntax then
PATH=$PATH:~/jdk1.6.0_24/bin /path/to/jmeter

If you can use Debian instead of RedHat, you can just install the
sun-java6-jre package instead. Maybe RedHat has something like that?

HTH,
Felix
Bruce Ide | 2 May 2011 17:12
Picon

Re: Jmeter run on Linux using putty

Do you have to do that? Doesn't your company to have an IT department to
take care of that sort of thing? It shouldn't be a tester's job to install
things on a remote system.

Looks like you have JVM 1.4.2 installed. It's been a while since I've used
Red Hat, but if I recall correctly their RPM package for java was
essentially just a wrapper around the Sun binary java package. You could
probably just download the Java binary package from Sun, install it
somewhere and use that.

Java doesn't need anything special to run. All you need to do is make sure
that the environment variables JAVA_HOME, PATH and CLASSPATH are set to
point to your install of Java. Since you already have a JVM on your system,
you'll want to make sure that your PATH is set up so that your JVM is found
instead of the system one. Path is searched in the order the directories
appear in the path, so just put your JVM's location at the start of it.

Don't forget to document all this, especially if your company has any sort
of business process they have to conform with.

--

-- 
Bruce Ide
FlyingRhenquest <at> gmail.com
rkedari | 2 May 2011 17:15
Picon

Re: Jmeter run on Linux using putty

yes.. with JDK1.6 it is working for me. download new JDK for linux.

regards,
rkedari

--
View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-run-on-Linux-using-putty-tp4364104p4364940.html
Sent from the JMeter - User mailing list archive at Nabble.com.

Gmane