-
1. Re: Is there a tuning section on JBoss 6.x version
jaikiran Dec 6, 2010 2:00 AM (in response to ohmygod)Most of the 5.x related information should still apply for AS 6.x.
-
2. Is there a tuning section on JBoss 6.x version
aeternitas Jan 12, 2011 11:05 AM (in response to jaikiran)that's true, but still there are some differences, like for JMS... feel myself like in a dark room deciding what to kill so appropriate WIki page is very wished...
-
3. Is there a tuning section on JBoss 6.x version
riskyseven Jan 13, 2011 5:21 PM (in response to aeternitas)I agree 100% w/ a need for JBoss 6.x tuning/slimming guide. I've used the 5.x guide (did this work for 5.x for our project) for 6.x and am having ejb3 and jms issues....amonth others.
-
4. Is there a tuning section on JBoss 6.x version
jaikiran Jan 14, 2011 12:11 AM (in response to riskyseven)If you look at those wikis, you'll notice that a lot of it is edited/created by community volunteers. So feel free to start a new one for AS6. This doesn't mean that I or someone else is not willing to contribute but don't wait for others to write down those steps. Whatever applies from AS5, start with that and if you have some specific questions which need help, feel free to ask them in the forums here.
-
5. Re: Is there a tuning section on JBoss 6.x version
aeternitas Jan 17, 2011 8:19 AM (in response to jaikiran)Well, this is reasonable, I just don't want to provide false information
Can it be done this way: I can write here everything I did so far and problems I was faced with; other people can point me where I am wrong and tell me/us why is it this way. As result somebody can just copy/summurize that information, enhance and create at least basic version of such a wiki page... I know it could be better to edit wiki page, but I prefer a discussion...
-
6. Is there a tuning section on JBoss 6.x version
jaikiran Jan 18, 2011 8:41 AM (in response to aeternitas)Maxym Pendyshchuk wrote:
Can it be done this way: I can write here everything I did so far and problems I was faced with; other people can point me where I am wrong and tell me/us why is it this way.
Yes, that should be a good start
-
7. Re: Is there a tuning section on JBoss 6.x version
aeternitas Jan 27, 2011 1:23 PM (in response to jaikiran)ok
well, I use EJB3.1, REST, Web part (Servlets, JSP, but no JSF), Mail service. And I'm going to try Weld - so that's what I definitely don't want to remove. I've removed some services which are easy to remove (just deleting file or directory), and I'm not sure I removed everything related to them. Actually they are:
1) Seam:
server/<node>/deployers/seam.deployer
common/deploy/admin-console.war
server/<node>/deploy/admin-console-activator-jboss-beans.xml
I didn't notice that Admin Console takes too much resources (maybe it was just an issue for JBoss 5.x), is it still true? Anyway I removed it too for now.
2) JSF:
server/<node>/deployers/jsf.deployer
3) Scheduling Service:
server/<node>/deploy/quartz-ra.rar
server/<node>/deploy/schedule-manager-service.xml
server/<node>/deploy/scheduler-service.xml
common/lib/quartz.jar
common/lib/scheduler-plugin.jar
common/lib/scheduler-plugin-example.jar
Well, no idea if that help that much after killing some libraries in common/lib folder I didn't notice that JBoss loads less classes. What to do? If I don't need quartz/scheduling service, I actually don't need those jars...
4) EJB2 Service
server/<node>/deploy/ejb2-container-jboss-beans.xml
I can't remove ejb2-timer-service.xml 'cause I still use this timer... Maybe there is a good advice how to switch to something else? I also see common/deploy/jboss-ejb3-timerservice-mk2.jar - I didn't try to remove it, should I? Or I can use it instead of ejb2-timer?
5) JMS service
server/<node>/deploy/hornetq
server/<node>/deploy/jms-ra.rar
server/<node>/deployers/hornetq-deployers-jboss-beans.xml
common/lib/hornetq-bootstrap.jar
common/lib/hornetq-core.jar
common/lib/hornetq-jboss-as-integration.jar
common/lib/hornetq-jms.jar
common/lib/hornetq-logging.jar
common/lib/jboss-as-hornetq-int.rar
The same question as for scheduling, should I remove jars too? Does it help to minimize classes loaded?
6) Key Generator Service
server/<node>/deploy/uuid-key-generator.sar
7) XA Datasources Service
server/<node>/deploy/jboss-xa-jdbc.rar
8) SQL Exceptions Service
server/<node>/deploy/sqlexception-service.xml
9) Invokers
server/<node>/deploy/legacy-invokers-service.xml
server/<node>/deploy/http-invoker.sar
10) Clustering
server/<node>/deploy/mod_cluster.sar
11) WS Service
server/<node>/deployers/jbossws-jaxrpc.deployer
common/deploy/jbossws-console.war
And here I have problem... I do not create my web services, I just use few web services from internet... Should it stop me from removing other stuff like jbossws.deployer? After I kill this directory I can't boot my server because of exceptions... Is here any other dependency to this service, which I could use?
for now that's all I did so far. But I'm sure we could do more . Any feedback, anything I could remove too to get rid of services mentioned above?
Message was edited by: Maxym Pendyshchuk, 27-01-2011, added jar dependency to JMS
-
8. Re: Is there a tuning section on JBoss 6.x version
aeternitas Jan 19, 2011 3:18 AM (in response to aeternitas)Does MailService depends on jbossws.deployer? After removing that deployer, I get an exception at AS booting:
Caused by: java.lang.RuntimeException: No SwitchBoard Barrier found for bean: Ma ilService in unit: AbstractVFSDeploymentContext@7751736{vfs:///H:/jboss-6.0.0.Fi nal/server/default/deploy/cliptoo.ear/poi-engine.jar/} (or its component deploym ent unit) at org.jboss.ejb3.deployers.Ejb3JBoss5Deployment.registerEJBContainer(Ej b3JBoss5Deployment.java:159) [:6.0.0.Final] at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:599) [:1.7.17 ] ... 47 more
-
9. Re: Is there a tuning section on JBoss 6.x version
jaikiran Jan 19, 2011 5:58 AM (in response to aeternitas)Maxym Pendyshchuk wrote:
1) Seam:
server/<node>/deployers/seam.deployer
common/deploy/admin-console.war
I didn't notice that Admin Console takes too much resources (maybe it was just an issue for JBoss 5.x), is it still true? Anyway I removed it too for now.
admin-console is lazy deployed in AS6. So unless you hit the http://localhost:8080/admin-console URL, it will not be deployed and no resources will be used. See this for details http://community.jboss.org/thread/147220. You can leave it around in common/deploy. But if you remove it from there, then also remember to remove the JBOSS_HOME/server/<servername>/deploy/admin-console-activator-jboss-beans.xml file.
-
10. Re: Is there a tuning section on JBoss 6.x version
aeternitas Jan 19, 2011 9:35 AM (in response to jaikiran)thank you, didn't know about this feature before. I updated also list above.
what about MailService+JBossWS - are they bound? At least where to dig out?
MailService I do use, but no visiual dependency to WebServices...
-
11. Re: Is there a tuning section on JBoss 6.x version
jaikiran Jan 19, 2011 9:55 AM (in response to aeternitas)Maxym Pendyshchuk wrote:
3) Scheduling Service:
server/<node>/deploy/quartz-ra.rar
server/<node>/deploy/schedule-manager-service.xml
server/<node>/deploy/scheduler-service.xml
common/lib/quartz.jar
common/lib/scheduler-plugin.jar
common/lib/scheduler-plugin-example.jar
Well, no idea if that help that much after killing some libraries in common/lib folder I didn't notice that JBoss loads less classes. What to do? If I don't need quartz/scheduling service, I actually don't need those jars...
Letting those common/lib jars remain, should be fine. They wouldn't really add to any additional class processing since they aren't picked up for any of the annotation scanning or any similar stuff. So I don't think removing those jars is necessary. The .rar and the other 2 xmls in the deploy folder can be removed.
-
12. Re: Is there a tuning section on JBoss 6.x version
jaikiran Jan 19, 2011 10:00 AM (in response to aeternitas)Maxym Pendyshchuk wrote:
4) EJB2 Service
server/<node>/deploy/ejb2-container-jboss-beans.xml
I can't remove ejb2-timer-service.xml 'cause I still use this timer...
The error is probably because of this issue https://jira.jboss.org/browse/EJBTHREE-1880, which never made it to 6.0.0.Final due to time constraints. Can you confirm that you are seeing the same error when you remove that file?
Maxym Pendyshchuk wrote:
4) EJB2 Service
I also see common/deploy/jboss-ejb3-timerservice-mk2.jar - I didn't try to remove it, should I? Or I can use it instead of ejb2-timer?The jboss-ejb3-timerservice-mk2.jar is used for EJB3 timerservice. Similar to admin-console, this one too is lazily deployed. i.e. it won't be processed unless and until the server has an EJB3 deployment. See this for details http://community.jboss.org/wiki/LazyEJB31timerservicedeploymentstartingJBossAS600M5. So letting it stay in the common/deploy folder won't cause any performance impact.
-
13. Re: Is there a tuning section on JBoss 6.x version
aeternitas Jan 19, 2011 10:58 AM (in response to jaikiran)jaikiran pai wrote:
The error is probably because of this issue https://jira.jboss.org/browse/EJBTHREE-1880, which never made it to 6.0.0.Final due to time constraints. Can you confirm that you are seeing the same error when you remove that file?
Well, I see the same in my log, when I remove that file:
Deployment "<UNKNOWN jboss.j2ee:ear=my.ear,jar=my-ejb.jar,name=MyDAOLocal,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jboss.ejb:service=EJBTimerService' **
One of my services depends on
import javax.ejb.Timeout; import javax.ejb.Timer;
are they related to ejb2-timer-service.xml? or jboss-ejb3-timerservice-mk2.jar?
-
14. Re: Is there a tuning section on JBoss 6.x version
jaikiran Jan 19, 2011 12:20 PM (in response to aeternitas)It's the xsd in the ejb-jar.xml (if you have one) of your application which decides which EJB version is being used (that effectively decides the timerservice). What kind of a "service" is that class?