Browse Source

updated benchmark procedure

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@682 a333f486-631f-4898-b8df-5754b55c2be0
romainq 15 years ago
parent
commit
2437177d4a
1 changed files with 5 additions and 3 deletions
  1. 5 3
      setup/benchmark.php

+ 5 - 3
setup/benchmark.php

@@ -31,6 +31,8 @@ require_once('../application/loginwebpage.class.inc.php');
 require_once('../application/utils.inc.php');
 require_once('./setuppage.class.inc.php');
 
+ini_set('memory_limit', '2048M');
+
 class BenchmarkDataCreation
 {
 	var $m_iIfByServer;
@@ -57,9 +59,9 @@ class BenchmarkDataCreation
 		$iNWDevices = ceil($iPlannedCIs / 10);
 		$iBigTicketCIs = ceil($iPlannedCIs / 10);
 		$iInterfaces = $iServers * $this->m_iIfByServer + $iNWDevices * $this->m_iIfByNWDevice;
-		$iApplications = $iServers * 10;
-		$iSolutions = $iApplications;
-		$iProcesses = $iSolutions * 2;
+		$iApplications = $iServers * 5;
+		$iSolutions = ceil($iApplications / 2);
+		$iProcesses = ceil($iSolutions / 2);
 
 		$this->m_aPlanned = array(
 			'Network devices' => $iNWDevices,