Hi All, After looking into server startup with RuwanA, found that *org.eclipse.osgi.internal.resolver.VersionConstraintImpl *class getting much more CPU time by causing the $subject. Also HashMap get() method invoking too many times from above class. This is happening when OSGi framework tried to resolve bundles when starting the runtime.
Since IoT server has relatively large number of bundles (786) with size of 346.6MB, it might have large number of dependencies to check and verify during bundle resolving stage. Seems it is the reason for that time delay and can't fix $subject without reducing the number of bundles inside the IoTServer product. Please let me know if there any other concerns or ideas. Thanks & Regards, /charithag On Mon, Jan 25, 2016 at 10:49 PM, Charitha Goonetilleke <[email protected]> wrote: > Hi all, > > When we are doing developments with IoTServer, we realized that, IoTServer > takes some time to start from wso2server.sh script. Usually it takes nearly > 120 seconds. I think it is much more higher than our other products. By the > way when analyzing the server logs, I found that, there is a time gap > between 1st INFO level log and last output from the startup shell script. > It is nearly around 1 minute. > > WDYT about this? Is there any work around to fix this issue? > > *[charitha@charithag-wso2 bin]$ ./wso2server.sh* > *JAVA_HOME environment variable is set to /usr/java/jdk1.7.0_79* > *CARBON_HOME environment variable is set to > /home/charitha/git/EMM-Merge/product-iot-server/modules/distribution/target/wso2iots-1.0.0-SNAPSHOT* > > *[2016-01-25 22:31:37,285] INFO > {org.wso2.andes.wso2.internal.QpidBundleActivator} - Setting BundleContext > in PluginManager* > *[2016-01-25 22:31:39,747] INFO > {org.wso2.carbon.appmgt.impl.internal.AppDiscoveryComponent} - WebApp > Discovery component activated* > *[2016-01-25 22:31:39,772] INFO > {org.wso2.carbon.appmgt.mobile.internal.AppManagerMobileComponent} - > WSO2EMM MDM is bound to App Manager* > *[2016-01-25 22:31:39,772] INFO > {org.wso2.carbon.appmgt.mobile.internal.AppManagerMobileComponent} - App > Manger Mobile Component activated* > *[2016-01-25 22:31:39,846] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2 > Carbon...* > *[2016-01-25 22:31:39,846] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System : > Linux 4.3.3-300.fc23.x86_64, amd64* > *[2016-01-25 22:31:39,847] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home : > /usr/java/jdk1.7.0_79/jre* > *[2016-01-25 22:31:39,847] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version : > 1.7.0_79* > *[2016-01-25 22:31:39,847] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM : > Java HotSpot(TM) 64-Bit Server VM 24.79-b02,Oracle Corporation* > *[2016-01-25 22:31:39,847] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Home : > /home/charitha/git/EMM-Merge/product-iot-server/modules/distribution/target/wso2iots-1.0.0-SNAPSHOT* > *[2016-01-25 22:31:39,847] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Temp Dir : > /home/charitha/git/EMM-Merge/product-iot-server/modules/distribution/target/wso2iots-1.0.0-SNAPSHOT/tmp* > *[2016-01-25 22:31:39,847] INFO > {org.wso2.carbon.core.internal.CarbonCoreActivator} - User : > charitha, en-US, Asia/Colombo* > *[2016-01-25 22:31:40,122] INFO > {org.wso2.carbon.event.output.adapter.kafka.internal.ds.KafkaEventAdapterServiceDS} > - Successfully deployed the Kafka output event adaptor service* > *[2016-01-25 22:31:40,404] INFO > {org.wso2.carbon.identity.authenticator.backend.oauth.internal.OauthAuthenticatorServiceComponent} > - Initiating* > *Activating org.wso2.jaggery.scxml with RealmService enabled* > *...* > *...* > *...* > *[2016-01-25 22:32:39,155] INFO > {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - Server > : WSO2 IoT Server-1.0.0-SNAPSHOT* > *[2016-01-25 22:32:39,156] INFO > {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - WSO2 > Carbon started in 119 sec* > > > Thanks & Regards, > /charithag > > -- > *Charitha Goonetilleke* > Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: +94 77 751 3669 <%2B94777513669> > Twitter:@CharithaWs <https://twitter.com/CharithaWs>, fb: charithag > <https://www.facebook.com/charithag>, linkedin: charithag > <http://www.linkedin.com/in/charithag> > -- *Charitha Goonetilleke* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 77 751 3669 <%2B94777513669> Twitter:@CharithaWs <https://twitter.com/CharithaWs>, fb: charithag <https://www.facebook.com/charithag>, linkedin: charithag <http://www.linkedin.com/in/charithag>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
