Jmeter run on Linux using putty

classic Classic list List threaded Threaded
29 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Jmeter run on Linux using putty

rajivkumarnandvani
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: [hidden email]
For additional commands, e-mail: [hidden email]
rajivkumarnandvani
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

rkedari
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

Felix Frank-2
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

rajivkumarnandvani
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 <[hidden email]> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--

Regards

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

http://rajivkumarnandvani.wordpress.com
http://testeverythingqtp.blogspot.com/
rajivkumarnandvani
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

Felix Frank-2
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

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

Bruce Ide
In reply to this post by rajivkumarnandvani
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
[hidden email]
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

rkedari
In reply to this post by Felix Frank-2
yes.. with JDK1.6 it is working for me. download new JDK for linux.

regards,
rkedari
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

AdrianS
Download java JRE - all files & keep directory structure, place it in the
location of your choosing and then edit the "jmeter" file located in
jmeter's bin directory. At the end of the file you will have the command
line used to run jmeter something like [java <argument> -jar
AparcheJmeter.jar <arguments>]. If you replace java with the correct
location of your java copy (will have to look like
this<java_folderlocation>\bin\java), you don't need to add java to classpath
and jmeter will run smoothly. For your other inqueries, i would recommend
you edit scripts using a SVN configuration that is deployed on the remote
machine or just use WinSCP to push your scripts there, but edit them
locally. Any other solution seems an overkill.

On Mon, May 2, 2011 at 6:15 PM, rkedari <[hidden email]> wrote:

> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

rajivkumarnandvani
Thanks all for the reply.

I have installed java 1.6. I tried with Xming

1.       Install Xming (http://www.straightrunning.com/XmingNotes/)

2.       Enable the X11 forwarding in putty.

But while running the jmeter.sh file from putty i am getting following error

An error occurred: Can't connect to X11 window server using 'localhost:10.0'
as the value of the DISPLAY variable.



On Mon, May 2, 2011 at 3:15 PM, Adrian Speteanu <[hidden email]> wrote:

> Download java JRE - all files & keep directory structure, place it in the
> location of your choosing and then edit the "jmeter" file located in
> jmeter's bin directory. At the end of the file you will have the command
> line used to run jmeter something like [java <argument> -jar
> AparcheJmeter.jar <arguments>]. If you replace java with the correct
> location of your java copy (will have to look like
> this<java_folderlocation>\bin\java), you don't need to add java to
> classpath
> and jmeter will run smoothly. For your other inqueries, i would recommend
> you edit scripts using a SVN configuration that is deployed on the remote
> machine or just use WinSCP to push your scripts there, but edit them
> locally. Any other solution seems an overkill.
>
> On Mon, May 2, 2011 at 6:15 PM, rkedari <[hidden email]> wrote:
>
> > 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.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>



--

Regards

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

http://rajivkumarnandvani.wordpress.com
http://testeverythingqtp.blogspot.com/
rajivkumarnandvani
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

Felix Frank-2
On 05/03/2011 02:54 PM, Rajiv Nanduani wrote:
> Thanks all for the reply.
>
> I have installed java 1.6. I tried with Xming
>
> 1.       Install Xming (http://www.straightrunning.com/XmingNotes/)

Is it running? :-)

> 2.       Enable the X11 forwarding in putty.
>
> But while running the jmeter.sh file from putty i am getting following error
>
> An error occurred: Can't connect to X11 window server using 'localhost:10.0'
> as the value of the DISPLAY variable.

I believe the X11 forwarding is not yet working properly.

Is "xauth" installed on the remote system? If not, install it, then log
off and on again.

Otherwise, you should enable Putty debug logging and look for errors
related to X and forwarding.

HTH,
Felix

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

rajivkumarnandvani
On Tue, May 3, 2011 at 8:57 AM, Felix Frank <[hidden email]> wrote:

> On 05/03/2011 02:54 PM, Rajiv Nanduani wrote:
> > Thanks all for the reply.
> >
> > I have installed java 1.6. I tried with Xming
> >
> > 1.       Install Xming (http://www.straightrunning.com/XmingNotes/)
>
> Is it running? :-)
>
yes it is running :)

>
> > 2.       Enable the X11 forwarding in putty.
> >
> > But while running the jmeter.sh file from putty i am getting following
> error
> >
> > An error occurred: Can't connect to X11 window server using
> 'localhost:10.0'
> > as the value of the DISPLAY variable.
>
> I believe the X11 forwarding is not yet working properly.
>
> Is "xauth" installed on the remote system? If not, install it, then log
> off and on again.
>


yes i have already done this

In ssh_config file


ForwardX11 yes

Host *
        XAuthLocation /usr/bin/xauth
        GSSAPIAuthentication yes


X11Forwarding yes



> Otherwise, you should enable Putty debug logging and look for errors
> related to X and forwarding.
>
> HTH,
> Felix
>
 putty log

Using username "rajiv".
rajiv@10.6.9.21's password:
Last login: Sat Feb 19 07:55:10 2011 from 10.193.68.125

0;rajiv@MLB_LOADTEST01:~rajiv@MLB_LOADTEST01 ~]$ cd
data/apps/jmeter//data/apps/jmeter/CCCCCCCCCCCCCCCCCjakarta-jmeter-2.4/
0;rajiv@MLB_LOADTEST01
:/data/apps/jmeter/jakarta-jmeter-2.4[rajiv@MLB_LOADTEST01jakarta-jmeter-2.4]$
cd bin
0;rajiv@MLB_LOADTEST01
:/data/apps/jmeter/jakarta-jmeter-2.4/bin[rajiv@MLB_LOADTEST01 bin]$ sh
jmeter.sh
An error occurred: Can't connect to X11 window server using 'localhost:10.0'
as the value of the DISPLAY variable.
0;rajiv@MLB_LOADTEST01
:/data/apps/jmeter/jakarta-jmeter-2.4/bin[rajiv@MLB_LOADTEST01 bin]$

>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--

Regards

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

http://rajivkumarnandvani.wordpress.com
http://testeverythingqtp.blogspot.com/
rajivkumarnandvani
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

Felix Frank-2
>  putty log
>
> Using username "rajiv".
> rajiv@10.6.9.21's password:
> Last login: Sat Feb 19 07:55:10 2011 from 10.193.68.125

The following is a transcript of your SSH session. What you need is
debug output from the SSH client itself (as if you'd use "ssh -vv" from
a *NIX console).

Putty has an option to log debug info to a file, I believe.

> 0;rajiv@MLB_LOADTEST01:~rajiv@MLB_LOADTEST01 ~]$ cd
> data/apps/jmeter//data/apps/jmeter/CCCCCCCCCCCCCCCCCjakarta-jmeter-2.4/
> 0;rajiv@MLB_LOADTEST01
> :/data/apps/jmeter/jakarta-jmeter-2.4[rajiv@MLB_LOADTEST01jakarta-jmeter-2.4]$
> cd bin
> 0;rajiv@MLB_LOADTEST01
> :/data/apps/jmeter/jakarta-jmeter-2.4/bin[rajiv@MLB_LOADTEST01 bin]$ sh
> jmeter.sh
> An error occurred: Can't connect to X11 window server using 'localhost:10.0'
> as the value of the DISPLAY variable.
> 0;rajiv@MLB_LOADTEST01
> :/data/apps/jmeter/jakarta-jmeter-2.4/bin[rajiv@MLB_LOADTEST01 bin]$

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

rajivkumarnandvani
Felix
i used putty log as shown in attached file


Hi i have also  tried to run jmeter in nongui mode as well but i am getting following error

2011/02/19 08:44:10 ERROR - jmeter.JMeter:  java.lang.NullPointerException
   at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:95)
   at org.apache.jmeter.JMeter.runNonGui(JMeter.java:725)
   at org.apache.jmeter.JMeter.startNonGui(JMeter.java:702)
   at org.apache.jmeter.JMeter.start(JMeter.java:353)
   at java.lang.reflect.Method.invoke(libgcj.so.7rh)
   at org.apache.jmeter.NewDriver.main(NewDriver.java:207)

Flex

On Tue, May 3, 2011 at 10:03 AM, Felix Frank <[hidden email]> wrote:
>  putty log
>
> Using username "rajiv".
> [hidden email]'s password:
> Last login: Sat Feb 19 07:55:10 2011 from 10.193.68.125

The following is a transcript of your SSH session. What you need is
debug output from the SSH client itself (as if you'd use "ssh -vv" from
a *NIX console).

Putty has an option to log debug info to a file, I believe.

> 0;rajiv@MLB_LOADTEST01:~rajiv@MLB_LOADTEST01 ~]$ cd
> data/apps/jmeter//data/apps/jmeter/CCCCCCCCCCCCCCCCCjakarta-jmeter-2.4/
> 0;rajiv@MLB_LOADTEST01
> :/data/apps/jmeter/jakarta-jmeter-2.4[rajiv@MLB_LOADTEST01jakarta-jmeter-2.4]$
> cd bin
> 0;rajiv@MLB_LOADTEST01
> :/data/apps/jmeter/jakarta-jmeter-2.4/bin[rajiv@MLB_LOADTEST01 bin]$ sh
> jmeter.sh
> An error occurred: Can't connect to X11 window server using 'localhost:10.0'
> as the value of the DISPLAY variable.
> 0;rajiv@MLB_LOADTEST01
> :/data/apps/jmeter/jakarta-jmeter-2.4/bin[rajiv@MLB_LOADTEST01 bin]$

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--

Regards

RAJIV KUMAR NANDVANI

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






---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
rajivkumarnandvani
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

Felix Frank-2
On 05/03/2011 04:15 PM, Rajiv Nanduani wrote:
> Felix
> i used putty log as shown in attached file

Attachment doesn't seem to work on-list. Try off-list.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

sebb-2-2
In reply to this post by rajivkumarnandvani
On 3 May 2011 15:15, Rajiv Nanduani <[hidden email]> wrote:

> Felix
> i used putty log as shown in attached file
>
>
> Hi i have also  tried to run jmeter in nongui mode as well but i am getting
> following error
>
> 2011/02/19 08:44:10 ERROR - jmeter.JMeter:  java.lang.NullPointerException
>    at
> org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:95)
>    at org.apache.jmeter.JMeter.runNonGui(JMeter.java:725)
>    at org.apache.jmeter.JMeter.startNonGui(JMeter.java:702)
>    at org.apache.jmeter.JMeter.start(JMeter.java:353)
>    at java.lang.reflect.Method.invoke(libgcj.so.7rh)
>    at org.apache.jmeter.NewDriver.main(NewDriver.java:207)

What JVM are you using?

Not all JVMs are capable of running JMeter.

> Flex
>
> On Tue, May 3, 2011 at 10:03 AM, Felix Frank <[hidden email]> wrote:
>>
>> >  putty log
>> >
>> > Using username "rajiv".
>> > rajiv@10.6.9.21's password:
>> > Last login: Sat Feb 19 07:55:10 2011 from 10.193.68.125
>>
>> The following is a transcript of your SSH session. What you need is
>> debug output from the SSH client itself (as if you'd use "ssh -vv" from
>> a *NIX console).
>>
>> Putty has an option to log debug info to a file, I believe.
>>
>> > 0;rajiv@MLB_LOADTEST01:~rajiv@MLB_LOADTEST01 ~]$ cd
>> > data/apps/jmeter//data/apps/jmeter/CCCCCCCCCCCCCCCCCjakarta-jmeter-2.4/
>> > 0;rajiv@MLB_LOADTEST01
>> >
>> > :/data/apps/jmeter/jakarta-jmeter-2.4[rajiv@MLB_LOADTEST01jakarta-jmeter-2.4]$
>> > cd bin
>> > 0;rajiv@MLB_LOADTEST01
>> > :/data/apps/jmeter/jakarta-jmeter-2.4/bin[rajiv@MLB_LOADTEST01 bin]$ sh
>> > jmeter.sh
>> > An error occurred: Can't connect to X11 window server using
>> > 'localhost:10.0'
>> > as the value of the DISPLAY variable.
>> > 0;rajiv@MLB_LOADTEST01
>> > :/data/apps/jmeter/jakarta-jmeter-2.4/bin[rajiv@MLB_LOADTEST01 bin]$
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
>
>
> --
>
> Regards
>
> RAJIV KUMAR NANDVANI
>
> http://rajivkumarnandvani.wordpress.com
> http://testeverythingqtp.blogspot.com/
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

rajivkumarnandvani
putty.PNG
I am using JDK 1.6
rajivkumarnandvani
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

sebb-2-2
There are lots of providers of JDKs (and lots of versions of JDK 1.6
from each provider).

What does

java -version

show?

On 3 May 2011 17:26, rajivkumarnandvani <[hidden email]> wrote:

> http://jmeter.512774.n5.nabble.com/file/n4367681/putty.PNG putty.PNG
> I am using JDK 1.6
>
> -----
>
> rajivkumarnandvani
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Jmeter-run-on-Linux-using-putty-tp4364104p4367681.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

rajivkumarnandvani
java.version=1.6.0_25

here is the log of jmeter


rajiv@MLB_LOADTEST01 bin]$ sh jmeter.sh

An error occurred: Can't connect to X11 window server using 'localhost:10.0'
as the value of the DISPLAY variable.

[rajiv@MLB_LOADTEST01 bin]$ sh jmeter.sh

An error occurred: Can't connect to X11 window server using 'localhost:10.0'
as the value of the DISPLAY variable.

[rajiv@MLB_LOADTEST01 bin]$ vi jmeter.log

2011/02/19 07:08:56 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US

2011/02/19 07:08:56 INFO  - jmeter.JMeter: Loading user properties from:
/data/apps/jmeter/jakarta-jmeter-2.4/bin/user.properties

2011/02/19 07:08:56 INFO  - jmeter.JMeter: Loading system properties from:
/data/apps/jmeter/jakarta-jmeter-2.4/bin/system.properties

2011/02/19 07:08:56 INFO  - jmeter.JMeter: Copyright (c) 1998-2010 The
Apache Software Foundation

2011/02/19 07:08:56 INFO  - jmeter.JMeter: Version 2.4 r961953

2011/02/19 07:08:56 INFO  - jmeter.JMeter: java.version=1.6.0_25

2011/02/19 07:08:56 INFO  - jmeter.JMeter: java.vm.name=Java HotSpot(TM)
Server VM

2011/02/19 07:08:56 INFO  - jmeter.JMeter: os.name=Linux

2011/02/19 07:08:56 INFO  - jmeter.JMeter: os.arch=i386

2011/02/19 07:08:56 INFO  - jmeter.JMeter: os.version=2.6.18-186.el5PAE

2011/02/19 07:08:56 INFO  - jmeter.JMeter: file.encoding=UTF-8

2011/02/19 07:08:56 INFO  - jmeter.JMeter: Default Locale=English (United
States)

2011/02/19 07:08:56 INFO  - jmeter.JMeter: JMeter  Locale=English (United
States)

2011/02/19 07:08:56 INFO  - jmeter.JMeter:
JMeterHome=/data/apps/jmeter/jakarta-jmeter-2.4

2011/02/19 07:08:56 INFO  - jmeter.JMeter: user.dir
=/data/apps/jmeter/jakarta-jmeter-2.4/bin

2011/02/19 07:08:56 INFO  - jmeter.JMeter: PWD
=/data/apps/jmeter/jakarta-jmeter-2.4/bin

2011/02/19 07:08:56 INFO  - jmeter.JMeter: IP: 10.6.9.21 Name:
MLB_LOADTEST01 FullName: MLB_LOADTEST01

2011/02/19 07:08:56 INFO  - jmeter.JMeter: Loaded icon properties from
org/apache/jmeter/images/icon.properties

2011/02/19 07:09:02 FATAL - jmeter.JMeter: An error occurred:
java.lang.InternalError: Can't connect to X11 window server using
'localhost:10.0' as the value of the DISPLAY variable.

        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

        at
sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)

        at
sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)

        at java.security.AccessController.doPrivileged(Native Method)

        at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)

        at java.lang.Class.forName0(Native Method)




On Tue, May 3, 2011 at 3:18 PM, sebb <[hidden email]> wrote:

> There are lots of providers of JDKs (and lots of versions of JDK 1.6
> from each provider).
>
> What does
>
> java -version
>
> show?
>
> On 3 May 2011 17:26, rajivkumarnandvani <[hidden email]>
> wrote:
> > http://jmeter.512774.n5.nabble.com/file/n4367681/putty.PNG putty.PNG
> > I am using JDK 1.6
> >
> > -----
> >
> > rajivkumarnandvani
> > --
> > View this message in context:
> http://jmeter.512774.n5.nabble.com/Jmeter-run-on-Linux-using-putty-tp4364104p4367681.html
> > Sent from the JMeter - User mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--

Regards

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

http://rajivkumarnandvani.wordpress.com
http://testeverythingqtp.blogspot.com/
rajivkumarnandvani
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jmeter run on Linux using putty

Milamber
Hello,

1/ Start Xming

2/ Start Putty, on options (left pane): Connection > SSH > X11, check
Enable X11 forwarding, with X display location: localhost:0

3/ Start your SSH session

4/ On your ssh remote session, put this :
DISPLAY=YOUR_IP_WINDOWS:0.0
export DISPLAY

(replace YOUR_IP by the IP of your windows)


5/ Try to launch Jmeter (jmeter.sh)

Milamber




Le 04/05/2011 05:38, Rajiv Nanduani a ecrit :

> java.version=1.6.0_25
>
> here is the log of jmeter
>
>
> rajiv@MLB_LOADTEST01 bin]$ sh jmeter.sh
>
> An error occurred: Can't connect to X11 window server using 'localhost:10.0'
> as the value of the DISPLAY variable.
>
> [rajiv@MLB_LOADTEST01 bin]$ sh jmeter.sh
>
> An error occurred: Can't connect to X11 window server using 'localhost:10.0'
> as the value of the DISPLAY variable.
>
> [rajiv@MLB_LOADTEST01 bin]$ vi jmeter.log
>
> 2011/02/19 07:08:56 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: Loading user properties from:
> /data/apps/jmeter/jakarta-jmeter-2.4/bin/user.properties
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: Loading system properties from:
> /data/apps/jmeter/jakarta-jmeter-2.4/bin/system.properties
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: Copyright (c) 1998-2010 The
> Apache Software Foundation
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: Version 2.4 r961953
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: java.version=1.6.0_25
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: java.vm.name=Java HotSpot(TM)
> Server VM
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: os.name=Linux
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: os.arch=i386
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: os.version=2.6.18-186.el5PAE
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: file.encoding=UTF-8
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: Default Locale=English (United
> States)
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: JMeter  Locale=English (United
> States)
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter:
> JMeterHome=/data/apps/jmeter/jakarta-jmeter-2.4
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: user.dir
> =/data/apps/jmeter/jakarta-jmeter-2.4/bin
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: PWD
> =/data/apps/jmeter/jakarta-jmeter-2.4/bin
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: IP: 10.6.9.21 Name:
> MLB_LOADTEST01 FullName: MLB_LOADTEST01
>
> 2011/02/19 07:08:56 INFO  - jmeter.JMeter: Loaded icon properties from
> org/apache/jmeter/images/icon.properties
>
> 2011/02/19 07:09:02 FATAL - jmeter.JMeter: An error occurred:
> java.lang.InternalError: Can't connect to X11 window server using
> 'localhost:10.0' as the value of the DISPLAY variable.
>
>         at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
>
>         at
> sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
>
>         at
> sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
>
>         at java.security.AccessController.doPrivileged(Native Method)
>
>         at
> sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
>
>         at java.lang.Class.forName0(Native Method)
>
>
>
>
> On Tue, May 3, 2011 at 3:18 PM, sebb <[hidden email]> wrote:
>
>  
>> There are lots of providers of JDKs (and lots of versions of JDK 1.6
>> from each provider).
>>
>> What does
>>
>> java -version
>>
>> show?
>>
>> On 3 May 2011 17:26, rajivkumarnandvani <[hidden email]>
>> wrote:
>>    
>>> http://jmeter.512774.n5.nabble.com/file/n4367681/putty.PNG putty.PNG
>>> I am using JDK 1.6
>>>
>>> -----
>>>
>>> rajivkumarnandvani
>>> --
>>> View this message in context:
>>>      
>> http://jmeter.512774.n5.nabble.com/Jmeter-run-on-Linux-using-putty-tp4364104p4367681.html
>>    
>>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>>      
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>>    
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Re: Jmeter run on Linux using putty

rajivkumarnandvani
Hi milamber thanks for the reply

I tried this but still getting the error. it seems that request from remote  
server is coming to Windows Xming but it is denying refer the log of Xming

Xming log details

DetectUnicodeSupport - Windows XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened  
the display.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the  
display.
winClipboardProc - XOpenDisplay () returned and successfully opened the  
display.
AUDIT: Wed May 04 02:57:01 2011: 1960 C:\Program Files\Xming\Xming.exe:  
client 4 rejected from IP 10.6.9.21

SSH window log details:

[rajiv@MLB_LOADTEST01 ~]$ cd /data/apps/jmeter/jakarta-jmeter-2.4//bin
[rajiv@MLB_LOADTEST01 bin]$ echo $DISPLAY
10.193.68.125:0.0
[rajiv@MLB_LOADTEST01 bin]$ sh jmeter.sh
Xlib: connection to "10.193.68.125:0.0" refused by server
Xlib: No protocol specified

An error occurred: Can't connect to X11 window server  
using '10.193.68.125:0.0' as the value of the DISPLAY variable.


Jmeter Log details:

[rajiv@MLB_LOADTEST01 bin]$ tail -100 jmeter.log
2011/02/20 01:35:57 INFO - jmeter.util.JMeterUtils: Setting Locale to en_US
2011/02/20 01:35:57 INFO - jmeter.JMeter: Loading user properties from:  
/data/apps/jmeter/jakarta-jmeter-2.4/bin/user.properties
2011/02/20 01:35:57 INFO - jmeter.JMeter: Loading system properties from:  
/data/apps/jmeter/jakarta-jmeter-2.4/bin/system.properties
2011/02/20 01:35:57 INFO - jmeter.JMeter: Copyright (c) 1998-2010 The  
Apache Software Foundation
2011/02/20 01:35:57 INFO - jmeter.JMeter: Version 2.4 r961953
2011/02/20 01:35:57 INFO - jmeter.JMeter: java.version=1.6.0_25
2011/02/20 01:35:57 INFO - jmeter.JMeter: java.vm.name=Java HotSpot(TM)  
Server VM
2011/02/20 01:35:57 INFO - jmeter.JMeter: os.name=Linux
2011/02/20 01:35:57 INFO - jmeter.JMeter: os.arch=i386
2011/02/20 01:35:57 INFO - jmeter.JMeter: os.version=2.6.18-186.el5PAE
2011/02/20 01:35:57 INFO - jmeter.JMeter: file.encoding=UTF-8
2011/02/20 01:35:57 INFO - jmeter.JMeter: Default Locale=English (United  
States)
2011/02/20 01:35:57 INFO - jmeter.JMeter: JMeter Locale=English (United  
States)
2011/02/20 01:35:57 INFO - jmeter.JMeter:  
JMeterHome=/data/apps/jmeter/jakarta-jmeter-2.4
2011/02/20 01:35:57 INFO - jmeter.JMeter: user.dir  
=/data/apps/jmeter/jakarta-jmeter-2.4/bin
2011/02/20 01:35:57 INFO - jmeter.JMeter: PWD  
=/data/apps/jmeter/jakarta-jmeter-2.4/bin
2011/02/20 01:35:57 INFO - jmeter.JMeter: IP: 10.6.9.21 Name:  
MLB_LOADTEST01 FullName: MLB_LOADTEST01
2011/02/20 01:35:57 INFO - jmeter.JMeter: Loaded icon properties from  
org/apache/jmeter/images/icon.properties
2011/02/20 01:35:58 FATAL - jmeter.JMeter: An error occurred:  
java.lang.InternalError: Can't connect to X11 window server  
using '10.193.68.125:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at  
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:89)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.Toolkit$2.run(Toolkit.java:834)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)
at javax.swing.ImageIcon.<init>(ImageIcon.java:148)
at javax.swing.ImageIcon.<init>(ImageIcon.java:167)
at  
org.apache.jmeter.plugin.PluginManager.installPlugin(PluginManager.java:61)
at org.apache.jmeter.plugin.PluginManager.install(PluginManager.java:47)
at org.apache.jmeter.JMeter.startGui(JMeter.java:217)
at org.apache.jmeter.JMeter.start(JMeter.java:343)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.jmeter.NewDriver.main(NewDriver.java:207)


On , Milamber <[hidden email]> wrote:
> Hello,



> 1/ Start Xming



> 2/ Start Putty, on options (left pane): Connection > SSH > X11, check

> Enable X11 forwarding, with X display location: localhost:0



> 3/ Start your SSH session



> 4/ On your ssh remote session, put this :

> DISPLAY=YOUR_IP_WINDOWS:0.0

> export DISPLAY



> (replace YOUR_IP by the IP of your windows)





> 5/ Try to launch Jmeter (jmeter.sh)



> Milamber









> Le 04/05/2011 05:38, Rajiv Nanduani a ecrit :

> > java.version=1.6.0_25

> >

> > here is the log of jmeter

> >

> >

> > rajiv@MLB_LOADTEST01 bin]$ sh jmeter.sh

> >

> > An error occurred: Can't connect to X11 window server  
> using 'localhost:10.0'

> > as the value of the DISPLAY variable.

> >

> > [rajiv@MLB_LOADTEST01 bin]$ sh jmeter.sh

> >

> > An error occurred: Can't connect to X11 window server  
> using 'localhost:10.0'

> > as the value of the DISPLAY variable.

> >

> > [rajiv@MLB_LOADTEST01 bin]$ vi jmeter.log

> >

> > 2011/02/19 07:08:56 INFO - jmeter.util.JMeterUtils: Setting Locale to  
> en_US

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: Loading user properties from:

> > /data/apps/jmeter/jakarta-jmeter-2.4/bin/user.properties

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: Loading system properties  
> from:

> > /data/apps/jmeter/jakarta-jmeter-2.4/bin/system.properties

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: Copyright (c) 1998-2010 The

> > Apache Software Foundation

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: Version 2.4 r961953

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: java.version=1.6.0_25

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: java.vm.name=Java HotSpot(TM)

> > Server VM

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: os.name=Linux

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: os.arch=i386

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: os.version=2.6.18-186.el5PAE

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: file.encoding=UTF-8

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: Default Locale=English (United

> > States)

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: JMeter Locale=English (United

> > States)

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter:

> > JMeterHome=/data/apps/jmeter/jakarta-jmeter-2.4

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: user.dir

> > =/data/apps/jmeter/jakarta-jmeter-2.4/bin

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: PWD

> > =/data/apps/jmeter/jakarta-jmeter-2.4/bin

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: IP: 10.6.9.21 Name:

> > MLB_LOADTEST01 FullName: MLB_LOADTEST01

> >

> > 2011/02/19 07:08:56 INFO - jmeter.JMeter: Loaded icon properties from

> > org/apache/jmeter/images/icon.properties

> >

> > 2011/02/19 07:09:02 FATAL - jmeter.JMeter: An error occurred:

> > java.lang.InternalError: Can't connect to X11 window server using

> > 'localhost:10.0' as the value of the DISPLAY variable.

> >

> > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)

> >

> > at

> >  
> sun.awt.X11GraphicsEnvironment.access$100(X11GraphicsEnvironment.java:52)

> >

> > at

> > sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:155)

> >

> > at java.security.AccessController.doPrivileged(Native Method)

> >

> > at

> > sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:131)

> >

> > at java.lang.Class.forName0(Native Method)

> >

> >

> >

> >

> > On Tue, May 3, 2011 at 3:18 PM, sebb [hidden email]> wrote:

> >

> >

> >> There are lots of providers of JDKs (and lots of versions of JDK 1.6

> >> from each provider).

> >>

> >> What does

> >>

> >> java -version

> >>

> >> show?

> >>

> >> On 3 May 2011 17:26, rajivkumarnandvani [hidden email]>

> >> wrote:

> >>

> >>> http://jmeter.512774.n5.nabble.com/file/n4367681/putty.PNG putty.PNG

> >>> I am using JDK 1.6

> >>>

> >>> -----

> >>>

> >>> rajivkumarnandvani

> >>> --

> >>> View this message in context:

> >>>

> >>  
> http://jmeter.512774.n5.nabble.com/Jmeter-run-on-Linux-using-putty-tp4364104p4367681.html

> >>

> >>> Sent from the JMeter - User mailing list archive at Nabble.com.

> >>>

> >>> ---------------------------------------------------------------------

> >>> To unsubscribe, e-mail: [hidden email]

> >>> For additional commands, e-mail: [hidden email]

> >>>

> >>>

> >>>

> >> ---------------------------------------------------------------------

> >> To unsubscribe, e-mail: [hidden email]

> >> For additional commands, e-mail: [hidden email]

> >>

> >>

> >>

> >

> >





> ---------------------------------------------------------------------

> To unsubscribe, e-mail: [hidden email]

> For additional commands, e-mail: [hidden email]



rajivkumarnandvani
12
Loading...