On Wed, Mar 16, 2011 at 8:47 PM, Anjana Fernando <[email protected]> wrote: > Hi Azees, > > On Wed, Mar 16, 2011 at 8:19 PM, Afkham Azeez <[email protected]> wrote: >> Add this element as the first child of the surefire-plugin configuration >> element: >> <argLine>-Xms512m -Xmx1024m</argLine> > > Yeah, giving the settings like that works! .. Actually I'd to also > give max permGen setting with "-XX:PermSize=128m", since that was the > problem I got.
Correction: "-XX:MaxPermSize=128m". > > Thanks, > Anjana. > >> >> On Wed, Mar 16, 2011 at 8:11 PM, Kasun Weranga <[email protected]> wrote: >>> >>> Same happen when running the integration tests in BAM too. >>> >>> On Wed, Mar 16, 2011 at 8:06 PM, Afkham Azeez <[email protected]> wrote: >>>> >>>> Isuru also mentioned this. I think we have to give memory on a per unit >>>> test configuration basis. >>>> See >>>> http://ykyuen.wordpress.com/2010/03/02/maven-set-java-heap-memory-for-junit-in-maven-surefire-plugin/ >>>> The default memory allocated for unit test processes is as low as 128M I >>>> think. >>>> >>>> On Wed, Mar 16, 2011 at 8:01 PM, Anjana Fernando <[email protected]> wrote: >>>>> >>>>> Hi, >>>>> >>>>> After setting up a simple test for DSS, and running the integration >>>>> tests, when the carbon server is starting up, it throws as error >>>>> saying "OutOfMemoryError: PermGen space". The following is the last of >>>>> the logs to print. I increased the memory settings with >>>>> MAVEN_OPTS="-Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m", but no >>>>> luck. Any ideas? .. >>>>> >>>>> ------------------------------------------- >>>>> [2011-03-16 19:53:44,393] INFO >>>>> >>>>> {org.wso2.carbon.event.broker.subscriptions.EmbeddedRegistryBasedSubscriptionManager} >>>>> - Connection established with the registry >>>>> [2011-03-16 19:53:44,765] INFO >>>>> {org.wso2.carbon.event.core.internal.builder.EventBrokerBuilderDS} - >>>>> Successfully registered the event broker >>>>> [2011-03-16 19:53:44,807] INFO {org.quartz.simpl.SimpleThreadPool} - >>>>> Job execution threads will use class loader of thread: Framework Event >>>>> Dispatcher >>>>> [2011-03-16 19:53:44,832] INFO {org.quartz.core.QuartzScheduler} - >>>>> Quartz Scheduler v.UNKNOWN.UNKNOWN.UNKNOWN created. >>>>> [2011-03-16 19:53:44,835] INFO {org.quartz.simpl.RAMJobStore} - >>>>> RAMJobStore initialized. >>>>> [2011-03-16 19:53:44,835] INFO {org.quartz.impl.StdSchedulerFactory} >>>>> - Quartz scheduler 'DefaultQuartzScheduler' initialized from default >>>>> resource file in Quartz package: 'quartz.properties' >>>>> [2011-03-16 19:53:44,835] INFO {org.quartz.impl.StdSchedulerFactory} >>>>> - Quartz scheduler version: UNKNOWN.UNKNOWN.UNKNOWN >>>>> [2011-03-16 19:53:44,835] INFO {org.quartz.core.QuartzScheduler} - >>>>> Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. >>>>> [2011-03-16 19:53:44,873] INFO >>>>> {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} - >>>>> Permission cache updated for tenant 0 >>>>> [2011-03-16 19:53:44,874] INFO >>>>> {org.wso2.carbon.core.init.CarbonServerManager} - >>>>> ConfigurationContextService registered in 537ms >>>>> [2011-03-16 19:53:44,897] WARN >>>>> {org.apache.axis2.engine.ListenerManager} - ConfigurationContext >>>>> provided for the ListenerManager initialization is null. >>>>> ListenerManager will not be initialized >>>>> [2011-03-16 19:53:44,898] INFO >>>>> {org.wso2.carbon.core.transports.http.HttpsTransportListener} - HTTPS >>>>> port : 9443 >>>>> [2011-03-16 19:53:44,898] INFO >>>>> {org.wso2.carbon.core.transports.http.HttpTransportListener} - HTTP >>>>> port : 9763 >>>>> [2011-03-16 19:53:44,924] INFO >>>>> >>>>> {org.wso2.carbon.registry.eventing.internal.RegistryEventingServiceComponent} >>>>> - Successfully Initialized Eventing on Registry >>>>> Mar 16, 2011 7:53:47 PM org.apache.shindig.config.JsonContainerConfig >>>>> loadContainers >>>>> INFO: Loading resources from: containers/default/container.js >>>>> Mar 16, 2011 7:53:47 PM org.apache.shindig.config.JsonContainerConfig >>>>> loadResources >>>>> INFO: Reading container config: containers/default/container.js >>>>> [2011-03-16 19:53:50,950] ERROR >>>>> {org.wso2.carbon.dashboard.ui.internal.DashboardUiServiceComponent} - >>>>> PermGen space >>>>> [2011-03-16 19:53:58,080] ERROR >>>>> {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} - Failed to >>>>> activate Carbon UI bundle >>>>> java.lang.OutOfMemoryError: PermGen space >>>>> [2011-03-16 19:54:00,065] ERROR >>>>> {org.wso2.carbon.statistics.internal.StatisticsServiceComponent} - >>>>> Failed to activate Statistics bundle >>>>> java.lang.OutOfMemoryError: PermGen space >>>>> [2011-03-16 19:54:02,970] ERROR >>>>> {org.wso2.carbon.server.admin.internal.ServerAdminServiceComponent} - >>>>> Failed to activate ServerAdmin bundle >>>>> java.lang.OutOfMemoryError: PermGen space >>>>> Exception in thread "SynchWorkerThread" java.lang.OutOfMemoryError: >>>>> PermGen space >>>>> [2011-03-16 19:54:10,727] ERROR >>>>> {org.wso2.carbon.dashboard.ui.internal.DashboardUiServiceComponent} - >>>>> PermGen space >>>>> java.lang.OutOfMemoryError: PermGen space >>>>> ------------------------------------------- >>>>> >>>>> Cheers, >>>>> Anjana. >>>>> >>>>> -- >>>>> Anjana Fernando >>>>> Software Engineer >>>>> WSO2, Inc.; http://wso2.com >>>>> lean.enterprise.middleware >>>>> _______________________________________________ >>>>> Carbon-dev mailing list >>>>> [email protected] >>>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>> >>>> >>>> >>>> -- >>>> Afkham Azeez >>>> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, >>>> >>>> Member; Apache Software Foundation; http://www.apache.org/ >>>> email: [email protected] cell: +94 77 3320919 >>>> blog: http://blog.afkham.org >>>> twitter: http://twitter.com/afkham_azeez >>>> linked-in: http://lk.linkedin.com/in/afkhamazeez >>>> >>>> Lean . Enterprise . Middleware >>>> >>>> _______________________________________________ >>>> Carbon-dev mailing list >>>> [email protected] >>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>> >>> >>> >>> >>> -- >>> Kasun Weranga >>> Software Engineer >>> WSO2, Inc. >>> lean.enterprise.middleware. >>> mobile : +94 772314602 >>> blog :http://kasunweranga.blogspot.com/ >> >> >> >> -- >> Afkham Azeez >> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com, >> >> Member; Apache Software Foundation; http://www.apache.org/ >> email: [email protected] cell: +94 77 3320919 >> blog: http://blog.afkham.org >> twitter: http://twitter.com/afkham_azeez >> linked-in: http://lk.linkedin.com/in/afkhamazeez >> >> Lean . Enterprise . Middleware >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > > > -- > Anjana Fernando > Software Engineer > WSO2, Inc.; http://wso2.com > lean.enterprise.middleware > -- Anjana Fernando Software Engineer WSO2, Inc.; http://wso2.com lean.enterprise.middleware _______________________________________________ Carbon-dev mailing list [email protected] http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
