-
1. Re: JBoss 6 Final: unpacking WEB-INF\lib at starting?
jaikiran Jan 4, 2011 1:32 PM (in response to aeternitas)Does exploded deployment http://community.jboss.org/wiki/ExplodedDeployment help?
-
2. Re: JBoss 6 Final: unpacking WEB-INF\lib at starting?
aeternitas Jan 4, 2011 1:38 PM (in response to jaikiran)no, already did it. This way I saved some time (JBoss does not need to unpack era/war), but it still unpacks all jars in tmp folder, on virtual file system (in folders like "asm.jar-xxxx/content/..."). Libs which are in my.ear\lib folder are not unpacked; only WEB-INF\lib from war...
-
3. Re: JBoss 6 Final: unpacking WEB-INF\lib at starting?
aeternitas Jan 5, 2011 4:42 AM (in response to aeternitas)looks like it is because of annotation scanning. JBoss 5 has jboss-scanning.xml to configure what and where to scan, in JBoss 6 I don't see such a conf file. How to minimize scanning here?
-
4. Re: JBoss 6 Final: unpacking WEB-INF\lib at starting?
jaikiran Jan 5, 2011 6:11 AM (in response to aeternitas)It's not about annotation scanning. Looking at the code (in AbstractWarDeployer) it appears that a piece of code changed during VFS3 migration and it looks like the exploding of these jar files is happening there. Eariler it used to copy over the jars to the tmp folder and not extract them. The current behaviour is probably a bug. I currently don't see a workaround for this.
-
5. Re: JBoss 6 Final: unpacking WEB-INF\lib at starting?
aeternitas Jan 5, 2011 7:38 AM (in response to jaikiran)thank you for replying! Ok, for now I just minimized count of libraries in my war files inside ear package (just moved many of them to ear/lib), and another single war file I just packaged to ear (moving all its libraries to ear/lib). Maybe it is not good from packaging POV, but this way I saved 2+ minutes at JBoss AS starting.
-
6. Re: JBoss 6 Final: unpacking WEB-INF\lib at starting?
jaikiran Jan 5, 2011 7:41 AM (in response to aeternitas)Maxym Pendyshchuk wrote:
thank you for replying! Ok, for now I just minimized count of libraries in my war files inside ear package (just moved many of them to ear/lib), and another single war file I just packaged to ear (moving all its libraries to ear/lib).
Oh yeah, that's a reasonable workaround. I'll create a JIRA to track this.
-
7. Re: JBoss 6 Final: unpacking WEB-INF\lib at starting?
aeternitas Jan 5, 2011 7:42 AM (in response to aeternitas)If it is a bug, should it be posted to issue tracker? Maybe it can be fixed in 6.0.1 or any other next release of JBoss 6.x...
-
8. Re: JBoss 6 Final: unpacking WEB-INF\lib at starting?
jaikiran Jan 5, 2011 7:43 AM (in response to aeternitas)Maxym Pendyshchuk wrote:
If it is a bug, should it be posted to issue tracker?
Yes please. Feel free to create one here https://jira.jboss.org/browse/JBAS
-
9. Re: JBoss 6 Final: unpacking WEB-INF\lib at starting?
aeternitas Jan 5, 2011 7:43 AM (in response to aeternitas)ok, thank you, I'll follow this issue.
-
10. Re: JBoss 6 Final: unpacking WEB-INF\lib at starting?
aeternitas Jan 5, 2011 7:45 AM (in response to aeternitas)and can it be done somehow to improve performance of classloading?
-
11. Re: JBoss 6 Final: unpacking WEB-INF\lib at starting?
aeternitas Jan 5, 2011 8:28 AM (in response to aeternitas)I've posted appropriate issue: https://issues.jboss.org/browse/JBAS-8786
-
12. Re: JBoss 6 Final: unpacking WEB-INF\lib at starting?
jaikiran Jan 5, 2011 8:38 AM (in response to aeternitas)Maxym Pendyshchuk wrote:
I've posted appropriate issue: https://issues.jboss.org/browse/JBAS-8786
Thanks.
and can it be done somehow to improve performance of classloading?
I didn't understand this question. Can you please explain a bit?
-
13. Re: JBoss 6 Final: unpacking WEB-INF\lib at starting?
aeternitas Jan 5, 2011 9:00 AM (in response to jaikiran)about classloading: when class is located in jar, just to "get it" classloader probably needs to surf zipped archive, and when we unpack it we can save this time so java can take it from file system instead of looking in zip file.. Something like that . If it is done so, then the question is why only files from WEB-INF\lib are unpacked, and not other (like libs of JBoss AS, or libs from ear)...
-
14. JBoss 6 Final: unpacking WEB-INF\lib at starting?
chkal Jan 9, 2011 7:15 AM (in response to aeternitas)Hi all,
I've similar problems with WAR file deployment and JBoss 6.0.0.Final. The deployment of a simple WAR file with about 30 MB of JAR files in WEB-INF/lib/ takes MUCH longer than on older JBoss versions (over one minutes vs. ~10 seconds).
I personally don't think that unpacking all JAR files in WEB-INF/lib/ can lead to such a performance impact. Unpacking JAR file with a total size of about 30 MB cannot take sooo long. In my opinion it is more related to JBoss scanning all the classes in the JAR file for annotations. I did some random thread dumps during deployment and most of the time JBoss was loading classes from the classloader. If my theory is correct it would also makes sense that placing all JARs in server/default/lib/ fixes this problem because in this case they are NOT scanned for annotations.
My guess is that one can fix this problem somehow by using a jboss-scanning.xml file for the WAR but unfortunately I've never created such a file and there seems no real documentation except for this wiki page. I'll have a deeper look on Monday.