make sure memory is capped for openjdk too