Temp file under C:\Program Files (x86)\HP\Load Generator\Temp in load generator.

600 views
Skip to first unread message

timothy ma

unread,
Jun 14, 2016, 5:12:47 PM6/14/16
to LoadRunner

Hi

 

We are using IP spoofing for Load generator when execute performance testing.

Recently we find out the load generator server has lesser space on C: drive.

 

And there are series of temp file under C:\Program Files (x86)\HP\Load Generator\Temp\brr_rf2.217 which size over 50GB.

 

We try to check expert mode and under option to unchecked the temp file in the controller however those temp file still accumulate at load generator server especially when encounter many errors/failure.

 

Appreciate if any expert can advise how to disable from storing up those temp files or any setting switch from C:\ drive to D:\ drive which is location for data purposely.

 

Great thanks

James Pulley

unread,
Jun 14, 2016, 5:17:03 PM6/14/16
to LoadRunner
Not a LoadRunner issue.   An operating system issue.   LoadRunner simply leverages where the windows TEMP environment variable is pointing.

Change where the Windows TEMP and TMP environment variables point to on the Windows based load generator.   Reboot the load generator.  When it comes back up go to a command prompt  and use the "set" command to observe where the environment variables are pointing, ensuring that it is to the new drive location.

timothy ma

unread,
Jun 14, 2016, 7:41:15 PM6/14/16
to LoadRunner
James

Thank you for your advice.

I type set in command prompt and the temp and tmp are pointing to C:\users\<<login user>>\Appdata\Local\Temp
It is not C:\Program Files (x86)\HP\Load Generator\Temp\

Those temp files are generated from running load test using ip spoofing from LG itself.

We don't know how to stop those temp file generated or allocate them to location e.g. D:\temp

James Pulley

unread,
Jun 14, 2016, 7:48:33 PM6/14/16
to LoadRunner
Environment variables are set inside of the windows operating system.  You will need administrative access to the Load Generator to accomplish this task.

Check the properties for the computer

Check advanced system settings

Check Advanced Tab, then environment variables.   Do not remove, only augment the appropriate TEMP and/or TMP environment variables.

Also, in the controller, check your properties on your load generator for options which may be available for relocation of temporary files.   You can also take a look under Tools/Options/RunTime file storage if you want to relocate from localhost to a network location.

Abdul Rahim

unread,
Jun 14, 2016, 7:48:33 PM6/14/16
to LR-Loa...@googlegroups.com

To add/change the temporary environemnt:

1. For Windows 2000 or Windows XP machine:

a. Right-click on the ‘My Computer’ icon on the desktop and select ‘Properties’.
b. Go to the Advanced tab and click on the ‘Environmental Variables’ button.
c. There are two sections listed: User Variables and System Variables. Under each section, you should see a variable for TEMP and TMP.
d. Double-click on these entries, and modify the location to the temporary environment created above.
Example:
Change from C:\Documents and Settings\<user>\Local Settings\Temp
Change to C:\TEMP
e. Click <Apply>.

2. For Windows NT machine:

a. Right-click on the ‘My Computer’ icon on the desktop and select ‘Properties’.
b. Go to the ‘Environmental’ tab.
c. There are two sections listed: User Variables and System Variables. Under each section, you should see a variable for TEMP and TMP.
d. Double-click on these entries, and modify the location to the temporary environment created above.
Example:
Change from C:\Documents and Settings\<user>\Local Settings\Temp
Change to C:\TEMP
e. Click <Apply>.


--
You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunne...@googlegroups.com.
To post to this group, send email to LR-Loa...@googlegroups.com.
Visit this group at https://groups.google.com/group/LR-LoadRunner.
To view this discussion on the web visit https://groups.google.com/d/msgid/LR-LoadRunner/20de1954-6fe1-4021-a449-0c073f7b78e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

timothy ma

unread,
Jun 15, 2016, 6:19:24 PM6/15/16
to LoadRunner
James

Environment variables

Temp: %userprofile%\AppData\Local\Temp

TMP: %USERPROFILE%\AppData\local\Temp

 

LG_PATH: C:\Program Files (x86)\HP\Load Generator\

 

Runtime File Storage

radio button: On the current vuser machine

Radio button: On a share network drive


I don't think temp or tmp pointing to C:\Program Files (x86)\HP\Load Generator\bin\temp


For runtime file storage

After checking to on a share network drive, the script cannot run in load controller as LG cannot be identified.


Thanks




James Pulley

unread,
Jun 15, 2016, 6:25:15 PM6/15/16
to LoadRunner
If that does not work then leverage your support contract and call HP.  

Pracgmatic Approaches:
(1) Before every performance test, dump the temp files created in the directory in question and bounce the load generator.  Use a batch file for the file deletion and the shutdown /r.  Not a bad idea in any case.
(2) reinstall your load generator on a different drive which would then result in the temp directory under the load generator software on that drive
(3) Experiment with a symbolic link for the directory in question which redirects to a temp directory on another drive

André Luyer

unread,
Jun 17, 2016, 8:52:33 AM6/17/16
to LoadRunner
It's a known problem.
Especially the "C:\Program Files (x86)\HP\Load Generator\Temp" can cause "path too long" errors.

In Performance Center version 12.20 patch 2 or LoadRunner version 12.02 patch 3 (and up) the location of the temporary directory is set in an ini file on the Controller which controls the load generator in question.
In older versions set the TMP environment variable on the load generator itself.
command: setx TMP D:\tmp /m

André

Op dinsdag 14 juni 2016 23:12:47 UTC+2 schreef timothy ma:
Reply all
Reply to author
Forward
0 new messages