title: Gremlin-Server takes too much memory and hangs
body: <p><br></p>
  
  <p>I'm using gremlin-server (v3.02), with titan-hbase. I'm using the default configuration settings.The server is 8GB memory and 4-cores.</p>
  
  <p>After few hours of work, the server stops responding to queries requests..
  It must be said that the requests intensity on the server is NOT high, pretty much low-medium (few requests per hour, maybe less than that). <br></p>
  
  <p>When cheking gremlin's last server log messages, I see it's about Hbase session timeout, and retries to reconnect the hbase again.<br>
  The server CPU and memory are 90-100% at this point.<br></p>
  
  <p>JDK 1.8.0_45-b14 64bit on Redhat<br>
  Using jstat -gc I can all its time is spent in GC, also oldgen is 100%.<br>
  I have set "-Xmx 8g" but vitual memory in htop goes up to 12g, with a few tests with xmx I see that virtual memory always gets about "-Xmx + 4g ".<br>
  Jmap -histo gives me about 2g of [B (Byte[]) with a gig for CacheRelation and gig for CacheVertex.<br></p>
  
  <p>After a restarting the gremlin-server, everything is back to normal, and works again.</p>
  
  <p>Any ideas? </p>