oracle / graalpython

A Python 3 implementation built on GraalVM
Other
1.17k stars 101 forks source link

Exception using Graalpy with JSR223: java.lang.OutOfMemoryError: Java heap space #375

Closed fit2-zhao closed 5 months ago

fit2-zhao commented 6 months ago

Run the following JSR223 script :

from urllib import request

If you execute the loop, you will find that the heap memory continues to grow.

image

image

msimacek commented 5 months ago

Hi @fit2-zhao, I tried running the import in a loop in new contexts and I couldn't reproduce running out of memory. Could you please post your Java code?

fit2-zhao commented 5 months ago

Thank you for your reply. I have found the problem and it is the problem I am using.