Logstash Memory Requirements and JVM Sizing

Given that UDP does not guarantee ordering nor delivery I do not think it makes any sense to have a multiline filter in place.

There have been some threads on tuning UDP performance in Logstash in the forum, e.g. this one and this one, so I would recommend reviewing these.