Search before asking
Apache SkyWalking ComponentJava Agent (apache/skywalking-java) What happenedI used the nashorn script engine for stress testing in my project. After running continuously for 2 hours, SWTypeDescriptionWrapper occupied more than 90% of the memory, and the old GC was frequently. What you expected to happenWhen dynamic class creation methods are used, they are put into the type cache. If this operation is repeated indefinitely, it will form a large collection that cannot be garbage collected, thereby consuming memory resources. How to reproduceJdk: 1.8 Anything elseNo response Are you willing to submit a pull request to fix on your own?
Code of Conduct
|
Answered by
wu-sheng
Sep 19, 2024
Replies: 1 comment 9 replies
|
We don't support unlimited dynamic classes. I think this is the current case. And I don't see any reason to do this in product env. |
9 replies
Answer selected by
hyhyf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We don't support unlimited dynamic classes. I think this is the current case. And I don't see any reason to do this in product env.