Hello. I'm developing app, where I fetch events from Outlook with EWS/Graph ... With MS Graph, everything works well, but when I use EWS, memory and heap usage are increasing, and then I got error that heap is out of memory....
I tried to solve this problem with this solution, but my problem is not solved.... My problem is, that my app fetches events from calendars every 10 seconds. When I disable cron, everything works well and memory and heap are at low numbers ... But I need that cron to do his job....
This is part of my code that is responsible for fetching events....
Hello. I'm developing app, where I fetch events from Outlook with EWS/Graph ... With MS Graph, everything works well, but when I use EWS, memory and heap usage are increasing, and then I got error that heap is out of memory....
I tried to solve this problem with this solution, but my problem is not solved.... My problem is, that my app fetches events from calendars every 10 seconds. When I disable cron, everything works well and memory and heap are at low numbers ... But I need that cron to do his job....
This is part of my code that is responsible for fetching events....
` if (settings.ews === '1') { const roomService = new MeetingRoomsManagmentService({ Model: app.get('mssqlClient'), name: 'meeting_rooms' }) const rooms = await roomService.find() const roomEmails = rooms.map((room) => room.mroomEmail)