LR Citrix Virtual users issue in Controller.

185 views
Skip to first unread message

Rajiv kumar

unread,
Feb 13, 2012, 9:49:08 AM2/13/12
to lr-loadrunner
Hi,
I have developed an script using Citrix ICA protocol to test an application published on Citrix Xenapp 6.5. In Vugen, I was able to replay the script successfully but when i tried to replay it in Controller with multiple vusers, I started getting below error.

Error Info : "Error: Got unexpected disconnect event, exiting ..."

LR Virsion : LR 11 Patch Set 3
Citrix Client: 12.1.44.1
OS : Win2k8 SE 32 bit

please help me to fix this issue.

Thanks,
Rajiv

Vivek

unread,
Feb 13, 2012, 1:01:26 PM2/13/12
to lr-loa...@googlegroups.com
Make sure you can open multiple instances of the application manually, if you can't you have an issue in configuration that needs looking.



--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

Rajiv kumar

unread,
Feb 13, 2012, 9:18:53 PM2/13/12
to lr-loa...@googlegroups.com, vivek....@gmail.com
Vivek,
I had manually checked that, I could able to launch multiple instances from same machine using single Citrix login before running the script.

-Rajiv

sameer rajimwale

unread,
Feb 14, 2012, 3:36:05 PM2/14/12
to LoadRunner
Hi Rajiv,

I am also currently working on XenApp 6 (WIn2K8 R2, 64 Bit) with
Citrix Client Version 10 and the same LR version.

1) First thing, Citrix disconnect event, I suppose is a general random
error that I have seen in almost every project I have done. It happens
to one of around 40 users. However, the fact that you see it with
every VUser of yours is an issue. Do you see this right in the
beginning of script (or at any particular transaction) for every
user ? (like in the init part itself). OR do you see this happening at
any random time in the script execution?

2) Have you checked with your Citrix Admin the time out settings?
There are 3 kinds of time-outs:

a) Citrix Idle session timeout - The Citrix session is destroyed
if left idle for X amount of time, say.
b) Citrix active session timeout - usually set to "NEVER" or 1 or
2 days in some cases. (an active session under use should never
expire in between obviously)
c) Citrix disconnected session timeout - the time a disconnected
session shall remain alive on the Citrix server.

Citrix idle session timeout is of our use and may be the culprit
behind this.

3) FInally, remember there can be application specific timeouts also!
(which will be set by your application vendor on the app. servers) I
recently was having an issue in my Citrix script, in that every VUser
was failing at 29th iteration! Quite later I realized that it was
not an "iteration dependent LR issue" rather it was an "an
application timeout setting dependent timeout issue". I got that
fixed and Bingo! So see if your application after a particular "time"
disconnects from the ICA client. Try to replicate exactly what your
script does manually, better.

@James/All,

please add/edit info that I may have missed.

SAMEER RAJIMWALE.

On Feb 14, 7:18 am, Rajiv kumar <rajivn...@gmail.com> wrote:
> Vivek,
> I had manually checked that, I could able to launch multiple instances from
> same machine using single Citrix login before running the script.
>
> -Rajiv
>
>
>
>
>
>
>
> On Mon, Feb 13, 2012 at 11:31 PM, Vivek <vivek.lok...@gmail.com> wrote:
> > Make sure you can open multiple instances of the application manually, if
> > you can't you have an issue in configuration that needs looking.
>

raj

unread,
Feb 14, 2012, 11:52:14 PM2/14/12
to LoadRunner
Rajiv,

What I suggest is to narrow down if it is real application issues
related to session at load or virtual user simulation issues due to
issues like sharing ids. So I would suggest this..

Try 2 user test manually
Ensure that all the session related to those 2 user test is logged off
Do 2 user test from Controller - Use the same ids used in the manual
test
Identify what step and what iteration is throwing the error. This
should help to figure what is the real problem

From my experience, Citrix is always a challenge and proper
validations should fix the issue.

thanks
Raj
http://performancetestingfun.googlepages.com/


On Feb 14, 2:36 pm, sameer rajimwale <rajimwale.sam...@gmail.com>
wrote:

Rajiv kumar

unread,
Feb 15, 2012, 12:38:47 AM2/15/12
to lr-loa...@googlegroups.com
Hi Sameer/Raj,
Answering to your question,

1) Do you see this right in the  beginning of script (or at any particular transaction) for every  user ? (like in the init part itself). OR do you see this happening at  any random time in the script execution?

- I was able test successfully, with single vuser,single iteration and 2 vusers, single iteration by using same Citrix user credentials for each vusers in controller but when I tried to run with more than 2 vusers( incase of 3 vusers)  and single iteration, it start throwing mentioned error in the post. Most of vuser used to fail due to the error. I used ramp up time for users to 20 seconds, Generally script start failing in init section only.

2) Have you checked with your Citrix Admin the time out settings?

- There is no issue with timeout setting in Citrix Xenapp. it's been setup accordingly.

3) Is there any specific timeout session in the application?

- We have disabled the time out setting in the application, so timeout case would not be happening in the application while running.

I had launched manually multiple client application using same Citrix user credential, prior to test the application in Controller to ensure that, there is no issue in application launch, if i am using same Citrix user logging info to launch multiple instances.

I would like to ask a general question to all who have tested Citrix application,

Do you people use unique Citrix login for each vusers when you run multi users load test in controller even though single Citrix user can launch multiple instances of published application ? or you use only 1 Citrix user simulate multi users load?

Thanks a lot for you help,
Rajiv

akshay mihir

unread,
Feb 15, 2012, 2:12:52 AM2/15/12
to LoadRunner
Hi:

I did face lot of problem's doing citrix Load test and ultimately
wrote a blog outlining everything i learnt. check if this helps

http://akshaymihir.wordpress.com/

Regards

Akshay

Vivek

unread,
Feb 15, 2012, 2:13:43 AM2/15/12
to lr-loa...@googlegroups.com
Design a scenario that simulates expected application usage in real world, learn why it's important to simulate a real user interaction. Does your requirement states that one single user will have to open multiple concurrent sessions with the application, yes?

Do expect surprises in prodcution if your load test is not based on an accurate load model that predicts the real time usage.
Reply all
Reply to author
Forward
0 new messages