jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <philippe.moua...@gmail.com>
Subject Re: JSR223 + scala
Date Tue, 03 Jun 2014 05:07:07 GMT
Hello,
It seems to be very slow at least during compilation (it's a known
problem) but even after caching of compiled script it remains rather slow.
Groovy does not behave this way.
Maybe worth asking on scala group no ?

Regards
@philmdot

On Monday, June 2, 2014, Ryabtsev Vladimir <v.ryabtsev@pflb.ru> wrote:

> Hello, Philippe,
>
> yeah it works, thanks.
> But it not simply very slow, it just awfully slow.
> I also noticed, it writes lot of output to the console window during
> execution.
>
> -----
> VR
>
> -----Original Message-----
> From: Philippe Mouawad [mailto:philippe.mouawad@gmail.com <javascript:;>]
> Sent: Friday, May 30, 2014 12:31 AM
> To: JMeter Users List
> Subject: Re: JSR223 + scala
>
> Hello,
>
> Here is how I setup scala:
> 1/ In user.properties, I added:
> user.classpath=../scala
>
> 2/ I created a scala folder under jmeter (same level as lib) where I have
> put all scala jars
>
> 3/ In system.properties, I added:
> scala.usejavacp=true
>
> 4/ I fixed the code :
> Replaced :
> logger.warn("Hello world!");
> by
> var logger = log.asInstanceOf[org.apache.log.Logger];
> logger.warn("Hello world!");
>
>
> Note 1/ and 2/ are only to be clean.
> 3/ is the way to fix you issue
>
> Note even with caching of compiled classes, it seems to be very slow.
>
>
>
> Regards
> Philippe M.
> @philmdot
>
>
> On Tue, May 27, 2014 at 8:21 AM, Ryabtsev Vladimir <v.ryabtsev@pflb.ru
> <javascript:;>>
> wrote:
>
> > Hello,
> >
> > done: https://issues.apache.org/bugzilla/show_bug.cgi?id=56567
> > Please comment if you need any additional info.
> >
> > -----
> > VR
> >
> >
> > -----Original Message-----
> > From: Philippe Mouawad [mailto:philippe.mouawad@gmail.com <javascript:;>
> ]
> > Sent: Friday, May 23, 2014 11:51 PM
> > To: JMeter Users List
> > Subject: Re: JSR223 + scala
> >
> > Hello,
> > Could you open a bugzilla and attach your test plan with settings
> > description ?
> > Thank you
> >
> >
> > On Fri, May 23, 2014 at 3:18 PM, Ryabtsev Vladimir <v.ryabtsev@pflb.ru
> <javascript:;>
> > >wrote:
> >
> > > Hi,
> > >
> > > did anyone try to use scala language in JSR223? I've downloaded
> > > scala lib and put it into lib folder. After that scala appeared in
> > > language list of
> > > JSR223 as 'scala (Scala version 2.11.1 / Scala Interpreter 1.0)' in
> > > my nightly build of JMeter. But during the execution of the test
> > > plan error
> > > appears:
> > >
> > > In log:
> > > Error while processing sampler 'JSR223 Sampler' :
> > > scala.reflect.internal.MissingRequirementError: object scala in
> > > compiler mirror not found.
> > >
> > > And in console:
> > > Failed to initialize compiler: object scala in compiler mirror not
> found.
> > > ** Note that as of 2.8 scala does not assume use of the java classpath.
> > > ** For the old behavior pass -usejavacp to scala, or if using a
> > > Settings
> > > ** object programatically, settings.usejavacp.value = true.
> > >
> > >  Does anybody knows solution to this issue?
> > >
> > > -----
> > > VR
> > >
> > >
> >
> >
> > --
> > Cordialement.
> > Philippe Mouawad.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> <javascript:;>
> > For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
> >
> >
>
>
> --
> Cordialement.
> Philippe Mouawad.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org <javascript:;>
> For additional commands, e-mail: user-help@jmeter.apache.org
> <javascript:;>
>
>

-- 
Cordialement.
Philippe Mouawad.

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