Events: set array size using getrlimit

Signed-off-by: Eduardo Silva <eduardo@monkey.io>