title: Postgres why is swap-usage growing? How to reduce it? - AWS RDS
body: <p>Having a postgres DB on AWS-RDS the <code>Swap Usage</code> in constantly rising.</p>
  
  <p>Why is it rising? I tried rebooting but it does not sink. AWS writes that high swap usage is "<em>indicative of performance issues</em>"</p>
  
  <p>I am writing data to this DB. CPU and Memory do look healthy:
  <a href="https://i.stack.imgur.com/DpAW1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DpAW1.png" alt="enter image description here"></a></p>
  
  <p>To be precise i have a<br>
  <code>db.t2.micro</code>-Instance and at the moment ~30/100 GB Data in 5 Tables - General Purpose SSD. With the default postgresql.conf.</p>
  
  <p>The swap-graph looks as follows:</p>
  
  <p><a href="https://i.stack.imgur.com/i70eZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/i70eZ.png" alt="enter image description here"></a></p>
  
  <p>Swap Usage warning:</p>
  
  <p><a href="https://i.stack.imgur.com/uW13q.png" rel="noreferrer"><img src="https://i.stack.imgur.com/uW13q.png" alt="enter image description here"></a></p>