Note: please note that Liferay has renamed its Liferay Experience
Could offerings to Liferay SaaS (formerly LXC) and
Liferay PaaS (formerly LXC-SM).
Issue
- We find it difficult to keep our storage limitations on Liferay PaaS.
- The folder structure does not give information about what's using the space.
- We don’t know how to reduce the DL size.
Environment
- Liferay PaaS
- Available from DXP 7.4 Update 66
Resolution
- The above-mentioned versions contain a new tool that you can use to inspect the Document Library.
- This is a script that you can run from your Shell and lists file types and their size in CSV format.
- Follow the steps below:
- Enter the Liferay container (Choose the appropriate environment in DXP Cloud and select Liferay service. Click the Shell tab.)
- Enter the data folder (
cd /opt/liferay/data
) - Run the following command:
nohup inspect_document_library.sh &
(We advise using the command in this format so that the script runs in the background because it might take some time to create the report.) - Once the script has finished, you will find a
nohup.out
file inopt/liferay/data
- This file contains a breakdown of file types and their size in CSV format. They will be grouped based on Virtual Instance (identified by companyId).
Additional Information
- We advise that you test the script first in a non-production environment (which has roughly the same files and structure in the Document Library).
- You can see the source of the script here: https://github.com/liferay/liferay-docker/blob/master/templates/bundle/resources/usr/local/bin/inspect_document_library.sh
- If you see "BrokenZip" files in the resulting CSV file, they are most likely broken LAR files.
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In