Citrix users failing at ctrx_nfuse_connect statement

350 views
Skip to first unread message

siva

unread,
Feb 12, 2011, 11:03:22 AM2/12/11
to LoadRunner
Dear All,

We have a requirement to test citrix application with 1000 users.

We were able to prepare the citrix scripts however they are failing
under load at ctrx_nfuse_connect statement with memory voilation
exception error.

I started with 200 users and 63 users failed at nfuse statement with
the memory violation error. I could not understand the reason for the
failures.

I am using Ladrunner 9.52.

I have correlated the session Id and launchID replaced with future
time stamp.

Can you please share your thought on this. How can I figure out the
reason for the failures...?

Regards,
siva

venkat kumar

unread,
Feb 14, 2011, 4:16:09 AM2/14/11
to lr-loa...@googlegroups.com
What is the ramp up ..you are giving . make it around 1 user 45 secs .try it and let me know .


--
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

siva

unread,
Feb 14, 2011, 6:05:03 AM2/14/11
to LoadRunner
Hi Venkat,

I will surely try this option...But I see sometimes the first user is
itself failing at ctrx_nfuse_connect statement..So I hope rampup rate
is not an issue.

Dear All,

I also found a hint for these failures on a published document.

Hint :
During replay LoadRunner takes the first response from the server and
saves the body into the file nfuse_(null).ica located inside the
script directory. We then parse thru this file and connect to the
server specified. If the first response from the server is a
redirect, then it will fail during replay. As a workaround, you need
to manually correlate the dynamic .ica file. Below is an example of
how to do so.

int fp;
char * icafile;
web_cleanup_cookies();
web_set_max_html_param_len("4096");

web_reg_save_param("icadata", "LB=WFClient", “RB=", LAST);

web_url("Default.asp",
"URL=https://mercury.com/
NFuse_Application=Notepad&NFuse_MIMEExtension=.ica")",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);

icafile = (char *)malloc(strlen(lr_eval_string("<icadata>")) + 100);
sprintf(icafile,"[WFClient%s",lr_eval_string("<icadata>"));
fp = fopen("C:\\temp\\icafile.ica", "w");
fprintf(fp, icafile);
fclose(fp);

ctrx_set_connect_opt(ICAFILE,"C:\\temp\\icafile.ica");

//ctrx_nfuse_connect(…);

I am failing to use this solution. I tried to replace
ctrx_nfuse_connect statement with web_url statement to download
dynamic ICA file but could not frame exact request to download the ICA
file. Can somebody please help me with this?.

I am not sure is this a proper workaround or not..?

I raised a ticket with HP..I will surely post if I get the solution
from HP before you give me one.

Thanks and Regards,
siva
> >http://groups.google.com/group/LR-LoadRunner?hl=en- Hide quoted text -
>
> - Show quoted text -

siva

unread,
Feb 14, 2011, 2:44:02 PM2/14/11
to LoadRunner
Hi Venkat,
I increased the rampup rate but still I am getting failures.

Dear All,

I checked the client requests at failed connections and I found that
few cookies are missing in the requests, one of them are dynamic so
could not add all of them using web_add_cookie. Is anybody faced the
issues with cookies in citrix script?

have'nt got any response from HP....:)

Thanks and Regards,
siva
> > >http://groups.google.com/group/LR-LoadRunner?hl=en-Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -

venkat kumar

unread,
Feb 15, 2011, 2:58:11 AM2/15/11
to lr-loa...@googlegroups.com
Siva,
 
Please try this options.
 
1. Enable the cookies( We tried this option and it worked)
2. Please make sure that ,users are having single session.
3. If the 2nd point is correct ,ensure that the parameter setting are kept unique and once for userID parameter.
4. Have you done the citrix environment setup in LGs you are running.(Like registry update and citrix client )
 
 
Let me know your output.
 
Thanks,
Venkat

siva

unread,
Feb 15, 2011, 5:19:00 AM2/15/11
to LoadRunner
Hi Venkat,

Thanks for your suggetions...Please find my comments below.

1. Enable the cookies( We tried this option and it worked) -- where
to do please in browser or loadrunner?
2. Please make sure that ,users are having single session. -- Done
3. If the 2nd point is correct ,ensure that the parameter setting are
kept
unique and once for userID parameter. -- Done
4. Have you done the citrix environment setup in LGs you are running.
(Like
registry update and citrix client ) -- Done

Could you please update me soon...

Thanks and Regards,
siva
> > > > >http://groups.google.com/group/LR-LoadRunner?hl=en-Hidequoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -
>
> > --
> > 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- Hide quoted text -

venkat kumar

unread,
Feb 15, 2011, 9:42:51 AM2/15/11
to lr-loa...@googlegroups.com
Siva,
 
One more thing to update you is
 
1 .Each LG will support not more than 30 Citrix Vusers.Not usre for your project. let me know how many LGs are you using for 200 Citrix Vusers.
2. Also provide your script to me.
 
Thanks and Regards,
Venkat

snehamoy

unread,
Feb 15, 2011, 9:02:14 AM2/15/11
to lr-loa...@googlegroups.com
Enable the cookies to load for each iteration.
Ideally loadrunner tries to load from the past steps,but in your case make
your script to run like it runs manually for each iteration.

siva

unread,
Feb 15, 2011, 4:00:35 PM2/15/11
to LoadRunner

Dear All,

Sorry for misleading you. The issue was actually with one of the web
servers. That is now resolved.

Hi Venkat,

Acording to the test run my load generator must be able to handle 150
users(windows 2003 with 4 GB RAM) concurrently.

Thanks and Regards,
siva
On Feb 15, 9:42 am, venkat kumar <sadankum...@gmail.com> wrote:
> Siva,
>
> > > >http://groups.google.com/group/LR-LoadRunner?hl=en-Hide quoted text -
Reply all
Reply to author
Forward
0 new messages