You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Rajiv Nanduani <ra...@gmail.com> on 2011/05/02 09:05:55 UTC

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 <http://testeverythingrajiv.com/>
KUMAR<http://rajivkumarnandvani.wordpress.com/>
NANDVANI <http://testeverythingqtp.blogspot.com>*

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

Re: Jmeter run on Linux using putty

Posted by Bruce Ide <fl...@gmail.com>.
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@gmail.com

Re: Re: Jmeter run on Linux using putty

Posted by ra...@gmail.com.
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 <mi...@apache.org> 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 sebbaz@gmail.com> 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 rajivkumarnandvani@gmail.com>

> >> 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: jmeter-user-unsubscribe@jakarta.apache.org

> >>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org

> >>>

> >>>

> >>>

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

> >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org

> >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org

> >>

> >>

> >>

> >

> >





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

> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org

> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org




Re: Re: Jmeter run on Linux using putty

Posted by ra...@gmail.com.
Hi felix,

No its not working with local host setting.



On , Felix Frank <ff...@mpexnet.de> wrote:
> On 05/04/2011 02:59 PM, rajivkumarnandvani@gmail.com wrote:

> > Hi felix,

> >

> > You are right. I tried with disable X11 fwd in putty

> > and it is working fine.



> Good to know.



> >> Come to think of it, DISPLAY=localhost:10.0 was probably bad and should

> >

> >> have been localhost:0, as that was what you had configured in Putty.

> >

> >

> >

> >> If that would have been correct, Xming would not have needed

> >

> >> configuration, I believe.

> >

> >

> > you means if in putty i configure localhost:10.0 then it will work ??

> > because in linux DISPLAY=localhost:10.0 is set?



> I believe so.



> The localhost:10.0 must be some sort of SSH or OpenSSH standard. It

> seems weird to me that this doesn't work right, but yes, setting

> localhost:10.0 in Putty sounds like a good idea.



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

> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org

> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org




Re: Jmeter run on Linux using putty

Posted by Felix Frank <ff...@mpexnet.de>.
On 05/04/2011 02:59 PM, rajivkumarnandvani@gmail.com wrote:
> Hi felix,
> 
> You are right. I tried with disable X11 fwd in putty
> and it is working fine.

Good to know.

>> Come to think of it, DISPLAY=localhost:10.0 was probably bad and should
> 
>> have been localhost:0, as that was what you had configured in Putty.
> 
> 
> 
>> If that would have been correct, Xming would not have needed
> 
>> configuration, I believe.
> 
> 
> you means if in putty i configure localhost:10.0 then it will work ??
> because in linux DISPLAY=localhost:10.0 is set?

I believe so.

The localhost:10.0 must be some sort of SSH or OpenSSH standard. It
seems weird to me that this doesn't work right, but yes, setting
localhost:10.0 in Putty sounds like a good idea.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Re: Jmeter run on Linux using putty

Posted by ra...@gmail.com.
Hi felix,

You are right. I tried with disable X11 fwd in putty
and it is working fine.



> Come to think of it, DISPLAY=localhost:10.0 was probably bad and should

> have been localhost:0, as that was what you had configured in Putty.



> If that would have been correct, Xming would not have needed

> configuration, I believe.


you means if in putty i configure localhost:10.0 then it will work ??  
because in linux DISPLAY=localhost:10.0 is set?
On , Felix Frank <ff...@mpexnet.de> wrote:
> Hi,



> congrats on getting that to work.



> > 1/ Start Xming

> >

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

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



> Out of curiosity: Could you try and disable that?



>  From what I can see, you're NOT using X11 forwarding now, but having the

> Linux box connect to your X server directly via TCP.

> This is not a problem, but it only works because your boxen are on the

> same network.



> > 3/ Start your SSH session

> >

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

> > DISPLAY=YOUR_IP_WINDOWS:0.0

> > export DISPLAY



> Come to think of it, DISPLAY=localhost:10.0 was probably bad and should

> have been localhost:0, as that was what you had configured in Putty.



> If that would have been correct, Xming would not have needed

> configuration, I believe.



> Regards,

> Felix



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

> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org

> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org




Re: Jmeter run on Linux using putty

Posted by Felix Frank <ff...@mpexnet.de>.
Hi,

congrats on getting that to work.

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

Out of curiosity: Could you try and disable that?

>From what I can see, you're NOT using X11 forwarding now, but having the
Linux box connect to your X server directly via TCP.
This is not a problem, but it only works because your boxen are on the
same network.

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

Come to think of it, DISPLAY=localhost:10.0 was probably bad and should
have been localhost:0, as that was what you had configured in Putty.

If that would have been correct, Xming would not have needed
configuration, I believe.

Regards,
Felix

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Re: Jmeter run on Linux using putty

Posted by Rajiv Nanduani <ra...@gmail.com>.
Hi ALL,

Thanks to everyone for the guidance. Finally I got succes and found the
solution to run jmeter from putty with the help of Xming in GUI mode.

Here was the prob in Xming. In Xming installation directory there is host
file C:\Program Files\Xming\X0.hosts
Edit: X0.hosts (lay in the installation directory)
add the ip you want allow. my X0.hosts
“localhost
192.168.1.215″
Restart Xming.

after doing this i was able to run the jmeter.

So here are the summary  to do all this:

Xming installation directory there is hos file C:\Program
Files\Xming\X0.hosts
Edit: X0.hosts (lay in the installation directory)
add the ip you want allow. my X0.hosts
“localhost
192.168.1.215″

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)

6. Enable the X11 forwarding in putty.
 http://jmeter.512774.n5.nabble.com/file/n4367681/putty.PNG putty.PNG

7. Do you have your SSH server set up to permit X forwarding?
Configure the /etc/ssh/*sshd_config file*
> Your sshd_config file should have something like:
  X11Forwarding yes
  X11DisplayOffset 10
  X11UseLocalhost yes

Thanks to all once again :)

On Wed, May 4, 2011 at 4:56 AM, <ra...@gmail.com> wrote:

> Hi Flex,
>
> When i set the DISPLAY variable to my windows ip that time it get logged in
> Xming log file
> With with DISPLAY=localhost:10.0 it does not work means it is correct that
> we have to set this
>
>
> 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)
>
>


> On , Felix Frank <ff...@mpexnet.de> wrote:
> > On 05/04/2011 09:45 AM, rajivkumarnandvani@gmail.com wrote:
> >
> > > I tried with localhost:x.0
> >
> > > but bad luck :(
> >
> >
> >
> > The "x" is a placeholder!
> >
> >
> >
> > If your environment is initialized with DISPLAY=localhost:10.0 then this
> >
> > is OK, you shouldn't mess with it.
> >
> >
> >
> > Find out why Xming won't accept the connection.
> >
> >
> >
> > ---------------------------------------------------------------------
> >
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >
> > For additional commands, e-mail: jmeter-user-help@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/

Re: Re: Jmeter run on Linux using putty

Posted by ra...@gmail.com.
Hi Flex,

When i set the DISPLAY variable to my windows ip that time it get logged in  
Xming log file
With with DISPLAY=localhost:10.0 it does not work means it is correct that  
we have to set this

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)

On , Felix Frank <ff...@mpexnet.de> wrote:
> On 05/04/2011 09:45 AM, rajivkumarnandvani@gmail.com wrote:

> > I tried with localhost:x.0

> > but bad luck :(



> The "x" is a placeholder!



> If your environment is initialized with DISPLAY=localhost:10.0 then this

> is OK, you shouldn't mess with it.



> Find out why Xming won't accept the connection.



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

> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org

> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org




Re: Jmeter run on Linux using putty

Posted by Felix Frank <ff...@mpexnet.de>.
On 05/04/2011 09:45 AM, rajivkumarnandvani@gmail.com wrote:
> I tried with localhost:x.0
> but bad luck :(

The "x" is a placeholder!

If your environment is initialized with DISPLAY=localhost:10.0 then this
is OK, you shouldn't mess with it.

Find out why Xming won't accept the connection.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Re: Jmeter run on Linux using putty

Posted by ra...@gmail.com.
I tried with localhost:x.0
but bad luck :(
On , Felix Frank <ff...@mpexnet.de> wrote:
> On 05/04/2011 08:09 AM, Milamber 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



> Huh? This doesn't look right.



> Even with X11 forwarding, the remote host has no way to reach an IP

> local to your client.



> localhost:x.0 should be correct.



> I advise to focus on the Xming errors.



> Cheers,

> Felix



> --

> MPeX.net GmbH / Werner-Voß-Damm 62 / D-12101 Berlin / Germany

> MPeXnetworks / www.mpexnetworks.de

> Tel: ++49-30-78097 180 / Fax: ++49-30-78097 181



> Sitz, Registergericht: Berlin, Amtsgericht Charlottenburg, HRB 76688

> Geschäftsführer: Lars Bräuer, Gregor Lawatscheck



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

> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org

> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org




Re: Jmeter run on Linux using putty

Posted by Felix Frank <ff...@mpexnet.de>.
On 05/04/2011 08:09 AM, Milamber 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

Huh? This doesn't look right.

Even with X11 forwarding, the remote host has no way to reach an IP
local to your client.

localhost:x.0 should be correct.

I advise to focus on the Xming errors.

Cheers,
Felix

-- 
MPeX.net GmbH / Werner-Voß-Damm 62 / D-12101 Berlin / Germany
MPeXnetworks / www.mpexnetworks.de
Tel: ++49-30-78097 180 / Fax: ++49-30-78097 181

Sitz, Registergericht: Berlin, Amtsgericht Charlottenburg, HRB 76688
Geschäftsführer: Lars Bräuer, Gregor Lawatscheck

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter run on Linux using putty

Posted by Milamber <mi...@apache.org>.
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 <se...@gmail.com> 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 <ra...@gmail.com>
>> 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: jmeter-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter run on Linux using putty

Posted by Rajiv Nanduani <ra...@gmail.com>.
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 <se...@gmail.com> 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 <ra...@gmail.com>
> 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: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@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/

Re: Jmeter run on Linux using putty

Posted by sebb <se...@gmail.com>.
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 <ra...@gmail.com> 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: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter run on Linux using putty

Posted by rajivkumarnandvani <ra...@gmail.com>.
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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter run on Linux using putty

Posted by Felix Frank <ff...@mpexnet.de>.
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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter run on Linux using putty

Posted by sebb <se...@gmail.com>.
On 3 May 2011 15:15, Rajiv Nanduani <ra...@gmail.com> 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 <ff...@mpexnet.de> 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: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>
>
>
> --
>
> Regards
>
> RAJIV KUMAR NANDVANI
>
> http://rajivkumarnandvani.wordpress.com
> http://testeverythingqtp.blogspot.com/
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter run on Linux using putty

Posted by Rajiv Nanduani <ra...@gmail.com>.
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 <ff...@mpexnet.de> 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: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@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/

Re: Jmeter run on Linux using putty

Posted by Felix Frank <ff...@mpexnet.de>.
>  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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter run on Linux using putty

Posted by Rajiv Nanduani <ra...@gmail.com>.
On Tue, May 3, 2011 at 8:57 AM, Felix Frank <ff...@mpexnet.de> 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: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@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/

Re: Jmeter run on Linux using putty

Posted by Felix Frank <ff...@mpexnet.de>.
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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter run on Linux using putty

Posted by Rajiv Nanduani <ra...@gmail.com>.
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 <as...@gmail.com> 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 <rk...@msas.in> 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: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@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/

Re: Jmeter run on Linux using putty

Posted by Adrian Speteanu <as...@gmail.com>.
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 <rk...@msas.in> 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: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Jmeter run on Linux using putty

Posted by rkedari <rk...@msas.in>.
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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter run on Linux using putty

Posted by Felix Frank <ff...@mpexnet.de>.
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: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter run on Linux using putty

Posted by Rajiv Nanduani <ra...@gmail.com>.
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...@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@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@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/

Re: Jmeter run on Linux using putty

Posted by Felix Frank <ff...@mpexnet.de>.
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@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Jmeter run on Linux using putty

Posted by rkedari <rk...@msas.in>.
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.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org