jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Koopmans <...@flood.io>
Subject Re: Using Jruby in Jmeter
Date Sun, 18 May 2014 21:38:48 GMT
https://github.com/jruby/jruby/wiki/Concurrency-in-jruby :)



> Yes, it took me a while to understand it, but now now it is clear to me.
>
> When you first execute a Jruby routine, Jmeter loads Jruby.jar in memory,
> and this require some time and a lot of resources.
> If you are running multiple threads, it is quite possible that another
> thread will try to do the same holding.
> In this case, the operations will fail and ALL subsequent executions will
> fail, until you exit and reload Jmeter.
>
> A simple workaround for this is to set the number of threads to 1 when you
> start JMeter and just run the test.
> From then on, you can arrange the number of threads you need, without any
> problem.
>
> HTH
> Sergio
>
>
>
>
>  On Wed, May 7, 2014 at 3:20 PM, Sergio Boso <sergio@bosoconsulting.it>
> wrote:
>
>  Hi everybody.
>>>
>>> I find JavaScript a little bit clumsy, so I did some test with Jruby.
>>>
>>> It is very straightforward to use, and relatively fast, after the first
>>> execution.
>>> However, I had some trouble when running the same routine at the same
>>> time
>>> multiple threads.
>>>
>>> So may question is:
>>> - is thee any real world experience in using Jmeter +Jruby?
>>> - Is Jruby really thread-safe? can I use a variable "myvar" in multiple
>>> instances?
>>> - What is the behaviour of $myvar (which is a global static variable in
>>> standard Ruby)?
>>>
>>> Thank you in advance
>>>
>>>
>>>
>>> --
>>>
>>> Ing. Sergio Boso
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message