Hi, We have introduced new runtime containing all the jars related to jenkins inside AS and configured it as Exclusive environment in webapp-classloading-environments.
Eventhough this will hold jars in a single physical location, all the jars will be loaded to memory per web app. So if we have 50 jenkins instances, same jar would be loaded 50 times. As a solution we could add common,utility jars in as a Shared environment so that those are loaded once and can be used across all the web apps. But we have to do this separation carefully because some classes are intended to use as one instance per app.(eg: singleton classes in Jenkins-core). Those should be stayed as Exclusive, while others should be moved to Shared. Thanks On Jul 30, 2013 11:36 AM, "Harsha Thirimanna" <[email protected]> wrote: > HI sahmika, > > I discussed about this with sameera jayasoma furthermore . As he said you > better to maintain two runtime (shared and exclusive). Better if you can > have a discussion about this with him. > > > *Harsha Thirimanna* > Senior Software Engineer; WSO2, Inc.; http://wso2.com > * <http://www.apache.org/>** > email: **[email protected]* <[email protected]>* cell: +94 71 5186770** > twitter: **http://twitter.com/ <http://twitter.com/afkham_azeez>** > harshathirimann > linked-in: **http: <http://lk.linkedin.com/in/afkhamazeez>**// > www.linkedin.com/pub/harsha-thirimanna/10/ab8/122* > * > * > *Lean . Enterprise . Middleware* > * > * > > > On Tue, Jul 30, 2013 at 12:50 AM, Shamika Ariyawansa <[email protected]>wrote: > >> HI Harsha, >> >> Ya this worked and also have to put <Environments>JENKINS, >> Carbon</Environments> >> to make sure carbon libraries are loaded to the class path. >> >> Thanks >> >> >> On Mon, Jul 29, 2013 at 9:20 PM, Harsha Thirimanna <[email protected]>wrote: >> >>> Hi Shamika, >>> >>> As I told you, you can create a runtime for the JENKINS >>> in ${carbon.home}/lib/runtimes/jenkins and put that libraries in to that. >>> Put a new entry to >>> ${carbon.home}/repository/conf/tomcat/webapp-classloading-environments.xml >>> >>> <ExclusiveEnvironment> >>> <Name>JENKINS</Name> >>> >>> <Classpath>${carbon.home}/lib/runtimes/cxf/*.jar;${carbon.home}/lib/runtimes/jenkins/</Classpath> >>> </ExclusiveEnvironment> >>> >>> then you have to put a new webapp-classloading.xml in to jenkins.war >>> with this change to that >>> >>> <Environments>JENKINS</Environments> >>> >>> This runtime will be loaded as per webapp. >>> >>> If you want to have a shared runtime to all the jenkins wars in a >>> appserver , then you can have another runtime and put it >>> as SharedEnvironment and use it in Environments. >>> >>> >>> >>> >> >> >> -- >> Shamika Ariyawansa >> Senior Software Engineer >> >> Mob:+ 94 772929486 >> > >
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
