Re: [OpenSTA-users] Virtual users not heeding the Mutex
Brought to you by:
dansut
|
From: Dan D. <ddo...@me...> - 2007-04-17 11:41:25
|
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 = "list", SCRIPT > CHARACTER*100 user, LOCAL > > ACQUIRE MUTEX "LOGIN" > NEXT fileuser > SET user = fileuser > LOG "User: ", user > RELEASE MUTEX "LOGIN" > > 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 |