Have you considered the logging statement time in your application performance. It is better not to use LOG inside such loop which tends to move towards infinity.