<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SQLite databases are very large]]></title><description><![CDATA[<p dir="auto">For some unknown reason, I am running out of space.  I was able to determine where it is, but not how to control it:</p>
<p dir="auto">[2.6.0-RELEASE][root@pfSense-backup3.home.arpa]/usr/local/datastore/sqlite: ls -l<br />
total 3134179<br />
-rw-r--r--  1 root  wheel       45056 May  4 12:50 alert_all.sqlite<br />
-rw-r--r--  1 root  wheel  4803751936 May 22 08:41 conn_all.sqlite<br />
-rw-r--r--  1 root  wheel  1972715520 May 22 08:41 dns_all.sqlite<br />
-rw-r--r--  1 root  wheel   214843392 May 22 08:40 http_all.sqlite<br />
-rw-r--r--  1 root  wheel        8192 May  4 12:50 sip_all.sqlite<br />
-rw-r--r--  1 root  wheel   907161600 May 22 08:40 tls_all.sqlite</p>
]]></description><link>https://forum.netgate.com/topic/180250/sqlite-databases-are-very-large</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 06:11:28 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/180250.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 May 2023 12:43:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SQLite databases are very large on Tue, 23 May 2023 16:42:31 GMT]]></title><description><![CDATA[<p dir="auto">Resolved issue in <a href="https://help.sunnyvalley.io/hc/en-us/community/posts/16884510950035-Excessive-disk-usage-on-pfSense" target="_blank" rel="noopener noreferrer nofollow ugc">Sunny Valley Forum</a>.</p>
<p dir="auto">Now back under control, and have new script to see how large these files are in compressed and uncompressed size</p>
<pre><code>find . -type f -iname "*all.sqlite" -exec sh -c "echo -n '    de-compressed: '; du -Ah '{}'; echo -n 'compressed (used): '; du -h '{}'; echo ' '" \;
   de-compressed:  44K ./usr/local/datastore/sqlite/alert_all.sqlite
compressed (used): 4.5K ./usr/local/datastore/sqlite/alert_all.sqlite

  de-compressed: 8.0K ./usr/local/datastore/sqlite/sip_all.sqlite
compressed (used): 4.5K ./usr/local/datastore/sqlite/sip_all.sqlite

   de-compressed:  73M ./usr/local/datastore/sqlite/tls_all.sqlite
compressed (used):  30M ./usr/local/datastore/sqlite/tls_all.sqlite

   de-compressed: 443M ./usr/local/datastore/sqlite/conn_all.sqlite
compressed (used): 187M ./usr/local/datastore/sqlite/conn_all.sqlite

   de-compressed: 184M ./usr/local/datastore/sqlite/dns_all.sqlite
compressed (used):  78M ./usr/local/datastore/sqlite/dns_all.sqlite

   de-compressed:  58M ./usr/local/datastore/sqlite/http_all.sqlite
compressed (used):  12M ./usr/local/datastore/sqlite/http_all.sqlite</code></pre>
]]></description><link>https://forum.netgate.com/post/1106283</link><guid isPermaLink="true">https://forum.netgate.com/post/1106283</guid><dc:creator><![CDATA[smcclos1]]></dc:creator><pubDate>Tue, 23 May 2023 16:42:31 GMT</pubDate></item><item><title><![CDATA[Reply to SQLite databases are very large on Mon, 22 May 2023 15:27:46 GMT]]></title><description><![CDATA[<p dir="auto">Found it:</p>
<p dir="auto">[2.6.0-RELEASE][root@pfSense-backup3.home.arpa]/usr/local/datastore/sqlite: lsof | grep sqlite<br />
zenarmor- 42139    root   12u    VREG  975122615,3200245394              45056   39910 /usr/local/datastore/sqlite/alert_all.sqlite<br />
tcsh      51105    root  cwd     VDIR  975122615,3200245394                 10   39950 /usr/local/datastore/sqlite<br />
ipdrstrea 62585    root   11uw   VREG  975122615,3200245394         4864839680   39953 /usr/local/datastore/sqlite/conn_all.sqlite<br />
ipdrstrea 62585    root   14uw   VREG  975122615,3200245394         4864839680   39953 /usr/local/datastore/sqlite/conn_all.sqlite<br />
tcsh      78254    root  cwd     VDIR  975122615,3200245394                 10   39950 /usr/local/datastore/sqlite<br />
lsof      99407    root  cwd     VDIR  975122615,3200245394                 10   39950 /usr/local/datastore/sqlite<br />
grep      99620    root  cwd     VDIR  975122615,3200245394                 10   39950 /usr/local/datastore/sqlite</p>
<p dir="auto">I installed zenarmor (sunnyvalley.cloud) on the server.  completely forgot about that.  Will move the issue there</p>
]]></description><link>https://forum.netgate.com/post/1106018</link><guid isPermaLink="true">https://forum.netgate.com/post/1106018</guid><dc:creator><![CDATA[smcclos1]]></dc:creator><pubDate>Mon, 22 May 2023 15:27:46 GMT</pubDate></item><item><title><![CDATA[Reply to SQLite databases are very large on Mon, 22 May 2023 13:43:22 GMT]]></title><description><![CDATA[<p dir="auto">It probably is <code>ntopng</code>, it's possible the processes for both ntopng and redis are still running somehow. Check the process list (e.g. <code>ps uxawwd</code>)</p>
<p dir="auto">I'm not seeing any specific reference to those filenames or that directory, though.</p>
<p dir="auto">You could <code>pkg install lsof</code> and use that to find which process is holding open those files and trace it back from there.</p>
]]></description><link>https://forum.netgate.com/post/1106002</link><guid isPermaLink="true">https://forum.netgate.com/post/1106002</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Mon, 22 May 2023 13:43:22 GMT</pubDate></item><item><title><![CDATA[Reply to SQLite databases are very large on Mon, 22 May 2023 13:34:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johnpoz">@<bdi>johnpoz</bdi></a> I don't think that is it.  I removed the package, yet the files are increasing in size.</p>
<p dir="auto">[2.6.0-RELEASE][root@pfSense-backup3.home.arpa]/usr/local/datastore/sqlite: ls -l<br />
total 3147315<br />
-rw-r--r--  1 root  wheel       45056 May  4 12:50 alert_all.sqlite<br />
-rw-r--r--  1 root  wheel  4823379968 May 22 09:33 conn_all.sqlite<br />
-rw-r--r--  1 root  wheel  1981362176 May 22 09:33 dns_all.sqlite<br />
-rw-r--r--  1 root  wheel   217030656 May 22 09:33 http_all.sqlite<br />
-rw-r--r--  1 root  wheel        8192 May  4 12:50 sip_all.sqlite<br />
-rw-r--r--  1 root  wheel   910487552 May 22 09:33 tls_all.sqlite</p>
]]></description><link>https://forum.netgate.com/post/1106000</link><guid isPermaLink="true">https://forum.netgate.com/post/1106000</guid><dc:creator><![CDATA[smcclos1]]></dc:creator><pubDate>Mon, 22 May 2023 13:34:03 GMT</pubDate></item><item><title><![CDATA[Reply to SQLite databases are very large on Mon, 22 May 2023 13:25:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/smcclos1">@<bdi>smcclos1</bdi></a> well the only package that makes any sense to be using any sort of db would be ntop.. I don't currently have that installed..</p>
<p dir="auto">I would look to its logging or whatever to reduce the size..</p>
]]></description><link>https://forum.netgate.com/post/1105999</link><guid isPermaLink="true">https://forum.netgate.com/post/1105999</guid><dc:creator><![CDATA[johnpoz]]></dc:creator><pubDate>Mon, 22 May 2023 13:25:57 GMT</pubDate></item><item><title><![CDATA[Reply to SQLite databases are very large on Mon, 22 May 2023 13:13:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johnpoz">@<bdi>johnpoz</bdi></a> Nothing fancy just iperf, ntopng, Open-VM-Tools, tftpd.</p>
<p dir="auto">I thought it would be related to the logs, but I cannot get any documentation to support it.</p>
]]></description><link>https://forum.netgate.com/post/1105998</link><guid isPermaLink="true">https://forum.netgate.com/post/1105998</guid><dc:creator><![CDATA[smcclos1]]></dc:creator><pubDate>Mon, 22 May 2023 13:13:09 GMT</pubDate></item><item><title><![CDATA[Reply to SQLite databases are very large on Mon, 22 May 2023 13:00:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/smcclos1">@<bdi>smcclos1</bdi></a> I don't even have that folder.. What packages are you running? Not sure what would be storing data in a sqlite db there.</p>
]]></description><link>https://forum.netgate.com/post/1105997</link><guid isPermaLink="true">https://forum.netgate.com/post/1105997</guid><dc:creator><![CDATA[johnpoz]]></dc:creator><pubDate>Mon, 22 May 2023 13:00:02 GMT</pubDate></item></channel></rss>