title: JMX RMI - Memory Leak - ArrayNotificationBuffer getting bigger over time
body: <p>i'm writing an application that should run many hours (10-100) which i'm monitoring using JMX.</p>
  
  <p>However, after some time, i discover two things:</p>
  
  <ul>
  <li><code>com.sun.jmx.remote.internal.ArrayNotificationBuffer#1</code> gets bigger: after 20 hours, it's about 10MB - when i started it, it was smaller than 1 MB</li>
  <li>More threads like <code>RMI TCP Accept-0</code> (or any other number) and <code>RMI-TCP-Connection(44)-[IP]</code> are instanciated over time.</li>
  </ul>
  
  <p>I'm thinking, that it has something to do with different connections to the application, but currently i'm just connected once, but some connections still seem to be open.</p>
  
  <p>How can that be? How can i fix this?</p>