Old JaxB and JDK8 Metaspace OutOfMemory Issue

前端 未结 3 510
陌清茗
陌清茗 2020-12-02 20:56

We are working on a business application (1 million+ LOC) developed since 10+ years. While switching to JDK8 we get an issue with the metaspace of JDK8. This seems to be rel

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 21:22

    JAXBContext.newInstance() should be used once to create a context for your class to unmarshall. It will use up your permgen or metaspace otherwise.

提交回复
热议问题