I am trying to configure AtomPullServer to view Apache CXF logs. I am using Tomcat 7, Apache CXF 2.7.6, Apache Abdera 1.1.3.
As per the documentation, the only thing I have to do is add this to the Spring configuration file
<bean id="atomPullServer" class="org.apache.cxf.management.web.logging.atom.AtomPullServer" init-method="init">
<property name="level" value="ERROR" />
<property name="maxInMemorySize" value="100"/>
</bean>
<jaxrs:server id="atomServer" address="/atom">
<jaxrs:serviceBeans>
<ref bean="atomPullServer"/>
</jaxrs:serviceBeans>
<jaxrs:providers>
<bean id="feed" class="org.apache.cxf.jaxrs.provider.atom.AtomFeedProvider" />
<bean id="entry" class="org.apache.cxf.jaxrs.provider.atom.AtomEntryProvider" />
<bean class="org.apache.cxf.jaxrs.ext.search.SearchContextProvider"/>
</jaxrs:providers>
</jaxrs:server>
But as soon as I added it, I get (in the console) Exception in thread "http-bio-8080-exec-X" java.lang.OutOfMemoryError: PermGen spacewhen accessing any of the services, and, of course, the server no longer responds. If I delete these lines, everything will be fine.
Any idea what could be the problem?
source
share