Wikis - Page

Test run with Java script fails: Error: bad allocation

1 Likes

We just migrated to Loadrunner Enterprise 2022R2 and we have a failure that we didn't have in former versions.

On some LoadGenerators we have an issue when we run a test that needs Java (Java VUser, Java over http). test test is failing for these LGs. On other servers the test is executed without this issue. 

Issue:

Error: bad allocation

Error: Invalid host or port number. Probably Java wasn't spawned.

Warning: Extension java_int.dll reports error -1 on call to function ExtPerThreadInitialize

Error: Vuser failed to initialize extension java_int.dll.

Error: The remote host's status is 'Failed'. Check the remote host machine [and verify that it has not crashed]. [MsgId: MERR-29722]

Solution:

On our servers the services are running with a technical user because the JDK is loaded from a network share. To solve the issue on the specific LG that doesn't work locate the file:

“C:\Users\<technical user>\AppData\Roaming\Micro Focus\LoadRunner\Java\LR_separate_process.ports”

You can either clean the entries in that file or delete the file.

Now you can run the test again and it will be executed as expected.

Labels:

Support Tips/Knowledge Docs
Comment List
Related
Recommended