jdbeutel commented on PR #3347:
URL: https://github.com/apache/groovy/pull/3347#issuecomment-7112813346

   Changing the script had not occurred to me, so the issue was just that the 
same script was recompiled on every connection for no reason, and eventually 
ran out of memory. In the given reproduction, I don't see how the -e script 
could ever change at all between connections, let alone include code that was 
read from the socket:
   
   `JAVA_OPTS="-Xmx5m" groovy -l 5000 -e "System.err.println 
java.lang.management.ManagementFactory.classLoadingMXBean.loadedClassCount" &`
   
   However, I realize now that if the groovy -l is running the script from a 
file, then that file could change between connections. In any case, getting 
data from the socket and including it in a compile seems out of scope for 
groovy -l; it's just binding the data that it reads from the socket, not 
compiling it. I think that a groovy script or class compiling another groovy 
script or class would be a separate issue, regardless of groovy -l.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to