Title: RE: JMeter Visualizers problem

  Mike thank you for your kind reply.

> -----Original Message-----
> From: mike [mailto:[EMAIL PROTECTED]]
> Sent: 19 March 2001 07:48
> To: [EMAIL PROTECTED]
> Subject: Re: JMeter Visualizers problem
>
>
> You've created your own controller - did you also create your
> own Sampler? 

  Yes, I have created my own sampler (ServiceSampler) which extends the Sampler interface. In there I implement the SampleResult sample(Entry e) method.

> If so, it's the reponsibility of the sampler to populate a
> SampleResult with
> the information the visualizers are looking for. 
> SampleResult is a class
> that acts like a HashMap, and there a couple public static
> Strings that act
> as keys in it's map.  Also, in JMeter 1.5, you probably
> needed to create your
> own JMeterThread implementation as well - which is the class
> that fires
> sampleOccurred events.

  I have also created my own JMeterThread (ServiceJMeterThread) which implements the JMeterThread interface.

> Actually, it doesn't sound like your controller is running -
> JMeter's red
> dots normally turn green-red-green-red during a run.  You can
> verify this
> better by using the View Results visualizer, or the Graph
> visualizer. 
> (Spline Curve only updates itself every 10 samples).

  So what does the only-green-dots mean? Does it mean that my program is running with no results? I do not see any error messages in the MSDOS console while the JMeter is running though.

 
> Can you tell me some more about what you've done?  What
> protocol are you
> testing, are you reusing other Sampler classes, or have you
> written one of
> them too?

  Of course. First of all I have to tell you that I am using the classes of the JMeter v1.5.1.
  I have written a client service which connects to the server and sends packets of data to the server every 3 seconds. For the beginning I am simulating the log in of only 5 users. I am creating an array of type JMeterThread with length of 5 elements. I am filling this array with samplers ("ServiceSampler" objects which extend the Sampler interface). So each sampler holds one user. From the constructor of my own Sampler (ServiceSampler) I call a class (which is called ConnectionManager) which manages the connections to the server and authenticates if the password and the username exist in the database. Now, after the authentication succeeds the control of the program returns to the ServiceSampler and in the method "SampleResult sample(Entry e)" I have a thread that sends a packet of data to the server and then sleeps for 3 seconds. This is being done indefinetely. My idea is to log out the user after 5 mins for example but I have not implemented it yet and therefore it runs until I stop it. The crux of my application is: I have 5 users hence I open 5 sockets and 5 threads for them. And my clients keeps on sending messages to the server indefinetely.

  It seems that it is working fine but the JMeter has different opinion.

> You might also check out the latest in CVS.  JMeter 1.6 makes
> all this much
> easier, and it's working well at this time. 

   I will download and try it. Thank you.

> -Mike


   Thanks again for any help.

     Panos.
>
> On Monday 19 March 2001 11:46, you wrote:
>
> > >   Hello there. I have managed to implement my own plug in
> controller for
> > the JMeter. Everything works fine so far (or at least it
> seems so) and I
> > get no errors on my MSDOS console. The problem is that the
> JMeter does
> > produce a graphical representation of the data. For example
> if I choose the
> > "Spine Curve" visualizer I always get the message "Waiting
> for samples"
> > even though the JMeter shows that my controller is running
> (the red dots
> > above are constantly green - actually I am not quite sure
> if they should be
> > constantly green or keep changing from red-green-red all
> the time). My
> > customized controller is written on the same manner as the
> jdbc controller
> > but I cannot seem to find anywhere in the jdbc controller
> any references to
> > the visualizers classes. I guess they are invoked through some other
> > classes but I do not know which ones? Any help is deeply
> appreciated.
> >
> >    Thank you.
> >
> >             Panos
>
> ----------------------------------------
> Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
> Content-Transfer-Encoding: quoted-printable
> Content-Description:
> ----------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

Reply via email to