New classes are created for each script:
Which are added to the classMap, which grows and old classes don't get garbage collected:
This results in PermGen errors:
Rexster Groovy Script Engine
Neo4j Server Groovy Script Engine
There is no public way of removing older scripts and the HashMap is not a LinkedHashMap with LRU enabled for storing them. Right now the Neo4j workaround is to recreated the GSE every 500 requests.