RE: Best practices for shared classloader use?

2013-06-06 Thread Jeffrey Janner
-Original Message- From: mailingl...@j-b-s.de [mailto:mailingl...@j-b-s.de] Sent: Tuesday, June 04, 2013 11:25 AM To: Tomcat Users List Subject: Re: Best practices for shared classloader use? Hi Don! Usually each Webapp has its own classloader thus two webapps can have

Re: Best practices for shared classloader use?

2013-06-06 Thread Jens Breitenstein
graying approach :-) Jens Am 06.06.13 15:40, schrieb Jeffrey Janner: -Original Message- From: mailingl...@j-b-s.de [mailto:mailingl...@j-b-s.de] Sent: Tuesday, June 04, 2013 11:25 AM To: Tomcat Users List Subject: Re: Best practices for shared classloader use? Hi Don! Usually each

Re: Best practices for shared classloader use?

2013-06-04 Thread mailingl...@j-b-s.de
Hi Don! You can try to move only common libs shared by all yor different webapps to the shared classloader but leave the application core in seperate war files? Jens Sent from my iPhone On 04.06.2013, at 17:36, Don Asper don.as...@sas.com wrote: I am considering using the Tomcat 7 shared

RE: Best practices for shared classloader use?

2013-06-04 Thread Don Asper
Sorry, I was not clear in my first post. I want to load the jars containing functionality that is common to my web apps using the shared classloader. I anticipate that there can be problems if different versions of the same class are on the shared classpath. I also suspect that any common

Re: Best practices for shared classloader use?

2013-06-04 Thread mailingl...@j-b-s.de
Hi Don! Usually each Webapp has its own classloader thus two webapps can have different versions of the same class. Classloaders are chained so if a class is not found search continues in the next classloader. Shared just means one classloader is used by different webapps thus you may run into

Re: Best practices for shared classloader use?

2013-06-04 Thread Daniel Mikusa
On Jun 4, 2013, at 11:36 AM, Don Asper don.as...@sas.com wrote: I am considering using the Tomcat 7 shared classloader to reduce the memory footprint of my web apps. IMHO, don't do this unless… 1.) You are very, very sure what you are doing 2.) You've analyzed the memory savings that

RE: Best practices for shared classloader use?

2013-06-04 Thread Don Asper
Thanks for your example and advice, Daniel. -Original Message- From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Sent: Tuesday, June 04, 2013 12:45 PM To: Tomcat Users List Subject: Re: Best practices for shared classloader use? On Jun 4, 2013, at 11:36 AM, Don Asper don.as...@sas.com

Re: Best practices for shared classloader use?

2013-06-04 Thread chris derham
I am considering using the Tomcat 7 shared classloader to reduce the memory footprint of my web apps. Can you provide some approximate numbers as to what the current memory footprint is? Also some details of how many tomcat instances you have running and/or how many versions of the application

Re: Best practices for shared classloader use?

2013-06-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Daniel, On 6/4/13 12:44 PM, Daniel Mikusa wrote: On Jun 4, 2013, at 11:36 AM, Don Asper don.as...@sas.com wrote: I am considering using the Tomcat 7 shared classloader to reduce the memory footprint of my web apps. IMHO, don't do this

Re: Best practices for shared classloader use?

2013-06-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 6/4/13 12:56 PM, chris derham wrote: I am considering using the Tomcat 7 shared classloader to reduce the memory footprint of my web apps. Can you provide some approximate numbers as to what the current memory footprint is? Also