When the LoadRunner agent runs as a service it runs under System user by default. The default temporary files folder for the System user is C:WindowsTemp. However, LoadRunner/Performance Center has implemented logic that avoids writing log or other temp files under the Windows folder. This is why, instead of writing to C:WindowsTemp it changes the path.Especially with Performance Center, the alternative path created is relatively long. It may become so long that when trying to create a snapshotunder it the creation process fails. The snapshot file name is long as well and the path including the snapshot name exceeds the maximum of 256 characters for Windows paths.
Change the temporary files folder pathfor the System user to a path that does not contain the Windows folder.
To do that, follow the steps below:
1. On all machines used as Load Generators, go to Control PanelSystem and SecuritySystem -> Advanced -> Environment Variables -> System Variables;
2. Change the values for TEMP and TMP to C:TEMP or other short path that does not reside under the Windows folder;
3. Restart the machines.