It increases Metaspace usage due to additional class metadata.
Dynamic proxies generate additional classes at runtime, which increases the amount of metadata stored in Metaspace. This can lead to increased memory consumption and potential OutOfMemoryErrors if not managed properly. In applications using frameworks like Spring AOP, which leverage dynamic proxies, monitoring Metaspace usage is crucial to maintain performance.
Additional Notes
How does heavy use of dynamic proxies affect Metaspace?