Re: [OpenSTA-users] Virtual users not heeding the Mutex
Brought to you by:
dansut
|
From: Hurkes, R. <rh...@fo...> - 2007-04-17 12:49:49
|
Thanks Dan! The problem was with cached .FVR files, for future reference to anyone searching this list. -----Original Message----- From: ope...@li... [mailto:ope...@li...] On Behalf Of Dan Downing Sent: Tuesday, April 17, 2007 6:41 AM To: 'OpenSTA users discussion and support' Subject: Re: [OpenSTA-users] Virtual users not heeding the Mutex Rob wrote: >Hi all, I am trying to get my script to work and I am having issues >using the MUTEX function. I have a file called list.FRV which has 5 >usernames in it. From the FAQ and the mailing list, I made sure my SET >is within the MUTEX, and I believe the scope is correct for what I'm <trying to do. > CHARACTER*512 fileuser, FILE =3D "list", SCRIPT > CHARACTER*100 user, LOCAL > > ACQUIRE MUTEX "LOGIN" > NEXT fileuser > SET user =3D fileuser > LOG "User: ", user > RELEASE MUTEX "LOGIN"=09 > > PRIMARY POST URI > >When I run the test, I get in my log file "LOG: User: opensta," for all >of my virtual users. I want VU1 to take the first entry in list.FRV, VU2 >to take the second entry in list.FRV, and so on. Rob, everything looks right here (assuming "opensta" is the first value in your file), *except* that you need to change the scope of fileuser to GLOBAL--so that *all threads* (aka v-users) share this file and get the "next" value as you expect. Also, you may trip on the known issue of "cached .FVR files", where new values you added to fileuser after creating the variable "disappear". To resolve, delete the cached files in F:\OpenSTA\Engines\Temp. ...Dan www.mentora.com ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --=20 OpenSTA-users mailing list Ope...@li... Subscribe/Unsubscribe/Options: http://lists.sf.net/lists/listinfo/opensta-users Posting Guidelines: http://portal.opensta.org/faq.php?topic=3DUserMailingList |