title: Why is my web-app using more and more ram with each server request?
body: <p>So every second i call this function to get the latest data because my app is a real time app:</p>
  
  <pre><code>getInformation() {
      this.dateService.getDates().subscribe((data: Appointment[]) =&gt; {
        this.totalDates = data;
      });
      this.presentationService.getPresentations().subscribe((data: Presentation[]) =&gt; {
        this.totalPresentations = data;
      });
      this.roomService.getBookings().subscribe((data: Booking[]) =&gt; {
        this.totalBookings = data;
      })
    }
  </code></pre>
  
  <p>If i now look at the task in the taskmanager, every second it uses 0-1 mb more ram. On my windows pc this is no problem at all but i want to display this web-app on a rasperry-pi kiosk system. The raspberry-pi im using only has 926 mb's of ram so it runs out of ram after roughly 20 minutes or so which means it freezes.</p>
  
  <p>I've tried calling this function less often (for example every 3 seconds) but this just resulted in the ram size growing smaller.</p>