Do I have a JAXB classloader leak

前端 未结 2 2112
失恋的感觉
失恋的感觉 2020-12-06 17:44

I have an application deployed on Glassfish. Over time the number of loaded classes climbs into the millions and my permgen seems to rise.

To help troubleshoot I add

2条回答
  •  孤城傲影
    2020-12-06 18:03

    This is one of the reasons why I stay away from JAXB. I'd rather write classes to marshal and unmarshal that implement javax.xml.bind.Marshaller and javax.xml.bindUnmarshaller, respectively. I write them once and they're done. None of that reflection and dynamic class generation.

提交回复
热议问题