Question / Problem

The TarPersistenceManager stores and reads data from files on the filesystem in the POSIX tar file format. The TarPM creates continuous tar files with a default maximum file size of 64MB. While this default value is fine in most cases, for instances that store a large amount of data in the repository using the TarPM might cause too many open file connections required by a single Java process.

How is it possible to (re-)configure the maximum file size of tar files created by the TarPM?

Answer / Resolution

To reconfigure the maximum file size, the repository.xml configuration file and the workspace.xml configuration file of the primary workspace needs to be modified. Please configure the maxFileSize parameter as shown in the following example:

<PersistenceManager class="com.day.crx.persistence.tar.TarPersistenceManager">
    ...
    <param name="maxFileSize" value="512" />
</PersistenceManager>

This change will take effect after the repository has been restarted and an TarPM optimization has been executed. Please refer to the TarPM optimization article how to run an optimization.

NOTE: the maximum configurable size is limited to 2GB, we suggest a value of 512.

Applies

CRX1.3.x, CRX1.4.x

이 작업에는 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License의 라이센스가 부여되었습니다.  Twitter™ 및 Facebook 게시물은 Creative Commons 약관을 적용받지 않습니다.

법적 고지 사항   |   온라인 개인 정보 보호 정책