title: Memory leaks in a python script, Xvfb is suspected
body: <p>On a linux server I'm using Chrome/Selenium with <strong>Xvfb</strong> in a python script. Sometimes the script crashes for other reason and thus, according to what I see in the  dashboard of digital ocean, the ram consumption of "Xvfb" increases up to almost 80% eventually, over time. However, the ram increase isn't necessarily due to the script being crashed, but it might be because of an wrong of releasing Xvfb in general.</p>
  
  <p>Here's what I have relevant to xvfb</p>
  
  <pre><code>    from pyvirtualdisplay import Display
      ..........
      display = Display(visible=0, size=(800, 600))
      display.start()
  
  
      //it can crash here doing other things
  
      display.sendstop()
  </code></pre>
  
  <ul>
  <li>Am I releasing Xvfb properly in the first place?</li>
  <li>When it crashes, does Xvfb get released automatically or not?</li>
  <li>Should I wrap my code into try ... except to be able properly release Xvfb?</li>
  </ul>