Skip to main content

Java Over HTTP Issue - Source Directory or File Does Not Exist

The issue happens when you record the application using java over http protocol. It is a bug in the loadrunner and the HP team fixed the issue with the following solution  there is also a patch which you need to download. If you have HP Passport access, please go through below link.


Error:

C:\Documents and settings\noname)\LocalSettings\Temp\noname10\data\vuser_init.java to C:\Documents and settings\no nameLocalSettings\Temp\noname10\data\vuser_init.java(Source directory or file does not exist).

File not found '<Temp>\<Script>\data\Actions.java'
File not found '<Temp>\<Script>\data\vuser_init.java'
File not found '<Temp>\<Script>\data\vuser_end.java'

Or:

Failed to copy the file C:\<Path to script>\data\vuser_init.java to C:\<Path to script>\vuser_init.java
Failed to copy the file C:\<Path to script>\data\Action.java to C:\<Path to script>\Actions.java
Failed to copy the file C:\<Path to script>\data\vuser_end.java to C:\<Path to script>\vuser_end.java

Cause:

The JVM fails to launch inside Vugen in order to parse the script and convert the custom_requests into valid XML / Java Objects.

Solution:

Make sure you are using Java 6 with loadrunner 11.4 and below version.

Turn on the Windows 3GB switch and replace the existing "vugen.exe" with the appropriate updated version:

vugenLR11SP1.zip
vugenLR11SP2.zip
vugenLR11SP3.zip
vugenLR11SP4.zip

The system should then be restarted for the change to take effect. The change allows the operating system to enable LargeAddressAware programs to use the additional virtual memory address space. Note that the virtual address space is not related to the amount of physical memory in the system.

Having 3GB of virtual address space available to LargeAddressAware processes allows sufficient memory for Vugen to launch the JVM.

Please see the following links for more information about the 3GB switch and how to enable it:


Note: In some cases enabling the Windows 3GB switch has been known to cause issues such as system instability or application crashes. If this happens then the amount of virutal address space available to LargeAddressAware processes can be fine-tuned such that not all of the 3GB address space is available to the process, with the difference being returned to the kernel. A further switch (/USERVA=xxxx) where xxxx is the total size available to the process can be used together with the 3GB switch. For example:

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional 3GB" /3GB /USERVA=2800 /fastdetect  /BOOTLOG

For more information about the /USERVA switch please refer to the following Microsoft article:


Comments

Popular posts from this blog

NeoLoad Interview Questions and Answers

Here are some of the interview questions and answers on NeoLoad:
What is NeoLoad?
NeoLoad is a performance testing tool designed to test different types of web, standalone and mobile applications.
What is the difference between Loadrunner, JMeter and NeoLoad?
Click here for differences
What are the different counters you monitor in NeoLoad?
Average Response Time(requests), average response time(pages), average requests/s, average throughput, current response time(requests), current response time(pages), current requests, current throughput, current users count, controller cpu load, controller memory load etc.
What are the different type of tools you can integrate with NeoLoad?
App Dynamics, CA APM Integration, Dyna trace integration, HP ALM or Quality Center Integration, Java and Jamo Solutions M-eux Test Integration, Jenkins Integration, perfecto mobile integration, selenium integration.
What are the different type of Operating systems you can monitor?
Linux Monitor, Solaris Monitor, AIX …

File operations in loadrunner with examples

In this post I will explain how to capture a value from server response and save to a text file using vugen.
How to capture and save to text file using loadrunner:
First I have recorded the script using bing.com and then i searched for IBM. We will get 10 results. I have captured all the 10 values and saved to a file.
Here is the code for that.

Sitescope Monitoring Tool Features and Monitors

Why Sitescope is called Agentless Monitoring Tool?
HP SiteScope monitors the application/infrastructure/server/operating system without installing any agent software on the system to be monitored. This feature makes the installation, usage and maintenance of Sitescope simpler when compared with the any performance monitoring tools like Diagnostics.
Sitescope Monitors:
Sitescope has also upgraded and changed drastically to meet the rapidly changing technologies and environments like virtualization and cloud computing. Using Sitescope we can monitor different web servers, application servers and database servers. We can also monitor operating systems Windows, Linux, Sun Solaris, IBM AIX. It has more than 100 monitors including Weblogic, Websphere, SAP, SIEBEL, SNMP, LDAP, Network Monitor etc. HP SiteScope can also monitor cpu utilization, response time, disk space, and resource availability of a variety of host types and application platforms.
Sitescope Features:
SiteScope provides failover …