ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins. Read more for important details.
ALERT! The community will be read-only starting on April 19, 8am Pacific as the migration begins.Read more for important details.
Absent Member.
Absent Member.
1254 views

Failed to copy file ... Error recording a Java Applet using Java over HTTP protocol

Hello,

 

I have an applet that I need to record using the Java over HTTP protocol. The applet communicates via the HTTPHeader Stream Format Class with the server.

 

I have tried this with LR 11 SP 4 installed on Windows 7 Professional 32 bit (following the instructions from teh KB article I have also replaced the Vugen.exe) BUT i cannot enable the 3GB switch - it is not allowed within the company.

 

I have also got a 64 bit Windows 7 with LR 11 (SP4 does not install) having the smae issues.

 

I have raised this with HP support (through our partner) but have not got any further.

 

What else can I do?

 

Thanks

Bernhard

0 Likes
3 Replies
Absent Member.
Absent Member.

You may need to speak with your IT deparment as this, as far as I know, is the only way to get this to work.

 

Regards,

Mario

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
0 Likes
Absent Member.
Absent Member.

To address the issue you can introduce the environment variable _JAVA_OPTIONS with value -Xms10M -Xmx20M to vugen.exe process (e.g. via batch file in LR\bin dir

set _JAVA_OPTIONS= -Xms10M -Xmx20M

vugen.exe

)

It will override default JVM memory ergonomics and will help to squeeze JVM into vugen process, which is rather fragmented to find continuous free memory for JVM heap (fragmentation is the reason of the error). Keep in mind that the variable will also inherited by child processes and will affect JVMs if there are any. During JOH (java over http) recording it will affect IE and underlying JVM which runs applet

 

Maybe even better workflow would be to record script with having "failed to copy" and then restart vugen via batch file, reopen script and regenerate it.

 

You can play with values of Xms and Xmx (-Xms50M -Xmx100M worked for me)

0 Likes
Absent Member.
Absent Member.

Hi,

thank you very much for your post. We have tried various combinations, but so far there was no improvement to the situation.

We will start with a new machine and install from scratch and see how this goes.

This will take a while but I'll update you if this helped.

Thanks

Bernhard

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.