Change quick publish post-publish size
By default, quick publish post-publish processes data from all the resource managers and then propagates them sequentially. If the total amount of data to be propagated is larger than the available memory, this can lead to an OutOfMemory error. We can change how quick publish post-publish processes resource managers to limit this error from occurring. We can either tune the Java virtual machine or edit the quick publish post-publish size.
Task info
postPublishSize defines how the post-publish phase reads and then propagates resource managers. For example, when postPublishSize=2, post-publish reads two resource managers, then propagates the two resource managers data before reading the next two resource managers.
Procedure
- Update the wc-resource-containers.xml file:
- Open the WC_eardir\xml\content-management\wc-resource-containers.xml file for editing.
- In the wc-resource-containers.xml file, locate the <wc:QuickPublishConfiguration> element, and add the postPublishSize parameter as shown:
<wc:QuickPublishConfiguration> <wc:Publisher className="com.ibm.commerce.context.content.resources.publish.DefaultJDBCContentPublisherImpl" initParameters=[other-parameters] postPublishSize="1" [other-parameters]/ > </wc:QuickPublishConfiguration>
- Save our changes and close the file.
- Update the deployment package to include your updated files.
Related tasks
Committing workspace data to production-ready data
Publishing to the production environment
Disable post-publish for quick publish