<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Excess space consumption by Repository folder of Qlik in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Excess-space-consumption-by-Repository-folder-of-Qlik/ta-p/1716390</link>
    <description>&lt;P&gt;If you suspect that a Qlik Sense database is growing too large, this article can help you confirm which database needs to be further investigated.&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment:&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;PostgreSQL Monitoring.qvf&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H5&gt;
&lt;P&gt;Attached is an App named PostgreSQL Monitoring.qvf. Import the App from the Qlik Sense Management Console and publish it to an available stream. View the app from the hub to display from top to bottom what database is consuming most disk space.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 24px;"&gt;&lt;STRONG&gt;!&lt;/STRONG&gt;&lt;/SPAN&gt; This app is a tool that is not supported nor maintained by Qlik Support (it is not a deliverable product)&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Database Queries&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use PGAdmin to connect to to PostGres, by following&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Installing-and-Configuring-PGAdmin-4-to-access-the-PostgreSQL/ta-p/1710699" target="_blank" rel="noopener"&gt;Installing and Configuring PGAdmin 4 to access the PostgreSQL database used by Qlik Sense or NPrinting&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;Run the following query in the Query tool:&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;SELECT pg_database.datname, pg_size_pretty(pg_database_size(pg_database.datname)) AS size FROM pg_database;​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;The result should look like this:&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;datname     size
postgres	7055kb
QSR         70 MB​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;To verify which Table is the biggest, run the below query.&amp;nbsp;Change the Limit line if you want to see more than 10 tables.&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;SELECT
    relname AS "relation",
    pg_size_pretty (
        pg_total_relation_size (C .oid)
    ) AS "total_size"
FROM
    pg_class C
LEFT JOIN pg_namespace N ON (N.oid = C .relnamespace)
WHERE
    nspname NOT IN (
        'pg_catalog',
        'information_schema'
    )
AND C .relkind &amp;lt;&amp;gt; 'i'
AND nspname !~ '^pg_toast'
ORDER BY
    pg_total_relation_size (C .oid) DESC
Limit 10;​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;The result should look like this:&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;relation	         total size
_deletedentitylog	 200 MB
__MigrationHistory   100MB​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Manual verification using pgAdmin&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H5&gt;
&lt;P&gt;Use PGAdmin to connect to to PostGres, by following&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Installing-and-Configuring-PGAdmin-4-to-access-the-PostgreSQL/ta-p/1710699" target="_blank" rel="noopener"&gt;Installing and Configuring PGAdmin 4 to access the PostgreSQL database used by Qlik Sense or NPrinting&lt;/A&gt;.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;For each database instance, select the Properties tab.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;The OID field will state which folder contains that specific database.&lt;BR /&gt;&lt;BR /&gt;For instance, in this example, the data for QLogs is contained in the 16433 subfolder.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pgAdmin Properties QSR.png" style="width: 798px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55616i142BF27502805662/image-size/large?v=v2&amp;amp;px=999" role="button" title="pgAdmin Properties QSR.png" alt="pgAdmin Properties QSR.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Find the corresponding folder on disk to manually review file size.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;In a default installation of Qlik Sense Enterprise for Windows, the databases are located in&amp;nbsp;&lt;SPAN style="font-family: Courier New,Courier,monospace;"&gt;C:\ProgramData\Qlik\Sense\Repository\PostgreSQL\9.6\base&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Folder.png" style="width: 452px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55617i945AE3F17FB169AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Folder.png" alt="Folder.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV style="margin-left: 40px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;How to address excessive disk space&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Common Articles associated with disk space:&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/deletedentitylogs-take-up-disk-space-on-C/ta-p/1713929" target="_blank" rel="noopener"&gt;_deletedentitylogs wasting C:\ space&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Qlik-Sense-Steps-to-reduce-Excessive-HDD-space-occupied-by/ta-p/1714166" target="_blank" rel="noopener"&gt;Qlik Sense: Steps to reduce Excessive HDD space occupied by PostgreSQL.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 May 2021 10:24:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-25T10:24:39Z</dc:date>
    <item>
      <title>Excess space consumption by Repository folder of Qlik</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Excess-space-consumption-by-Repository-folder-of-Qlik/ta-p/1716390</link>
      <description>&lt;P&gt;If you suspect that a Qlik Sense database is growing too large, this article can help you confirm which database needs to be further investigated.&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment:&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Sense Enterprise on Windows" id="qlikSenseEnterpriseWindows"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;PostgreSQL Monitoring.qvf&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H5&gt;
&lt;P&gt;Attached is an App named PostgreSQL Monitoring.qvf. Import the App from the Qlik Sense Management Console and publish it to an available stream. View the app from the hub to display from top to bottom what database is consuming most disk space.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 24px;"&gt;&lt;STRONG&gt;!&lt;/STRONG&gt;&lt;/SPAN&gt; This app is a tool that is not supported nor maintained by Qlik Support (it is not a deliverable product)&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Database Queries&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Use PGAdmin to connect to to PostGres, by following&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Installing-and-Configuring-PGAdmin-4-to-access-the-PostgreSQL/ta-p/1710699" target="_blank" rel="noopener"&gt;Installing and Configuring PGAdmin 4 to access the PostgreSQL database used by Qlik Sense or NPrinting&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;Run the following query in the Query tool:&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;SELECT pg_database.datname, pg_size_pretty(pg_database_size(pg_database.datname)) AS size FROM pg_database;​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;The result should look like this:&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;datname     size
postgres	7055kb
QSR         70 MB​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;To verify which Table is the biggest, run the below query.&amp;nbsp;Change the Limit line if you want to see more than 10 tables.&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;SELECT
    relname AS "relation",
    pg_size_pretty (
        pg_total_relation_size (C .oid)
    ) AS "total_size"
FROM
    pg_class C
LEFT JOIN pg_namespace N ON (N.oid = C .relnamespace)
WHERE
    nspname NOT IN (
        'pg_catalog',
        'information_schema'
    )
AND C .relkind &amp;lt;&amp;gt; 'i'
AND nspname !~ '^pg_toast'
ORDER BY
    pg_total_relation_size (C .oid) DESC
Limit 10;​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;LI&gt;The result should look like this:&lt;BR /&gt;&lt;LI-CODE lang="markup"&gt;relation	         total size
_deletedentitylog	 200 MB
__MigrationHistory   100MB​&lt;/LI-CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Manual verification using pgAdmin&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H5&gt;
&lt;P&gt;Use PGAdmin to connect to to PostGres, by following&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Installing-and-Configuring-PGAdmin-4-to-access-the-PostgreSQL/ta-p/1710699" target="_blank" rel="noopener"&gt;Installing and Configuring PGAdmin 4 to access the PostgreSQL database used by Qlik Sense or NPrinting&lt;/A&gt;.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;For each database instance, select the Properties tab.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;The OID field will state which folder contains that specific database.&lt;BR /&gt;&lt;BR /&gt;For instance, in this example, the data for QLogs is contained in the 16433 subfolder.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pgAdmin Properties QSR.png" style="width: 798px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55616i142BF27502805662/image-size/large?v=v2&amp;amp;px=999" role="button" title="pgAdmin Properties QSR.png" alt="pgAdmin Properties QSR.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Find the corresponding folder on disk to manually review file size.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;In a default installation of Qlik Sense Enterprise for Windows, the databases are located in&amp;nbsp;&lt;SPAN style="font-family: Courier New,Courier,monospace;"&gt;C:\ProgramData\Qlik\Sense\Repository\PostgreSQL\9.6\base&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Folder.png" style="width: 452px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55617i945AE3F17FB169AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Folder.png" alt="Folder.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;DIV style="margin-left: 40px;"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;How to address excessive disk space&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Common Articles associated with disk space:&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/deletedentitylogs-take-up-disk-space-on-C/ta-p/1713929" target="_blank" rel="noopener"&gt;_deletedentitylogs wasting C:\ space&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Knowledge-Base/Qlik-Sense-Steps-to-reduce-Excessive-HDD-space-occupied-by/ta-p/1714166" target="_blank" rel="noopener"&gt;Qlik Sense: Steps to reduce Excessive HDD space occupied by PostgreSQL.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 10:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Excess-space-consumption-by-Repository-folder-of-Qlik/ta-p/1716390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-25T10:24:39Z</dc:date>
    </item>
  </channel>
</rss>

