Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从前几天我们在生产环境中使用 Orika 进行类映射。现在看来我们的 PermGen Space 有问题。我们需要比以前多两倍的 PermGen 空间,并且有一些 OutOfMemoryError。Orika 是否有可能在 PermGen 中产生这种内存消耗?分别是什么是改善这种情况的最佳方法?
我读了一些关于 VM-flag -XX:+CMSPermGenSweepingEnabled 的内容,它强制 PermGen 收集垃圾。这有帮助吗?
问候斯特凡
从未遇到过此类问题(即使在大型项目中),
Orika 中包含的一些单元测试用于验证一些关键性能问题: 您可以在此处找到它们
一定要考虑使用分析器/内存分析器。