hyhyf opened a new issue, #12626: URL: https://github.com/apache/skywalking/issues/12626
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues. ### Apache SkyWalking Component Java Agent (apache/skywalking-java) ### What happened I 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 happen When 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 reproduce Jdk: 1.8 Java agent: 9.2.0 Excute scripts using nashorn script engine ### Anything else _No response_ ### Are you willing to submit a pull request to fix on your own? - [ ] Yes I am willing to submit a pull request on my own! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
