New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using httplib OutOfMemoryError #224
Comments
2.7.0 version is normal |
Could you provide a minimal example to reproduce the issue? It is hard to pinpoint the problem without it |
Thank you very much for taking the time to reply to my question. This is my JMeter script. It will be OOM when executed in JMeter 5.x。 |
java.lang.OutOfMemoryError: Metaspace The same script is executed normally in version 2.7.0 . |
The root cause is that
Unfortunately, JMeter does not close Unfortunately, JMeter does not provide "notion of script engine context" yet. In other words, there's no way to tell if JSR223 Sampler should create new context on every invocation or if it should reset the interpreter on each execution. So the solution could be:
|
@vlsi: very helpful analysis, thanks. The handling of multiple interpreters in Jython 2 does not quite make sense to me, but then in CPython 2 and many 3.x-es it had to be hedged with warnings. It is the best that clever people could do at the time with some subsequent shoring-up. JSR 223 then makes stretching demands this (possibly flawed) foundation. CPython 3 has recently re-thought the implementation of multiple interpreters, which gives us a guide in the hoped-for Jython 3. |
Do you mean the current Jython does not support multiple concurrent interpreters? |
I mean that I find the way it does so difficult to follow/use. Evidently it has been used successfully. I would hesitate to change it. I have followed the CPython re-think with interest (PEP-684 and others). |
Will this problem be fixed in the future? @jeff5 |
It depends what "the problem" is (and which future). The problem might be:
|
Thank you very much for your answer. |
Using httplib in JMeter will cause Metaspace to continue to rise until java.lang.OutOfMemoryError, how to solve it, the current version is 2.7.3
The text was updated successfully, but these errors were encountered: