Re: Threads are unresponsive for some time after a particular amount of data transfer(119MB)
For embedded use of janusgraph, see:
and replace the properties file with the one currently used by gremlin server.
With embedded use, you can simply do (if your graph is not too large):
vertices = g.V().toList()
edges = g.E().toList()
Best wishes, Marc