Unable to get 2 terminal sessions to work as LR Generators. Only one LR Agent works properly. (1369 Views)
Reply
Occasional Contributor
taweesak_o
Posts: 6
Registered: ‎09-28-2013
Message 1 of 10 (1,369 Views)
Accepted Solution

Unable to get 2 terminal sessions to work as LR Generators. Only one LR Agent works properly.

[I cross-post this in LR Yahoo Group also -- Sorry if you see this twice.]

 

Dear Experts:

 

I have ...

 

    Load Controller V. 11.52 installed on Windows 7 Enterprise 64-bit

    Load Generator V.11.52 installed on Windows 2008 R2 SP1

 

I am doing SAP testing and I want to maximize #Vusers running on my Load Generator box -- DL380 G5 box with 24 GB RAM.

 

I found this post:   <LoadRunner-Support-Forum/LoadRunner-11-and-SAP-can-t-run-more-than-100-VU-s-on-1/td-p/2392473#.UkZVhYn-LDd>

 

.. and wanted to do something similar: setting up 2 terminal sessions with 70 Vusers in each session doing SAPGUI.

 

On the Load Generator machine, I created 2 users (with admin rights) -- lets say it is admin1 and admin2. I logged on as admin1 and ticked that "Enable Terminal Services" checkbox. Restarted the Agent as a process. I left the admin1 session on.

 

Next I did the same for admin2.

 

And I opened Taskmgr and saw 2 LoadRunner Agent Process running fine.

 

In admin1 sessions, I saw: LR_Bridge, LR_Balancer, LR_Agent process running.

 

In admin2 sessions, I saw only LR Agent running. 

 

(At this point, there were only 2 sessions running -- no more.)

 

Agent Log in admin2 session showed the following....

 

DriverLogger: Log started at 28/09/2013 15:31:08 .

28/09/2013 15:31:08 Error: Communication error: Failed to bind socket while calling bind function. [MsgId: MERR-10344]
28/09/2013 15:31:08 Error: Two Way Communication Error: Function two_way_comm_create_acceptor failed. [MsgId: MERR-60999]
28/09/2013 15:31:08 Error: Communication error: Failed to bind socket while calling bind function. [MsgId: MERR-10344]
28/09/2013 15:31:08 Error: Two Way Communication Error: Function two_way_comm_create_acceptor failed. [MsgId: MERR-60999]
28/09/2013 15:31:08 Error: Non Mdrv Message - Failed to create acceptor. [MsgId: MERR-29016]

 

 

 

But in admin1 session, Agent Log showed nothing wrong.

 

When I ran my test from the Controller, it seemed that Controller could talk to only admin1 session.

 

(I already configured the Generator: Terminal Services Tab correctly..

 

I ticked that Enable Terminal Services Manager checkbox, I set Number of terminals to 2 and Max Vusers per terminal to 70.

 

I just put 20 Vusers only. I thought it were gonna split between the 2 sessions equally. But all were poured into session 1.

 

I restarted LR agent process many times + restarted the box itself... but to no avail.

 

Seemed like I can successfully launch only one agent. If I start Agent on admin2 session first, the Agent on admin2 works fine -- who comes first would win.

 

I am totally confused on how to fix this...

Need to get to about 2400 Vusers with 14 more DL380 boxes to configure. Now stuck on the first box and couldn't move forward.

 

Appreciate your kind advice,

 

--taweesak

 
HP Expert
Editus
Posts: 650
Registered: ‎04-06-2011
Message 2 of 10 (1,323 Views)

Re: Unable to get 2 terminal sessions to work as LR Generators. Only one LR Agent works properly.

Hello

I uderstand you are using SAPGUI protocol, if that is so, then why you need the TS? Check on page 629 of LoadRunner userguide.

 

hope this clarifies

 

regards

Respected Contributor
Srihari_Amgen
Posts: 426
Registered: ‎11-25-2011
Message 3 of 10 (1,317 Views)

Re: Unable to get 2 terminal sessions to work as LR Generators. Only one LR Agent works properly.

Hi Taweesak_o,

 

I am not an Expert but here is my opinion.

 

Try to Login with admin1 account twice into the same load generator ABC , rest of the configuration which you performed is correct, 2 MagentProcesses will be created with the same admin1 userid.

 

Make sure all the terminal sessions are created with same userid with which SAP client is configured on the LG. 

 

Make sure you have  "Terminal Session License" on the Load Generator machines as per your requirement ( 4, 16, 32 session License etc ).

 

Load Generator Design.png

 

In order to fullfil your objective of  setting up 2 terminal sessions with 70 Vusers in each session doing SAPGUI.

 

Open two terminal sessions run the 70 Vuser SAP GUI test across these two terminal sessions, if you notice that Vusers are not getting distributed evenly across these TWO terminal sessions then ; open a THREE terminal sessions on the same LG instead of TWO and run the same 70 Vuser SAP GUI test across two terminal sessions this time your test should run fine and 35 Vusers should be distributed evenly across each of the two terminal sessions.

 

Hope this helps you :)

 

Regards,

Srihari

 

 

 

 

Occasional Contributor
taweesak_o
Posts: 6
Registered: ‎09-28-2013
Message 4 of 10 (1,307 Views)

Re: Unable to get 2 terminal sessions to work as LR Generators. Only one LR Agent works properly.

Dear Srihari_Amgen..

 

Thanks so much for your kind answer...taking the time to draw diagram and everything -- I truly appreciate it.

 

I am running to my office lab very fast to try out your suggestion -- with get there in 20 mins.

 

But I just wanted to make sure I understand everything right....

 

(1) Would the 2 processes -- both launched by admin1 on 2 separate sessions -- be fighting to bind their needed ports again? 

 

(2) I am getting confused with the Agent mode:  Process vs Service again..   For my case, I understand that.. I will have only 2 agent processes running. I will have *no* need to start any Agent service.

 

If I see one of the Agent log complaining about being unable to bind ports, that means my attempt fails right? (not even have to get to the part of getting the Controller to talk to Generator(s))

 

(3) Windows 2008 server that I use now comes with a default license that allow 2 remote sessions as a starter.

 

I am heading to lab now...and will report back.

 

Thanks again!

 

Btw, I dont get what Edius implied above, I looked at that page already. It is all about RDP. Not sure how I could relate it to my situation. But thanks anyway. I will look into it after the trial.   

Respected Contributor
Srihari_Amgen
Posts: 426
Registered: ‎11-25-2011
Message 5 of 10 (1,304 Views)

Re: Unable to get 2 terminal sessions to work as LR Generators. Only one LR Agent works properly.

[ Edited ]

Hi taweesak_o,

 

1) If both are launced with admin1 they wont fight for the ports, I did single login for multiple sessions on same LG ( 5, 13 etc ) I did not face any errors in their process logs.

 

2) In your case LR should be installed as a process, for SAP GUI tests Service should be converted to process.

 

If you feel communication is not getting setup properly then you need to drop all the created process and recreate them.

 

3) Windows 2008 server that I use now comes with a default license that allow 2 remote sessions as a starter.

     If it allows both remote connections from admin1 then it is fine. otherwise admin1 and admin2 should have been already configured to the SAP GUI client installed on this LG.

 

Please find this document which we prepared for a similar setup, I hope It will help you.

 

Regards,

Srihari

 

Respected Contributor
Srihari_Amgen
Posts: 426
Registered: ‎11-25-2011
Message 6 of 10 (1,278 Views)

Re: Unable to get 2 terminal sessions to work as LR Generators. Only one LR Agent works properly.

In addition , please make sure that you provide necessary setting's as below during your test design.

Terminal Sessions Screen Shot.png

Occasional Contributor
taweesak_o
Posts: 6
Registered: ‎09-28-2013
Message 7 of 10 (1,264 Views)

Re: Unable to get 2 terminal sessions to work as LR Generators. Only one LR Agent works properly.

Hi SriHari,

 

I tried the suggestion... but still stuck at the same error.

 

What I did...

 

1) On Load Gen machine (Win 2008), I made sure no one has any session running.

 

2) I launched 1 session and I had "admin1" logged on. I started LR Agent process. All good. Agent log showed one line ..

 

         DriverLogger: Log started at 01/10/2013 14:58:07 .

 

I left this session on.

 

3) I launched one more session and also had "admin1" logged on. I started LR Agent Process.

 

DriverLogger: Log started at 01/10/2013 15:03:55 .

01/10/2013 15:03:55 Error: Communication error: Failed to bind socket while calling bind function. [MsgId: MERR-10344]
01/10/2013 15:03:55 Error: Two Way Communication Error: Function two_way_comm_create_acceptor failed. [MsgId: MERR-60999]
01/10/2013 15:03:55 Error: Communication error: Failed to bind socket while calling bind function. [MsgId: MERR-10344]
01/10/2013 15:03:55 Error: Two Way Communication Error: Function two_way_comm_create_acceptor failed. [MsgId: MERR-60999]
01/10/2013 15:03:55 Error: Non Mdrv Message - Failed to create acceptor. [MsgId: MERR-29016]

 

4) I stopped/restarted LR Agent process serveral times. One of the time, I got lucky -- seeing no error message about the port binding. Then I hopped to the Controller machine and kicked off the tests (of course with those terminal services property values all configured).

 

Tuned out that Controller could talk to only one session -- not both.  (I set VUsers per session = 20, with 2 Terminal Sessions allowed. Tests required for 30 Vusers as I hoped the Controller would somehow need both sessions to cover 30 users)

 

Back to my doubt again, if we leave the Controller on the side for now and focus only on getting Agents to start right. I don't think I got thru this step yet.

 

And there werent so many things to configure on the Generator side (only 2 places: Enable Terminal Services checkbox and starting Agent as process option)

 

I dont have additional license of Termial Service to try on. I just use what come as default on my Windows 2008. But the fact I could launch 2 remote sessions each doing e.g. MS Word of their own could prove that I have Terminal Service thing working?

 

I also read all of your documents and tried removing that Agent as a service thing but it didnt help either.

 

Oh..I have attached the picture of TaskMgr showing 2 Agent processes running (both owned by admin1)

 

Should I go back in time and use Windows 2003 instead?

 

Thanks for all the help!! 

 

 

 

 

Respected Contributor
Srihari_Amgen
Posts: 426
Registered: ‎11-25-2011
Message 8 of 10 (1,238 Views)

Re: Unable to get 2 terminal sessions to work as LR Generators. Only one LR Agent works properly.

[ Edited ]

Hi Taweesak,

 

On Load Generator you never installed the LG S/W as a Service correct?

 

When you installed Load Generator Software on this machine you ran it as a administrator correct?

 

( There should not be any "Load Runner Agent Service" is the Services List ).

 

As per my understanding you only opened terminal sessions on the LG by performing RDP by configuring " Terminal Sessions" on the agent configuration.

 

Remove the checkmark by the side of "Enable Firewall Agent and Check Whether that is causing the issue".

 

Launch the command prompt as adminstrator and launch the magentproc.exe in each terminal session , this might eliminate permission issue's.

 

 1 connection is opened:    1 Terminal Session 1 Vuser per terminal session:     1 Vuser ran aganist this LG from selected test :  Test Failed

 2 connection's are opened: 1 Terminal Session 1 Vuser per terminal session:     1 Vuser ran aganist this LG from selected test :  Test Ran Successfully

 when I opened 2nd connection , I recieved below error message in the agent log:

  DriverLogger: Log started at 01/10/2013 10:57:11 .

   01/10/2013 10:57:11 Error: Communication error: Failed to bind socket while calling bind function. [MsgId: MERR-10344]   

 

01/10/2013 10:57:11 Error: Two Way Communication Error: Function two_way_comm_create_acceptor failed. [MsgId: MERR-60999]  

 

01/10/2013 10:57:11 Error: Communication error: Failed to bind socket while calling bind function. [MsgId: MERR-10344]   

 

01/10/2013 10:57:11 Error: Two Way Communication Error: Function two_way_comm_create_acceptor failed. [MsgId: MERR-60999]   

 

01/10/2013 10:57:11 Error: Non Mdrv Message - Failed to create acceptor. [MsgId: MERR-29016]

 

This  Binding message or the communicator error message did NOT fail the test.

 

3 connection's are opened: 2 Terminal Session 1 Vuser per terminal session :    2 Vuser's ran aganist this LG from selected test :  Test Ran Successfully

 

DriverLogger: Log started at 01/10/2013 10:57:11 .

01/10/2013 10:57:11 Error: Communication error: Failed to bind socket while calling bind function. [MsgId: MERR-10344]

 

01/10/2013 10:57:11 Error: Two Way Communication Error: Function two_way_comm_create_acceptor failed. [MsgId: MERR-60999] 01/10/2013 10:57:11 Error: Communication error: Failed to bind socket while calling bind function. [MsgId: MERR-10344]

 

01/10/2013 10:57:11 Error: Two Way Communication Error: Function two_way_comm_create_acceptor failed. [MsgId: MERR-60999]

 

01/10/2013 10:57:11 Error: Non Mdrv Message - Failed to create acceptor. [MsgId: MERR-29016]

 /****************************** NEW ERROR MESSAGES ON TERMINAL 3 :) in additon to above error message from terminal 2  ****************************************************/

 

DriverLogger: Log started at 01/10/2013 11:04:53 .

01/10/2013 11:04:53 Error: Communication error: Failed to bind socket while calling bind function. [MsgId: MERR-10344]

 

01/10/2013 11:04:53 Error: Two Way Communication Error: Function two_way_comm_create_acceptor failed. [MsgId: MERR-60999]

 

01/10/2013 11:04:53 Error: Communication error: Failed to bind socket while calling bind function. [MsgId: MERR-10344]

 

01/10/2013 11:04:53 Error: Two Way Communication Error: Function two_way_comm_create_acceptor failed. [MsgId: MERR-60999]

 

01/10/2013 11:04:53 Error: Communication error: Failed to bind socket while calling bind function. [MsgId: MERR-10344]

 

01/10/2013 11:04:53 Error: Two Way Communication Error: Function two_way_comm_create_acceptor failed. [MsgId: MERR-60999]

 

01/10/2013 11:04:53 Error: Non Mdrv Message - Failed to create acceptor. [MsgId: MERR-29016]

/****************************** NEW ERROR MESSAGES ON TERMINAL 3 :) in additon to above error message from terminal 2  ****************************************************/

 

The Binding message or the communicator error message did NOT fail the test.

 

For running test against N terminal sessions there should be N+1 connections( In each connection there should be a magentproc.exe so in total there should N+1 magentproc.exe in your task manager), this is what I derived by analysing my test runs.

 

Let me know if this helps you.

 

Regards,

Srihari

Occasional Contributor
taweesak_o
Posts: 6
Registered: ‎09-28-2013
Message 9 of 10 (1,211 Views)

Re: Unable to get 2 terminal sessions to work as LR Generators. Only one LR Agent works properly.

Hi SriHari,

 

It works now! It really works! 

 

Really that N+1 thing.

 

I went missing to get the Terminal Services to accept more than 2 sessions. Finally got all the needed components!

 

Biggest Thanks!! 

 

 

Respected Contributor
Srihari_Amgen
Posts: 426
Registered: ‎11-25-2011
Message 10 of 10 (1,199 Views)

Re: Unable to get 2 terminal sessions to work as LR Generators. Only one LR Agent works properly.

Hi Taweesak_o,

 

I am very happy that it worked :)

 

Regards,

Srihari

 

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.