Attempt to fix OOM when generating rt javadoc on build server.