How to find out what’s using the space in our Document Library on Liferay PaaS?

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:
    1. Enter the Liferay container (Choose the appropriate environment in DXP Cloud and select Liferay service. Click the Shell tab.)
    2. Enter the data folder (cd /opt/liferay/data)
    3. 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.)
    4. Once the script has finished, you will find a nohup.out file in opt/liferay/data
    5. 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

Este artigo foi útil?
Utilizadores que acharam útil: 0 de 0