You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ben Stover <bx...@yahoo.co.uk> on 2012/03/21 07:02:51 UTC

Avoiding cmdprompt popup when starting JMeter?

When I start JMeter by double clicking on jmeter.bat then (under Win7) the (black) well known
command prompt  appears at first before the actual GUI shows up.

Is there a way to avoid the popup of the command prompt?

Ben









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


Re: Avoiding cmdprompt popup when starting JMeter?

Posted by sebb <se...@gmail.com>.
On 21 March 2012 13:54, Robin D. Wilson <rw...@gmail.com> wrote:
> In Windows, you can create a shortcut, then edit the shortcut properties to change the program being called.
>
> I set my 'Target' (in the shortcut) to: C:\Windows\System32\javaw.exe -Xms512m -Xmx1g -XX:NewSize=256m -XX:MaxNewSize=512m
> -XX:PermSize=128m -XX:MaxPermSize=256m  -jar "ApacheJMeter.jar"
>
> This allows you to set the JVM memory config, and start JMeter without any command window.
>
> Also, you want to set the 'Start in:' location to match the JMeter 'bin' directory.
>
> That being said, the command window is sometimes helpful - especially when your test plan has a bug in it. Since the errors get
> reported in the console window.

Hopefully most errors will get reported in the jmeter log file as well.

However there may be some errors that are currently not being caught.
If anyone knows of any errors (*) that are only reported to the
console and not the log, please advise, so we can see if it is
possible to capture them.

(*) excluding catastrophic errors such as out of memory and JVM
crashes, which it won't be possible to capture in Java.

> --
> Robin D. Wilson
> Sr. Director of Web Development
> KingsIsle Entertainment, Inc.
> VOICE: 512-777-1861
> www.KingsIsle.com
>
>
> -----Original Message-----
> From: sebb [mailto:sebbaz@gmail.com]
> Sent: Wednesday, March 21, 2012 5:02 AM
> To: JMeter Users List
> Subject: Re: Avoiding cmdprompt popup when starting JMeter?
>
> You can also try jmeterw.bat - that produces a console window, but it
> disappears very quickly.
>
> Note that there are some circumstances where JMeter cannot write
> errors to the log file and has to use the console.
> [e.g. log directory is not writable, no disk space. There are probably
> some other conditions that prevent a log record being written]
> Such errors will be lost if there is no console.
>
> On 21 March 2012 07:02, Erik Pragt <er...@gmail.com> wrote:
>> Hi Ben,
>>
>> I always click on the Jmeter jar file instead. Wouldn't that work for you?
>>
>> Erik Pragt
>>
>>
>>
>> On 21 mrt. 2012, at 07:02, "Ben Stover" <bx...@yahoo.co.uk> wrote:
>>
>>> When I start JMeter by double clicking on jmeter.bat then (under Win7) the (black) well known
>>> command prompt  appears at first before the actual GUI shows up.
>>>
>>> Is there a way to avoid the popup of the command prompt?
>>>
>>> Ben
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>>> For additional commands, e-mail: user-help@jmeter.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

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


RE: Avoiding cmdprompt popup when starting JMeter?

Posted by "Robin D. Wilson" <rw...@gmail.com>.
In Windows, you can create a shortcut, then edit the shortcut properties to change the program being called.

I set my 'Target' (in the shortcut) to: C:\Windows\System32\javaw.exe -Xms512m -Xmx1g -XX:NewSize=256m -XX:MaxNewSize=512m
-XX:PermSize=128m -XX:MaxPermSize=256m  -jar "ApacheJMeter.jar"

This allows you to set the JVM memory config, and start JMeter without any command window.

Also, you want to set the 'Start in:' location to match the JMeter 'bin' directory.

That being said, the command window is sometimes helpful - especially when your test plan has a bug in it. Since the errors get
reported in the console window.

--
Robin D. Wilson
Sr. Director of Web Development
KingsIsle Entertainment, Inc.
VOICE: 512-777-1861
www.KingsIsle.com


-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: Wednesday, March 21, 2012 5:02 AM
To: JMeter Users List
Subject: Re: Avoiding cmdprompt popup when starting JMeter?

You can also try jmeterw.bat - that produces a console window, but it
disappears very quickly.

Note that there are some circumstances where JMeter cannot write
errors to the log file and has to use the console.
[e.g. log directory is not writable, no disk space. There are probably
some other conditions that prevent a log record being written]
Such errors will be lost if there is no console.

On 21 March 2012 07:02, Erik Pragt <er...@gmail.com> wrote:
> Hi Ben,
>
> I always click on the Jmeter jar file instead. Wouldn't that work for you?
>
> Erik Pragt
>
>
>
> On 21 mrt. 2012, at 07:02, "Ben Stover" <bx...@yahoo.co.uk> wrote:
>
>> When I start JMeter by double clicking on jmeter.bat then (under Win7) the (black) well known
>> command prompt  appears at first before the actual GUI shows up.
>>
>> Is there a way to avoid the popup of the command prompt?
>>
>> Ben
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

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


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


Re: Avoiding cmdprompt popup when starting JMeter?

Posted by sebb <se...@gmail.com>.
You can also try jmeterw.bat - that produces a console window, but it
disappears very quickly.

Note that there are some circumstances where JMeter cannot write
errors to the log file and has to use the console.
[e.g. log directory is not writable, no disk space. There are probably
some other conditions that prevent a log record being written]
Such errors will be lost if there is no console.

On 21 March 2012 07:02, Erik Pragt <er...@gmail.com> wrote:
> Hi Ben,
>
> I always click on the Jmeter jar file instead. Wouldn't that work for you?
>
> Erik Pragt
>
>
>
> On 21 mrt. 2012, at 07:02, "Ben Stover" <bx...@yahoo.co.uk> wrote:
>
>> When I start JMeter by double clicking on jmeter.bat then (under Win7) the (black) well known
>> command prompt  appears at first before the actual GUI shows up.
>>
>> Is there a way to avoid the popup of the command prompt?
>>
>> Ben
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

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


Re: Avoiding cmdprompt popup when starting JMeter?

Posted by Erik Pragt <er...@gmail.com>.
Hi Ben,

I always click on the Jmeter jar file instead. Wouldn't that work for you?

Erik Pragt



On 21 mrt. 2012, at 07:02, "Ben Stover" <bx...@yahoo.co.uk> wrote:

> When I start JMeter by double clicking on jmeter.bat then (under Win7) the (black) well known
> command prompt  appears at first before the actual GUI shows up.
> 
> Is there a way to avoid the popup of the command prompt?
> 
> Ben
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
> 

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