My real-time app constantly calls a function to retrieve the latest data:
getInformation() {
this.dateService.getDates().subscribe((data: Appointment[]) => {
this.totalDates = data;
});
this.presentationService.getPresentations().subscribe((data: Presentation[]) => {
this.totalPresentations = data;
});
this.roomService.getBookings().subscribe((data: Booking[]) => {
this.totalBookings = data;
})
}
However, with each call, the RAM usage in the task manager increases by 0-1 MB. While this has not been an issue on my Windows PC, I am concerned about running this web-app on a Raspberry Pi kiosk system. The specific model I'm using only has 926 MB of RAM, and after approximately 20 minutes, it maxes out causing the system to freeze.
I attempted reducing the frequency of calling the function (e.g., every 3 seconds), but this only resulted in a more rapid decrease in available RAM.