from past few days i am facing a problem in itop, actually in my itop there are approx 2 lac incident ticket were open out of which approx 1.4lac tickets are in resloved condition , no problem yet but when Auto closed(duration one day) process run then not all ticket closed simultaneously means out 1.4 lac ticket only 50 ticket are in auto closed........so to solve this issue i just made a modification in Auto Closed file and run this file using cron or browser..
file code: Auto closed
class AutoCloseTicket1
{
public function Process()
{
$aReport = array();
// Get Resolved incident to be closed automatically according to incident_closure_delay set for the customer
$oSetIncident=newDBObjectSet(DBObjectSearch::FromOQL("SELECT Incident AS i WHERE i.status = 'resolved' AND i.resolution_date <= DATE_SUB(NOW(), INTERVAL 1 DAY) AND i.service_id=10"));
while ($oToClose = $oSetIncident->Fetch())
{
$oToClose->ApplyStimulus('ev_close');
//$oToEscalate->Set('tto_escalation_deadline', null);
$oToClose->DBUpdate();
$aReport['reached Auto close deadline'][]=$oToClose->Get('ref');}}
}
Second object file:main_autoclosed.php
if (!defined('DIR')) define('DIR', dirname(FILE));
require_once(DIR.'/../approot.inc.php');
//require_once(APPROOT.'/application/application.inc.php');
//require_once(APPROOT.'/application/nicewebpage.class.inc.php');
//require_once(APPROOT.'/application/webpage.class.inc.php');
//require_once(APPROOT.'/application/clipage.class.inc.php');
when we run main_autoclosed.php through cron then we run top command in linux then we notice number of php.ini instance created these php.ini instance consumed a lot of memory and cpu utilization.after running 2-3 hours system crashes because all space consumed .
2) when we run main_autoclosed.php on browser on window platform then we notice all the space in "c drive" consumed.
Please Help me to solve this issue.
Thanks & Regards
Pankaj
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello Sir,
from past few days i am facing a problem in itop, actually in my itop there are approx 2 lac incident ticket were open out of which approx 1.4lac tickets are in resloved condition , no problem yet but when Auto closed(duration one day) process run then not all ticket closed simultaneously means out 1.4 lac ticket only 50 ticket are in auto closed........so to solve this issue i just made a modification in Auto Closed file and run this file using cron or browser..
file code: Auto closed
class AutoCloseTicket1
{
// Get Resolved incident to be closed automatically according to incident_closure_delay set for the customer
while ($oToClose = $oSetIncident->Fetch())
{
$oToClose->ApplyStimulus('ev_close');
//$oToEscalate->Set('tto_escalation_deadline', null);
$oToClose->DBUpdate();
}
Second object file:main_autoclosed.php
if (!defined('DIR')) define('DIR', dirname(FILE));
require_once(DIR.'/../approot.inc.php');
//require_once(APPROOT.'/application/application.inc.php');
//require_once(APPROOT.'/application/nicewebpage.class.inc.php');
//require_once(APPROOT.'/application/webpage.class.inc.php');
//require_once(APPROOT.'/application/clipage.class.inc.php');
require_once(APPROOT.'/application/startup.inc.php');
require_once(APPROOT.'/webservices/autoclosed.php');
$auto_close=new AutoCloseTicket1();
$auto_close->Process();
unset($auto_close);
?>
?>
when we run main_autoclosed.php through cron then we run top command in linux then we notice number of php.ini instance created these php.ini instance consumed a lot of memory and cpu utilization.after running 2-3 hours system crashes because all space consumed .
2) when we run main_autoclosed.php on browser on window platform then we notice all the space in "c drive" consumed.
Please Help me to solve this issue.
Thanks & Regards
Pankaj