Share this page

# Java Record Replay protocol recording tips

This section gives tips and important information to consider when recording a Java Record Replay Vuser Script.

- Make sure that you have properly installed a JDK on the machine running the Vusers. For details, see Set up the Java environment.

- The Java Record Replay protocol can record 32- and 64-bit applications.

- You can also specify a batch (.bat) file as the application to record.

- Make sure to fill in the correct recording information. For details, see Start Recording dialog box.

- When you load an applet or application from VuGen during recording, it may take several seconds longer than if you were to load it independent of VuGen.

- If you intend to run the Java Vuser script as a thread, ensure your code is thread-safe.

  Although .NET-based and Java protocols support creating threads, we recommend that you do not use background threads in real load testing scenarios because:

  - Threads can degrade tests scalability.

  - Threads can affect performance measurements.

  - The utility functions' behavior is undetermined if called from any thread except the Vuser main thread which runs the vuser_init, Action, and vuser_end actions. This applies to all functions named lr*.

## See also

- Use VuGen
- Record scripts

https://admhelp.microfocus.com VuGen,Professional Performance Engineering,Performance Engineering for Developers 8942
Tips to improve your search results... OpenText™ Virtual User Generator Help Center OpenText™ VuGen Help 26.1-26.3 All View Local Help Center View Online Help Center Version: