Why am I running out of memory when I use Groovy scripts?

AuthorFullName__c
JFrog Support
articleNumber
000001516
ft:sourceType
Salesforce
FirstPublishedDate
2016-10-06T13:38:24Z
lastModifiedDate
2016-10-06
VersionNumber
5