Overactive Python and Java GCs #1115
Unanswered
jazznoodler
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Generally speaking one GC will trigger the other. Though Java ones should be much more infrequent than Python ones. There are statistical triggers in the native/common/jp_gc file that you can instrument to see which high water mark is triggering the other. To get multiple triggers in a row you would have to be in the condition where one or both virtual machines were nearing exhaustion which would trigger a call to the other to free memory. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hey Karl thanks for the responsei will try and make some time to add an option to turn off the external System GC callcheers
On Monday, 13 February 2023 at 19:33:43 GMT, Karl Nelson ***@***.***> wrote:
It is possible there is a unit error which which some flavors of linux report their memory in different ways which may lead to the factor of 10 issue. If we could identify the unit properly and fix it then that would help.
With regard to selecting the GC behavior, if you want to submit a patch in which you programmatically disable the GC it would be fine. Or just expose the watermarks such that they can be adjusted by the user. Though this may be a bit much to ask. I am unfortunately too busy with work to put much time into JPype.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have some python code running on Linux where the JPype GC algo seems to trigger a dance between the 2 GC mechanisms (3 or 4 gcs each) before it settles down again. Is there a way to debug this? Any ideas what might be happening ? Thanks
Beta Was this translation helpful? Give feedback.
All reactions