[Installation, Configuration & Deployment] - jboss as performance tuning
by ofsen
Hi,
Is there any performance tuning document for Jboss/tomcat/mod_jk? I am currently having problems with mod_jk. Mod_jk sometimes doesn't send request to jboss AS .. In mod_jk.log I get following errors:
[Fri Oct 06 10:39:50 2006][28177:28992] [info] ajp_service::jk_ajp_common.c (1795): (node1) request failed, because of client write error without recovery in send loop attempt=0
[Fri Oct 06 10:39:50 2006][28177:28992] [info] service::jk_lb_worker.c (873): unrecoverable error 200, request failed. Client failed in the middle of request, we can't recover to another instance.
[Fri Oct 06 10:39:50 2006][28177:28992] [info] jk_handler::mod_jk.c (2056): Aborting connection for worker=loadbalancer
[Fri Oct 06 10:39:50 2006][27764:28992] [info] ajp_process_callback::jk_ajp_common.c (1410): Writing to client aborted or client network problems
[Fri Oct 06 10:39:50 2006][27764:28992] [info] ajp_service::jk_ajp_common.c (1795): (node3) request failed, because of client write error without recovery in send loop attempt=0
[Fri Oct 06 10:39:50 2006][27764:28992] [info] service::jk_lb_worker.c (873): unrecoverable error 200, request failed. Client failed in the middle of request, we can't recover to another instance.
[Fri Oct 06 10:39:50 2006][27764:28992] [info] jk_handler::mod_jk.c (2056): Aborting connection for worker=loadbalancer
[Fri Oct 06 10:39:51 2006][28015:28992] [info] ajp_process_callback::jk_ajp_common.c (1410): Writing to client aborted or client network problems
[Fri Oct 06 10:39:51 2006][28015:28992] [info] ajp_service::jk_ajp_common.c (1795): (node3) request failed, because of client write error without recovery in send loop attempt=0
[Fri Oct 06 10:39:51 2006][28015:28992] [info] service::jk_lb_worker.c (873): unrecoverable error 200, request failed. Client failed in the middle of request, we can't recover to another instance.
I have edited worker.properties and added this line
worker.node2.cachesize=1000
After that my httpd.conf:
<IfModule prefork.c>
StartServers 30
MinSpareServers 15
MaxSpareServers 30
ServerLimit 2048
MaxClients 2048
#MaxRequestsPerChild 4000
MaxRequestsPerChild 0
And as last performance tweaking I have edited
$JBOSS_HOME/server/default/deploy/jbossweb-tomca55.sar/conf/server.xml like:
<!-- A HTTP/1.1 Connector on port 8080 -->
<!-- A AJP 1.3 Connector on port 8009 -->
Now mod_jk accepts more request without problem but I again live some problmes..
I test my jboss/mod_jk with openwebload.sf.net tool
openload http://server/app/ 10 100 I get errors
But with
openload http://server:8080/app/ 10 100 I get no errors.
I really appreciate if you enlighen me..
Best Regards.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976548#3976548
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976548
19 years, 7 months
[JBoss Portal] - Re: Cannot see Management and CMS portlet
by gumreal
I am using JBoss AS 4.0.4 GA + JBossPortal 2.4 GA.
Maybe there are some differences between JBossPortal2.2 and JBossPortal2.4.
When I used JBossAS4.0.4+JBossPortal2.4 bundle, and use the default HSQL as DBMS, there was no problem.
When I changed the DBMS to MySQL, many exceptions occered.
First, I changed 4 fields as you have seen, then, I insert some data(user/role) in db, finally, no exceptions occered.
|
| INSERT INTO JBP_ROLES VALUES(1,'Admin','Administrators');
| INSERT INTO JBP_ROLES VALUES(2,'User','Users');
| INSERT INTO JBP_USERS VALUES(1,'admin',NULL,NULL,'21232f297a57a5a743894a0e4a801fc3','admin(a)portal.com',NULL,'2006-09-24',TRUE,TRUE);
| INSERT INTO JBP_USERS VALUES(2,'user',NULL,NULL,'ee11cbb19052e40b07aac0ca060c23ee','user(a)portal.com',NULL,'2006-09-24',TRUE,TRUE);
| INSERT INTO JBP_ROLE_MEMBERSHIP VALUES(1,1);
| INSERT INTO JBP_ROLE_MEMBERSHIP VALUES(2,2);
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976543#3976543
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976543
19 years, 7 months
[Clustering/JBoss] - load-balance-policy tag in jboss.xml not working
by pmadzik
Hello!
I try to obtain clustering for SLSB using jboss.xml description:
| HelloBean.java:
| import javax.ejb.Stateless;
|
| import java.net.InetAddress;
| import java.net.UnknownHostException;
|
| import org.jboss.annotation.ejb.Clustered;
|
| @Stateless//(a)Clustered(loadBalancePolicy=org.jboss.ha.framework.interfaces.RoundRobin.class)public class HelloBean implements HelloRemote {
| public String sayHelloFrom() throws UnknownHostException {
| String host = InetAddress.getLocalHost().getHostAddress();
|
| return "Hello from " + host + "!";
| }
| }
|
| jboss.xml:
| <?xml version="1.0"?>
| <jboss
| xmlns="http://java.sun.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
| http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
| version="3.0">
| <enterprise-beans>
| <session>
| <ejb-name>HelloBean</ejb-name>
| <clustered>true</clustered>
| <cluster-config>
| <partition-name>${jboss.partition.name:DefaultPartition}</partition-name> <load-balance-policy>org.jboss.ha.framework.interfaces.RoundRobin</load-balance-policy> </cluster-config>
| </session>
| </enterprise-beans>
| </jboss>
|
| Client.java:
| import javax.naming.InitialContext;
| import javax.naming.Context;
| import javax.naming.NamingException;
|
| import java.net.UnknownHostException;
|
|
| public class Client
| {
| public static void main(String[] args)
| {
| try {
| Context jndiContext = getInitialContext();
| Object ref = jndiContext.lookup("HelloBean/remote");
| HelloRemote hello = (HelloRemote) ref;
|
| for (int i = 0; i < 10; i++) {
| System.out.println(hello.sayHelloFrom());
| }
| }
| catch (NamingException ne) {
| ne.printStackTrace();
| }
| catch (UnknownHostException he) {
| he.printStackTrace();
| }
| }
|
| public static Context getInitialContext() throws NamingException
| {
| return new InitialContext();
| }
| }
|
I setup cluster with to nodes (10.1.2.71, 10.1.1.192).
After client start i always get:
| Hello from 10.1.1.192!
| Hello from 10.1.1.192!
| Hello from 10.1.1.192!
| Hello from 10.1.1.192!
| Hello from 10.1.1.192!
| Hello from 10.1.1.192!
| Hello from 10.1.1.192!
| Hello from 10.1.1.192!
| Hello from 10.1.1.192!
| Hello from 10.1.1.192!
|
or
| Hello from 10.1.2.71!
| Hello from 10.1.2.71!
| Hello from 10.1.2.71!
| Hello from 10.1.2.71!
| Hello from 10.1.2.71!
| Hello from 10.1.2.71!
| Hello from 10.1.2.71!
| Hello from 10.1.2.71!
| Hello from 10.1.2.71!
| Hello from 10.1.2.71!
|
Seems that load-balance-policy tag is not working because removing comment with @Clustered annotation in HelloBean.java results:
| Hello from 10.1.1.192!
| Hello from 10.1.2.71!
| Hello from 10.1.1.192!
| Hello from 10.1.2.71!
| Hello from 10.1.1.192!
| Hello from 10.1.2.71!
| Hello from 10.1.1.192!
| Hello from 10.1.2.71!
| Hello from 10.1.1.192!
| Hello from 10.1.2.71!
|
Is it bug in jboss or in my configuration?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976539#3976539
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976539
19 years, 7 months