
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Abnormal big number of user session generated when running script under vuser
Hi, all
I have been using the HTML protocol to record my script on the SAP portal webdynpro application. After I do all the correlation, I was able to replay it in vugen. However, when I simulate a run of let's say 5 vusers, I noticed that almost 200 SAP sessions were connected when all the steps are done. No failure though.
It almost looks like each step in the script is creating an SAP user session(from SM04/AL08) which is not right. Of course, if I only run the SAP application without LR, one user session is created. I am pretty sure I am not the only one seeing this issue. Please advise the fix for this issue.
Thanks,
Jonathan.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Abnormal big number of user session generated when running script under vuser
Could you replay once in VuGen and check the SAP sesssion? How many SAP sessions are made if we replay with VuGen?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Abnormal big number of user session generated when running script under vuser
Hi, Bach
If I run the script directly in vugen, only one user session is there. If I run with simulated vuser in the controller, many user sessions are created almost with each step.
Please advise.
Thanks,
Jonathan.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Abnormal big number of user session generated when running script under vuser
Hi,
Where did you place the function to terminate SAP session in the script? Action or Vuser_end?
When run in Controller, you run the script with number of vusers: 'untill completion' or 'duration'?
Load generator run as process or thread? Please confirm.
Thanks and Regards,
Chau
Chau Nguyen | SW Technical Support Consultant.
LoadRunner and Performance Center
If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Abnormal big number of user session generated when running script under vuser
Hi, Chau.
Here is the option I put in:
Do you see an issue?
Thanks,
Jonathan.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Abnormal big number of user session generated when running script under vuser
By the way, on the run-time settings, I deselect the "simulate a new user on each iteration" and it did not fix the problem.
Thanks,
Jonathan.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Re: Abnormal big number of user session generated when running script under vuser
Could you tell me where did you put the sript to log out or terminate SAP session?
If you put it in vuser_end, then run the test with duration, the action part will be repeated and the session will be increased.