"HttpSendRequest" failed, Windows error code=12002 - Perf Center Error (13299 Views)
Reply
Advisor
krunal85
Posts: 15
Registered: ‎09-19-2011
Message 1 of 8 (13,299 Views)
Accepted Solution

"HttpSendRequest" failed, Windows error code=12002 - Perf Center Error

Hi All,
I am doing perf testing for one of our internal web application. I can run the created script successfully in VuGen (9.52) but performance center (9.5) throws following errors:
 
Action.c(1288): Error -27492: "HttpSendRequest" failed, Windows error code=12002 and retry limit (0) exceeded for URL="https://xxx/yyy/zzz/aaa/bbb/cccc/portfolio_performance.do?", Snapshot Info
Action.c(52): Error -27492: "HttpSendRequest" failed, Windows error code=12002 and retry limit (0) exceeded for URL="https:/xxx/yyyy/zzzz/homePage.do", Snapshot Info [MSH 0 1]
There are so many errors like above which point towards diff. URLs. I am trying to reach to 30 vusers but i am seeing errors occurring sometime at 10 users or 15 or sometime 21 users. I am using 1 LG.
FYI, i am using WinInet replay engine as default win-socket throws 401 error (even with web_set_user function) because of some secured JAVA applets. I can't even turn off window's integrated Auth, as that gives exception errors.  
If anybody has faced this error, please guide me. 
Thanks,
Krunal 
Please use plain text.
HP Expert
Suerte13cr
Posts: 736
Registered: ‎09-14-2011
Message 2 of 8 (13,272 Views)

Re: "HttpSendRequest" failed, Windows error code=12002 - Perf Center Error

Vugen runs script as a process, are you running your vusers as process or thread?

 

Regards,

Mario

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Advisor
krunal85
Posts: 15
Registered: ‎09-19-2011
Message 3 of 8 (13,271 Views)

Re: "HttpSendRequest" failed, Windows error code=12002 - Perf Center Error

I selected to run the vuser as a process in RTS.

 

Thanks,

Krunal

Please use plain text.
HP Expert
Suerte13cr
Posts: 736
Registered: ‎09-14-2011
Message 4 of 8 (13,263 Views)

Re: "HttpSendRequest" failed, Windows error code=12002 - Perf Center Error

Did that fix the issue? If so please mark this thread as solved.

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Advisor
krunal85
Posts: 15
Registered: ‎09-19-2011
Message 5 of 8 (13,253 Views)

Re: "HttpSendRequest" failed, Windows error code=12002 - Perf Center Error

Thabjs for the suggestion but I already did that before you suggested. Unfortunately even with that it gives me same error.

After doing some research on this  error i came to know that this error has to do something with the  WinInet replay. Some Requests are not going to server and they get time out (windows code = 12002) before they reach to server.

 

Thanks,

Krunal

Please use plain text.
Advisor
krunal85
Posts: 15
Registered: ‎09-19-2011
Message 6 of 8 (13,220 Views)

Re: "HttpSendRequest" failed, Windows error code=12002 - Perf Center Error

If aybody has any kind of suggestions, they are welcome. I want to know the root cause of this error.

 

Thanks,

Krunal 

Please use plain text.
HP Expert
Suerte13cr
Posts: 736
Registered: ‎09-14-2011
Message 7 of 8 (13,189 Views)

Re: "HttpSendRequest" failed, Windows error code=12002 - Perf Center Error

Hi Krunal,

 

As you mentioned this is particular to working with WinInet, and the error itself comes from WinInet API not specifically Vugen.

 

You can see in part of the replay you posted the errors come from resources during the replay where they timed out.

 

If you are forced to use WinInet then this will occur, but if you can use Sockets you may want to try that option instead or a Click and Script protocol.

 

Regards,

Mario

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
Please use plain text.
Advisor
krunal85
Posts: 15
Registered: ‎09-19-2011
Message 8 of 8 (13,186 Views)

Re: "HttpSendRequest" failed, Windows error code=12002 - Perf Center Error

Thanks for the Reply.

 

Finally i came to conclusion that HttpSendRequest time out only occurres when any transaction takes more than 30 sec to connect to server. This default 30 sec time is because of the use of WinInet Replay engine. Thus this error pops up when you are running script with winInet replay and transactions are taking more than 30 sec. Only thing to get rid of this error is to  fine tune the whole system and check the backend and servers to see any request que has formed up. 

 

Another option is to use web_set_max_retries ("X") to increase the limit of 30 sec. I wouldn't recommend that.

 

Thanks,

Krunal

Please use plain text.
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