Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Postgresql filling data files fast

Postgresql filling data files fast

Scheduled Pinned Locked Moved Support
4 Posts 3 Posters 18.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    D
    djdenney
    wrote on last edited by
    #1

    Hello,

    I am running postgresql 12.1.2 and am experiencing /var/lib/pgsql/base/16384 filling up quite rapidly.  I started out with 4G in /var/lib/pgsql filesystem and it went to 100% full.  I doubled it to 8G and 4 days later, it is 100% full again.  There are 1573 files in base/16384. no large files, just many files. Two files at 168M and the rest 66M or less.

    Is this usual?  How large should the filesystem be?  Can these files be removed?

    1 Reply Last reply
    0
    • A
      A
      Alex Kirhenshtein
      wrote on last edited by
      #2

      Hello.

      It depends on your setup.
      How many nodes do you monitor? How many DCIs and how often they are collected? How many events / alarms per day? Do you collect syslog?

      1 Reply Last reply
      0
      • D
        D
        djdenney
        wrote on last edited by
        #3

        We are monitoring ~60 nodes, mostly VMs.  We collect DCIs for performance.  We monitor using the default event processing policies and we do collect syslog.  I am not seeing a but a few alarms per day after I disables the DCI change alarm.

        1 Reply Last reply
        0
        • F
          F
          Filipp Sudanov
          wrote on last edited by
          #4

          Pls execute "sh st" in Tools -> Server Console and show the output.

          Connect to postgres database and show the output of this query:

          select schemaname as table_schema,
              relname as table_name,
              pg_size_pretty(pg_total_relation_size(relid)) as total_size,
              pg_size_pretty(pg_relation_size(relid)) as data_size,
              pg_size_pretty(pg_total_relation_size(relid) - pg_relation_size(relid))
                as external_size
          from pg_catalog.pg_statio_user_tables
          order by pg_total_relation_size(relid) desc,
                   pg_relation_size(relid) desc
          limit 50;
          
          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups