Open lorenzo-gomez-windhover opened 1 year ago
I think this is because we are always sending frames from the stream:
// logger.info(": listening for UDP frames at port " + port);
while (!stopping) {
int dataLinkContinuity;
dataLinkContinuity = 0; // no frame missing
// logger.fine("received datagram of size " + datagram.getLength());
Instant t = Instant.now();
CcsdsTime tc = CcsdsTime.fromUnix(t.getEpochSecond(), t.getNano());
rsps.forEach(
rsp ->
rsp.sendFrame(
tc,
FrameQuality.good,
dataLinkContinuity,
currentPacket,
0,
512)); // using this for testing purposes ; not the best way to do this //
// currentPacket.length()
}
And the garbage collector does not get a chance to free the allocations. It needs to be throttled somehow....