Micro Focus QTP (UFT) Forums
QTP runs slow when scheduled through a Virtual Machine - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: QTP runs slow when scheduled through a Virtual Machine (/Thread-QTP-runs-slow-when-scheduled-through-a-Virtual-Machine)



QTP runs slow when scheduled through a Virtual Machine - BajaJeff - 06-10-2013

I have been having an issue with QTP running slow when scheduled scripts run on a virtual machine and I haven't been able to figure out why, so I'm looking for some insight.
Currently we are running QTP 11.0.
We schedule jobs through an application called TIDAL scheduler.
We execute the scripts on a Virtual Machine using VMWare.
We autologon this machine using Session 0 after reboots.
We have the QTP options set to run in Fast mode.

The issue we have is when these jobs run, it will take approx. 22 minutes to execute, but when we are RDP'd into the VM with the session window very small on our desktop, the same jobs run in 12 minutes. We have setup the recording options within QTP and found that it takes 45 - 60 seconds for browsers to render pages when we are not RDP'd and the same jobs render the pages normally when we are RDP'd. can anyone tell me how I can correct this or where to look?


RE: QTP runs slow when scheduled through a Virtual Machine - Ankur - 06-10-2013

Are you using a multi core VMWare instance? Configure to use only a single core using your VM client software. Let me know how it goes.


RE: QTP runs slow when scheduled through a Virtual Machine - BajaJeff - 06-11-2013

Ankur, Thanks for the response and enjoy your blogs. I have verified we are running a single core from a cmd promt:
Microsoft Windows [Version 6.1.7601]
Copyright © 2009 Microsoft Corporation. All rights reserved.
C:\Users\userID>wmic cpu get NumberOfCores
NumberOfCores
1
C:\Users\UserID>


RE: QTP runs slow when scheduled through a Virtual Machine - Ankur - 06-11-2013

1) Memory is divided between VMWare and the host machine. I'm sure you must have checked that already but just in case, Please check if you have sufficient memory on VMWare required for QTP to run while the host is running.
2) Under task manager, set Affinity to run with only 1 CPU.

I am providing you suggestions above, please ensure you have a proper backup at place.