WEBSITE

PowerShell for SharePoint 2013 : Word Automation Services - Modify Job Monitoring, Modify Conversion Timeouts

10/18/2013 7:13:42 PM

1. Modify Job Monitoring


Scenario/Problem: You need to modify the job monitoring timeout value.


Solution: Use the ConversionTimeout parameters with the Set-SPWordConversionServiceApplication cmdlet.

The job-monitoring configuration setting is modified using the ConversionTimeOut parameter. This value is the number of minutes a conversion should be in progress before the timer job restarts the conversion. The default is 5 minutes. The valid range of values is 1 to 60 minutes. Listing 1 shows a sample modification of the job monitoring setting.

Listing 1. Changing the Job Monitoring Timeout Setting


Set-SPWordConversionServiceApplication
-Identity "Word Automation Services"
-ConversionTimeout 10


This is different from the actual configurations that determine how long a conversion can be nonresponsive or how long a conversion should run. You can modify those values using the parameters explained in the next section.

2. Modify Conversion Timeouts


Scenario/Problem: You need to modify conversion timeout values either for running or nonresponsive conversions.


Solution: Use the KeepAliveTimeout or MaximumConversionTime parameters with the Set-SPWordConversionServiceApplication cmdlet.

To confuse matters, the ConversionTimeout parameter explained in the previous section deals with job monitoring, not the timeouts of conversion processing. Use the KeepAliveTimeout parameter to determine how many seconds a process can be nonresponsive before it is terminated. The valid values for this setting are 10 to 60 seconds, and the default is 30 seconds.

Use the MaximumConversionTime parameter to determine how long a conversion should continue running. The default is 300 seconds, whereas the range starts at 60 seconds and can go up to the maximum allowed integer value. Listing 2 shows a sample modification of the conversion timeout setting.

Listing 2. Changing the Conversion Timeout Settings


Set-SPWordConversionServiceApplication -Identity "Word Automation
Services" -KeepAliveTimeout 45 -MaximumConversionTime 120


These values cannot be configured through the service application settings in Central Administration. As of this writing, they are available only via the Set-SPWordConversionServiceApplication cmdlet.

3. Modify the Maximum Conversion Attempts


Scenario/Problem: You need to modify the maximum conversion attempts in Word Services.


Solution: Use the MaximumConversionAttempts parameter with the Set-SPWordConversionServiceApplication cmdlet.

Use the MaximumConversionAttempts parameter to configure how many attempts should be taken before a conversion is considered a failure. The default is 2 (attempts), and the range of valid values is 1 to 10. Listing 3 shows a sample modification of the maximum conversion attempts setting.

Listing 3. Changing the Maximum Conversion Attempts Setting


Set-SPWordConversionServiceApplication -Identity "Word Automation
Services" -MaximumConversionAttempts 3


The default is two attempts, but three seems like a normal setting. Anything more than five is probably too optimistic. If the conversion fails after three times, there is a 90% chance that it will continue to fail.

4. Modify the Maximum Memory Usage


Scenario/Problem: You need to modify the maximum memory usage of Word Services.


Solution: Use the MaximumMemoryUsage parameter with the Set-SPWordConversionServiceApplication cmdlet.

Use the MaximumMemoryUsage parameter to configure how much memory Word Services can use on the server. The default is 100 (percent), whereas the range of valid values is 10 to 100. Listing 4 shows a sample modification of the maximum memory usage setting.

Listing 4. Changing the Maximum Memory Usage to 50%


Set-SPWordConversionServiceApplication
-Identity "Word Automation Services" -MaximumMemoryUsage 50


Most service applications like to use as much memory as possible (as defined by their default memory settings). Although most settings determine the maximum amount that can be used, you should monitor usage and available memory on your application servers to determine how to balance these settings across service applications.

Other  
  •  PowerShell for SharePoint 2013 : Word Automation Services - Configure Supported Document Formats for Conversion, Modify Database Information
  •  PowerShell for SharePoint 2013 : Word Automation Services - Configure the Conversion Processes, Configure Conversion Throughput
  •  ASP.NET 4 : Error Handling, Logging, and Tracing - Throwing Your Own Exceptions
  •  ASP.NET 4 : Error Handling, Logging, and Tracing - Handling Exceptions
  •  ASP.NET 4 : Error Handling, Logging, and Tracing - Exception Handling
  •  ASP.NET 4 : Error Handling, Logging, and Tracing - Common Errors
  •  Sharepoint 2010 : Designing a Workflow Using Visio 2010 (part 3) - Using Visio Services to Visualize Workflow State
  •  Sharepoint 2010 : Designing a Workflow Using Visio 2010 (part 2) - Implementing a Visio Workflow Using SharePoint Designer
  •  Sharepoint 2010 : Designing a Workflow Using Visio 2010 (part 1) - Using the Microsoft SharePoint Workflow Template
  •  Sharepoint 2010 : Workflow - Demonstration Scenario
  •  
    Top 10
    Review : Sigma 24mm f/1.4 DG HSM Art
    Review : Canon EF11-24mm f/4L USM
    Review : Creative Sound Blaster Roar 2
    Review : Philips Fidelio M2L
    Review : Alienware 17 - Dell's Alienware laptops
    Review Smartwatch : Wellograph
    Review : Xiaomi Redmi 2
    Extending LINQ to Objects : Writing a Single Element Operator (part 2) - Building the RandomElement Operator
    Extending LINQ to Objects : Writing a Single Element Operator (part 1) - Building Our Own Last Operator
    3 Tips for Maintaining Your Cell Phone Battery (part 2) - Discharge Smart, Use Smart
    REVIEW
    - First look: Apple Watch

    - 3 Tips for Maintaining Your Cell Phone Battery (part 1)

    - 3 Tips for Maintaining Your Cell Phone Battery (part 2)
    VIDEO TUTORIAL
    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 1)

    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 2)

    - How to create your first Swimlane Diagram or Cross-Functional Flowchart Diagram by using Microsoft Visio 2010 (Part 3)
    Popular Tags
    Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8