Re: Vugen 11, Flex Protocol - Java Heap Space Error (2928 Views)
Reply
Occasional Advisor
Ramkumar_K
Posts: 9
Registered: ‎02-08-2012
Message 1 of 15 (2,933 Views)

Vugen 11, Flex Protocol - Java Heap Space Error

Hi,

 

While recording Flex application using vugen 11.03, below notication message was displayed on code generation (refer the attachment) . When i look into the script particular AMF call was not deserialized.

 

Error Msg - Externalizable parsing failed: java.lang.OutOfMemoryError: Java heap space.

 

How can we resolved this issue ?

 

I tried increasing system heap size , but still the problem continues.

 

Kindly help me on this.

 

Thanks,

Ram

HP Expert
KMadan
Posts: 1,086
Registered: ‎05-27-2009
Message 2 of 15 (2,928 Views)

Re: Vugen 11, Flex Protocol - Java Heap Space Error

Increase the available memory as follows:

  1. Close all LoadRunner applications  including Vugen,
  2. Open the "<LoadRunner>\dat" folder and edit the file "flex_ro.ini" using notepad,
  3. Add the following line under section [FLEX_RO]
FlexJvmParams=-Xmx128m
Also disable the DEP completely.

Madan
Occasional Advisor
Ramkumar_K
Posts: 9
Registered: ‎02-08-2012
Message 3 of 15 (2,920 Views)

Re: Vugen 11, Flex Protocol - Java Heap Space Error

Thanks, It is working fine now :)

Advisor
vprasadreddyk
Posts: 19
Registered: ‎06-29-2012
Message 4 of 15 (2,714 Views)

Re: Vugen 11, Flex Protocol - Java Heap Space Error

Hi madan,

 

Using Vugen 11.00(patch 3 only didnot installed patch 1& patch 2) am trying to generate the script usiing(flex+web(HTTP?HTML) protocals.but it's saying some times "OutOfmemery:java heap space "error and some times it's saying missed jar files.i have added all the jar files whatever have used by developers.but still no luck.

 

after ckick on the stop button it's taking too much time for generating script and some times not responding vugen.

 

Please tell me the solution for resolving this issue.

Only web(HTTP?HTML) protocal it's working fine.

 

please find attached screen shot for reference.

 

Thanks,

Prasad

Advisor
vprasadreddyk
Posts: 19
Registered: ‎06-29-2012
Message 5 of 15 (2,712 Views)

Re: Vugen 11, Flex Protocol - Java Heap Space Error

Hi Ram,

Now i am facing same problem plz forward solution to me

Using Vugen 11.00(patch 3 only didnot installed patch 1& patch 2) am trying to generate the script usiing(flex+web(HTTP?HTML) protocals.but it's saying some times "OutOfmemery:java heap space "error and some times it's saying missed jar files.i have added all the jar files whatever have used by developers.but still no luck.

after ckick on the stop button it's taking too much time for generating script and some times not responding vugen.

Please tell me the solution for resolving this issue.

Only web(HTTP?HTML) protocal it's working fine.

please find attached screen shot for reference.

Thanks,

Prasad
Respected Contributor
rpagadala09
Posts: 382
Registered: ‎11-19-2010
Message 6 of 15 (2,658 Views)

Re: Vugen 11, Flex Protocol - Java Heap Space Error

Hi RamKumar,

 

I am also getting the same error.

 

I performed the steps

 

Increase the available memory as follows:

  1. Close all LoadRunner applications  including Vugen,
  2. Open the "<LoadRunner>\dat" folder and edit the file "flex_ro.ini" using notepad,
  3. Add the following line under section [FLEX_RO]
FlexJvmParams=-Xmx128m
 
But I don't know where and how to turn off/ disable DEP completely. 
Could you please tell how to turn off/ disable DEP completely?
 
Please advise as soon as possible.
 
Thanks,
Raj
Occasional Visitor
Manohar
Posts: 1
Registered: ‎10-12-2012
Message 7 of 15 (2,508 Views)

Re: Vugen 11, Flex Protocol - Java Heap Space Error

Hi All, I am facing the same issue too

 

java.lang.outofmemoryerror: java heap space

 

as suggested, I have modified the Flex_ro.ini file. But, I'm not sure how to disable DEP. Could anyone help me on how to disable DEP.

 

appreciate your help

 

Thanks & Regards

Manohar K

 

 

Occasional Advisor
Ramkumar_K
Posts: 9
Registered: ‎02-08-2012
Message 8 of 15 (2,505 Views)

Re: Vugen 11, Flex Protocol - Java Heap Space Error

Bot. The errors are different.

 

Reasons for missed jar, vugen is unable to decompile the flex object communication. We greed to get the jar files to resolve the problem.

 

reasons for heap issue, response XML size is huge on some situation. That is why the heap issue occurs randomly. 

 

to resolve the heap issue, we need to change the configuration files entry in the installation folder as mentioned above.

Occasional Advisor
Ramkumar_K
Posts: 9
Registered: ‎02-08-2012
Message 9 of 15 (2,503 Views)

Re: Vugen 11, Flex Protocol - Java Heap Space Error

Hi Manohar , 

 

no need of disabling DEP.  if we change the JVM entry alone will resolve this problem.

 

 

Occasional Visitor
Manohar_K
Posts: 1
Registered: ‎11-16-2012
Message 10 of 15 (2,413 Views)

Re: Vugen 11, Flex Protocol - Java Heap Space Error

Hi Ramkumar,

 

Thanks a lot for your reply, I've tried what you've suggested as in changing the JVM entry and yet I'm facing the same issue.

 

As you've already said, yes it does look like one particular amf call has huge size and that's where i'm observing the issue.

 

Please let me know if I have to make any further changes to resolve the issue.

 

 

 

Thanks & Regards

 

Manohar

 

Occasional Advisor
Smashing
Posts: 6
Registered: ‎01-16-2013
Message 11 of 15 (2,332 Views)

Re: Vugen 11, Flex Protocol - Java Heap Space Error

Hi Ramkumar & Manohar

 

 

Please update me if the issue is resolved. I am also facing same Heap issue and i tried setting

 

FlexJvmParams=-Xmx128m in Flex_ro.ini file

 

But after fixing up some ClassNotFound error this heap issue again pop up.

 

Please help to resolved the issue if u have found any solution.

 

Thanks

 

Advisor
vprasadreddyk
Posts: 19
Registered: ‎06-29-2012
Message 12 of 15 (2,310 Views)

Re: Vugen 11, Flex Protocol - Java Heap Space Error

Hi,

 

Follow the steps for resolving the above problem.

 

  1. Rename the file to ConvertExternalizableObject.jar.
  2. Go to the Load Runner or Load Generator jars folder on both the Controller and the Load Generator machines.
  3. Backup the original ConvertExternalizableObject.jar file and apply the new jar.

 

if it is not helpful,better to install patch 4.

 

They have resolved out of memory issue in patch 4.

 

Regards,

Prasad

Occasional Advisor
Smashing
Posts: 6
Registered: ‎01-16-2013
Message 13 of 15 (2,303 Views)

Re: Vugen 11, Flex Protocol - Java Heap Space Error

Hi Prasad

 

I am already using Patch 4 in Vugen 11

Also could you please more specific on which jar file i need to rename as ConvertExternalizableObject?

 

 

Thanks

Occasional Advisor
Smashing
Posts: 6
Registered: ‎01-16-2013
Message 14 of 15 (2,261 Views)

Re: Vugen 11, Flex Protocol - Java Heap Space Error

[ Edited ]

Hi

 

Anyone can usggest what is the min RAM size required for the loadrunenr using Flex protocol.

 

Thanks

HP Expert
KMadan
Posts: 1,086
Registered: ‎05-27-2009
Message 15 of 15 (2,248 Views)

Re: Vugen 11, Flex Protocol - Java Heap Space Error

You may refer to the ReadMe and check the minimum configuration for installation. It is enough for any protocol.


Madan
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.