I am using a web-vuser, While running the script for 1 vuser the number of connections made at the web server are 5.
whereas while navigating the through the web site only one connections is made at the server.
we are unable to figure the problem.
Please kindly let us know what could be the possible solution.
We use Weblogic where users are assigned 'session' cookies. Because I didn't pass the session cookie each time as a web_add_header a 'new session' was created at the start of every iteration and possible every action.
You might want to check whether you are using session cookies.
Number of Connections and number of users are two different things.
A single user can open multiple connections to the server, and that is what happens normally when you are are browsing the sites through IE or NN. Say there are few images in the page or the page contains frames which in turn point to other HTML pages, in all such scenarios typically browser opens multiple connections to the server, for downloading different images/pages simultaneously. This multitasking algorithm help speed up the loading of the page.
Loadrunner - which is emulation of a complex HTTP client - also does such multi-connection gambits. In HTML mode (A level functionally parallel to web-browser) it does it automatically, in HTTP mode (one level lower than your web-browser) you need to use the function web_concurrent_request to bunch a group of resources (HTML pages/images/js/css) to be downloaded simultaneously using multiple connections to the server.