I have three EARs deployed under JBoss each of which have a copy of a set of JARs. I'd like to keep these JARs at the EAR level (instead of server/lib) for reasons not worth mentioning here.
My question is: does having copies of these JARs in each EAR increase the amount of PermGen space required by the JVM?
Sample deployment structure:
Yes, because each ear deployer will load the classes in separate classloaders. You can "share" classes by using a classloader setting in jboss.xml