Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

PHP OTA - CPU usage with ALM client v11.52

$
0
0

Hi

Our QC team recently upgraded us to a newer version of QC (from v11.00 -> v11.52).

Since they did that, my PHP script that collects QC information (defects) has started using 100% CPU and I can't for the life of me work out why, so I'm hoping someone here might have some guidance / advice!

 

I've upgraded the ALM Client on the server (Windows 2008 RC2) which uses PHP 5.6.22 Win32 VC11 x86.

I ensured first that the old client was removed, rebooted, then re-installed.

NOTE: If I use a VBS script to access (using the same query) then it executes fine and the script ends succesfully. So I know that the OTA dll is working.

However, if I use a PHP script, it executes fine (connects to QC and collects the data), reaches the end of the script but then creates a new thread (according to Procmon) and then starts consuming 100% of available CPU, but I'm unable to determine what it's doing, and no information is available for the thread.

Using a simple test page I get the same results. (QC User / domain / project / password intentionally omitted).

$comObject = "TDApiOle80.TDConnection";
$tdc = new COM($comObject) or die("Unable to instantiate Quality Center OTA API COM Object");
$tdc->InitConnectionEx($qcUrl);
$tdc->Login($qcUsr, $qcPwd);
If ($tdc->LoggedIn) {
	$tdc->ConnectProjectEx($qcDmn,$qcPrj,$qcUsr,$qcPwd);
}
If ($tdc->Connected) {
	If ($tdc->LoggedIn) {
		$tdc->Logout();
	}
	If ($tdc->Connected) {
		$tdc->ReleaseConnection();
	}
}

Does anyone have any suggestions? It's driving me nuts.

I'd rather use the REST API, but unfortunately the SSL key they have generated isn't sufficiently secure enough for curl to run it ("error:14082174:SSL routines:ssl3_check_cert_and_algorithm:dh key too small") and it looks like there's no workaround for that one.

 

Thanks in advance for any help!


Viewing all articles
Browse latest Browse all 5491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>