File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Small Footprint JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Small Footprint JBoss" Watch "Small Footprint JBoss" New topic

Small Footprint JBoss

Joshua Smith
Ranch Hand

Joined: Aug 22, 2005
Posts: 193

Is there a way to run a smaller footprint (less disk space, less memory, less CPU) of JBoss with stripped down functionality?

In particular I'm thinking of client apps in the context of web services that might themselves be servers, but not servers that would be receiving many hits and certainly wouldn't need all of the functionality of JBoss.


Rational Pi Blog - Java, SCJP, Dev Bits-
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

There are three server configurations : default, minimal, all.

You can create your own config by creating a new directory and tell jboss to use it at boot time.
For more:
[ February 08, 2006: Message edited by: Satou kurinosuke ]

[My Blog]
All roads lead to JavaRanch
Reid M. Pinchback
Ranch Hand

Joined: Jan 25, 2002
Posts: 775
You can prune down the footprint substantially but it takes a lot of experimentation. The obvious thing is to throw stuff away from the deploy directory, but it also matters to remove things from the lib directory as well, and pay attention to stuff mentioned in files in the conf directory. Even services you keep can be pruned down by reducing unwanted interceptors. At the end of the day you'll only know if you got it right when your server *and* your application can still run. Some services don't kick in that much at startup.

Reid - SCJP2 (April 2002)
Joshua Smith
Ranch Hand

Joined: Aug 22, 2005
Posts: 193
Thank you.

It would be really interesting to have an app that would watch your web application execute and determine which portions of JBoss are used and which ones are not needed. I wonder if some of the dependency tools might be able to do something like that. It's kind of difficult to determine where to spend your time to get to that perfect footprint quicker.

Joshua Smith
I agree. Here's the link:
subject: Small Footprint JBoss
It's not a secret anymore!