Re: Setting process priority

From: Date: Sun, 21 Jul 2002 05:17:27 +0000
Subject: Re: Setting process priority
Groups: php.general 
Request: Send a blank email to php-general+get-108700@lists.php.net to get a copy of this message
>I'm using php to generate a dynamic pdf document and when ready send it with >email. >Since it takes few minutes to generate I start a new process with popen that >makes the pdf like this > > popen("./pdf.php \"".$outputarray."\" > /dev/null &", > "r"); > >pdf.php then generates it and everything is ok but this new process takes so >much cpu that the site is halted for these few minutes. >My question... is there a way to set pdf.php-process to a lower priority? >I've searched everywere and couldn't find it. > >Please reply in email since I will miss it otherwise Are you 100% sure the whole server is being slammed by this?... Or is it just the page you are viewing is waiting for the popen to finish, depsite your & in the command?... I dunno if popen returns the process id number or not, but I *THINK* you can reduce the priority with another exec() if it does... -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#108700) next »