There are two versions of GateIn, are you running the Tomcat version of the JBoss version?
If you start the server without GateIn, what is the time difference? Is it GateIn which is causing the server to start too slow or is it server itself which is slow to start?
I'm running it on JBoss.
Test with gatein.ear: 4m:38s:653ms
Test without gatein.ear: 1m:6s:89ms
I'm using the default configuration of JBoss AS. Maybe I could remove some other ears in there or switch to another configuration folder?
You could try and remove the sample portal and the sample extensions, this gives me a slight increase in speed. I am not sure how easily it would be to remove some of the other GateIn services that you may not need.
In terms of making the JBoss AS part start faster, I am sure there are guides out there for removing non-essential services to speed up AS itself.
Maybe we need documentation on how to create a lighter weight setup with some of the default services removed/disabled.
Remove this and you will save some time:
Anything within gatein.ear I could leave out?
E.g. if I do not want to use gadgets. Can I just remove eXoGadgets.war and eXoGadgetServer.war? But I guess these are tightly interwoven into the whole portal platform so I would have to touch several other config files and potentially break everything.
If you're not using WSRP, you can also remove:
where $GATEIN_HOME is the path to gatein.ear and $WSRP_VERSION and $PORTAL_VERSION correspond to component version numbers for your current GateIn install.