Hi Gert,

I'm currently working on the new camel-quickfix component. So I have
installed on SMX4 4 bundles :

[ 142] [Active     ] [       ] [   60] camel-quickfix (2.0.0.SNAPSHOT)
[ 148] [Active     ] [       ] [   60]
wrap_mvn_org.quickfixj_quickfixj-all_1.4.0 (0)
[ 149] [Active     ] [       ] [   60]
wrap_mvn_org.apache.mina_mina-core_1.1.7 (0)
[ 150] [Active     ] [Failed ] [   60] QuickFix Routing Bundle
(1.0.0.SNAPSHOT)

This problem occurs when in the camel route, the quickfix class was loaded :

at quickfix.DefaultMessageFactory.<init>(DefaultMessageFactory.java:45)
        at
org.apache.camel.component.quickfix.QuickfixAcceptor$QuickfixAcceptorEndpoint.start(QuickfixAcceptor.java:59)

Camel route

        <bean id="quickfix-server"
class="org.apache.camel.component.quickfix.QuickfixAcceptor"/>
        <bean id="quickfix-client"
class="org.apache.camel.component.quickfix.QuickfixInitiator"/>
        <!--  <bean id="logFactoryBean" class="quickfix.FileLogFactory"/>
-->


    <camel:camelContext trace="true" xmlns="
http://camel.apache.org/schema/osgi";>
        <camel:route>
            <camel:from uri="quickfix-server:META-INF/examples/server.cfg"/>
            <camel:to uri="quickfix-client:META-INF/examples/client.cfg"/>
        </camel:route>
    </camel:camelContext>

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com


On Thu, May 7, 2009 at 4:31 PM, Gert Vanthienen
<[email protected]>wrote:

> Charles,
>
> You should be able to set the -XX:MaxPermSize parameter through the
> JAVA_OPTS environment variable.  Are you saying you have this
> exception when running on JDK 6 and not on JDK 5?  This usually
> happens when deploying/undeploying things through a classloader leak
> of some kind.  Could you give us a bit more details about the kind of
> thing you're doing when this problem happens?
>
> Regards,
>
> Gert Vanthienen
> ------------------------
> Open Source SOA: http://fusesource.com
> Blog: http://gertvanthienen.blogspot.com/
>
>
>
> 2009/5/7 Charles Moulliard <[email protected]>:
> > This is strange. This error does not appears when ServiceMix 4 runs on
> JDK
> > 5.
> >
> >
> > ---------- Forwarded message ----------
> > From: Charles Moulliard <[email protected]>
> > Date: Thu, May 7, 2009 at 11:58 AM
> > Subject: Memory size of SMX4
> > To: [email protected]
> >
> >
> > Hi,
> >
> > I'm confronted to the following error. Can we define as a parameter the
> > memory size required by SMX 4 at launch ?
> >
> > Exception in thread "SpringOsgiExtenderThread-20"
> > java.lang.OutOfMemoryError: PermGen space
> >        at java.lang.ClassLoader.defineClass1(Native Method)
> >        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
> >        at
> >
> org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1537)
> >        at
> >
> org.apache.felix.framework.searchpolicy.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:502)
> >        at
> >
> org.apache.felix.framework.searchpolicy.ModuleImpl.access$100(ModuleImpl.java:59)
> >        at
> >
> org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1427)
> >        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> >        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> >        at java.lang.Class.forName0(Native Method)
> >        at java.lang.Class.forName(Class.java:169)
> >        at
> >
> quickfix.DefaultMessageFactory.discoverFactory(DefaultMessageFactory.java:50)
> >        at
> > quickfix.DefaultMessageFactory.<init>(DefaultMessageFactory.java:45)
> >        at
> >
> org.apache.camel.component.quickfix.QuickfixAcceptor$QuickfixAcceptorEndpoint.start(QuickfixAcceptor.java:59)
> >        at
> >
> org.apache.camel.component.quickfix.QuickfixEndpoint.start(QuickfixEndpoint.java:179)
> >        at
> >
> org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:510)
> >        at
> >
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:372)
> >        at
> >
> org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:52)
> >        at
> >
> org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:133)
> >        at
> >
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:103)
> >        at
> >
> org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:109)
> >        at
> >
> org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
> >        at
> >
> org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:78)
> >        at
> >
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:302)
> >        at
> >
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:121)
> >        at
> >
> org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:481)
> >        at
> >
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:777)
> >        at
> >
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:759)
> >        at
> >
> org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelContext.java:165)
> >        at
> >
> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:160)
> >        at
> > org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:50)
> >        at
> >
> org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:95)
> >        at
> >
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:114)
> > Exception in thread "SpringOsgiExtenderThread-18"
> > java.lang.OutOfMemoryError: PermGen space
> > Exception in thread "Thread-5" java.lang.OutOfMemoryError: PermGen space
> >
> > Regards,
> >
> > Charles Moulliard
> > Senior Enterprise Architect
> > Apache Camel Committer
> >
> > *****************************
> > blog : http://cmoulliard.blogspot.com
> >
>

Reply via email to