Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Slimming AS 5

 
Jason Porter
Author
Ranch Hand
Posts: 126
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome Francesco Marchioni! I've been using JBoss AS 5 for about a year now, and I've been trying to find a slimming guide (something more than my own trial and error). Slimming to reduce the memory footprint and also decrease the boot time (I hear AS 6 M2 is much faster now, haven't look though). I also want to slim because I'm not using some services (such as EJB2). Briefly looking through the TOC for the book it doesn't look like this is covered. Did I miss it, or is there reference somewhere you could point me to?
 
Francesco Marchioni
author
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jason Porter wrote:Welcome Francesco Marchioni! I've been using JBoss AS 5 for about a year now, and I've been trying to find a slimming guide (something more than my own trial and error). Slimming to reduce the memory footprint and also decrease the boot time (I hear AS 6 M2 is much faster now, haven't look though). I also want to slim because I'm not using some services (such as EJB2). Briefly looking through the TOC for the book it doesn't look like this is covered. Did I miss it, or is there reference somewhere you could point me to?

Hi Jason,
in the second chapter it is showed a "map" of the application services (each service and the corresponding libs/xml file used). Next there's an example of how you can create a custom server configuration by adding/removing services.
You can find info on the JBoss site as well
http://community.jboss.org/wiki/JBoss5xTuningSlimming.pdf
regards
Francesco
 
Jason Porter
Author
Ranch Hand
Posts: 126
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very nice, thanks! The last time I looked this document wasn't there, so it must have been created over the past few months. Thanks again!
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This "problem" is also partially addressed by the new J2EE 6.0 modularity and profiles.
 
Jason Porter
Author
Ranch Hand
Posts: 126
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very true. Although we don't have an officially production-ready stamped Java EE 6 container from JBoss just yet (There's M1, and M2 -- which I don't think has been released just yet) but I don't think they're quite up to production quality just yet (please correct me if I'm wrong).

So for production deployment (based on my above assumptions) we have AS 5 if you want to stay with JBoss (or GlassFish v3 which looks very compelling I might add). So you'll end up doing some slimming and tuning to stick with AS 5.
 
Anil Vupputuri
Ranch Hand
Posts: 527
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Francesco Marchioni wrote:
Hi Jason,
in the second chapter it is showed a "map" of the application services (each service and the corresponding libs/xml file used). Next there's an example of how you can create a custom server configuration by adding/removing services.
You can find info on the JBoss site as well
http://community.jboss.org/wiki/JBoss5xTuningSlimming.pdf


Francesco,
Does it mean that JBoss is adopting OSGi?
 
Jason Porter
Author
Ranch Hand
Posts: 126
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss has always had different profiles, but Java EE 6 standardized profiles for servers. The first one is the Web Profile.
 
J Joseph
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following is a related article which shows how to slim JBoss AS 5 and also various optimizations for taking JBoss to production.
JBoss Production Settings
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic