Renditions generate a lot of Temporary files in the following folders inside your ICS Server machine,
A good idea is to keep purging them regularly. Remember we need to stop PW Orchestration Framework while purging these folders. It is a good idea to automate this process to run regularly, like once every weekend.
You can create and run these 3 basic tasks in the Windows Task Scheduler of the server machine dedicated to ICS for PDF-
Task No. 1, Stop ProjectWise Orchestration Service
Create a batch file (.bat file) calling the following command,
NET STOP "Bentley Orchestration Shepherd"
Double click on your task in Task Scheduler to edit it. Under Actions tab, click on New. Action should be 'Start a program'. Browse to the batch file. Click OK.
If this does not work, try entering the command directly in the Actions tab as given below,
Program/Script = NET
Add arguments = STOP "Bentley Orchestration Shepherd"
Task No. 2, Purge the temp files
Purge the folders mentioned above using the following commands in the batch file,
del C:\Windows\Temp\*.* /s /f /q
del C:\ProgramData\Bentley\OrchFwrk\*.* /s /f /q
del <WorkingDirectoryIcsUSer>\*.* /s /f /q
Call the batch file under the Actions tab.
Task No. 3, Start ProjectWise Orchestration Service
Call the following command in the Actions tab,
Use a batch file or call it directly, whichever works for you.
Choose the triggers of these 3 tasks wisely. Run this task every weekend during your off-hours. It is a good idea to allow some time between Tasks 2 and 3- a sufficient window to clear the temp files before Orchestration Framework is kick-started again. A good starting point can be,
5 minutes between Tasks 1 and 220 minutes between Tasks 2 and 3
You can adjust these times depending on your server's load.
Few other recommended settings for creating a basic task as given in the General tab,
Should prevent clogging of C drive due to cached temp filesFiles (no longer required) will be removedFiles, if broken or corrupt, will be removed and re-downloaded - Effective and healthy server
It is entirely upon you and your project requirement to include the local Working Directory of the ICS User in the list of folders to be purged. Files would have to be re-downloaded and this might make renditions slow.You can also purge the Private Queues under Computer Management>Messaging Queuing when the ProjectWise Orchestration Framework service is stopped. These queues are regenerated on starting the service. This cures jobs stuck in the queues.