You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Munirathinavel <mu...@gmail.com> on 2010/03/01 13:59:12 UTC
Writing to client aborted or client network problems...
Hi to all...
I'm using apache2.2 + tomcat6.0.18 + mod_jk1.2.28 for our portal.While doing
load test with 20 & more users, I try to access the application through
browser but pages are getting loaded and in mod_jk.log file I'm getting the
following message,
[Fri Feb 26 12:50:25 2010][304:728] [info] jk_ajp_common.c (1788): Writing
to client aborted or client network problems
[Fri Feb 26 12:50:25 2010][304:728] [info] jk_ajp_common.c (2447): (worker1)
sending request to tomcat failed (unrecoverable), because of client write
error (attempt=1)
[Fri Feb 26 12:50:25 2010]worker1 216.205.107.50 30.218750
[Fri Feb 26 12:50:25 2010][304:728] [info] mod_jk.c (2608): Aborting
connection for worker=worker1
I'm using the following files in Tomcat & Apache.
workers.properties:
workers.tomcat_home=D:/tomcat6.0.18
workers.java_home=C:/Program Files/Java/jdk1.6.0_16
ps=/
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=xxxxxxxxxxxx
worker.worker1.port=8009
worker.worker1.connection_pool_timeout=600
worker.worker1.connect_timeout=60000
worker.worker1.prepost_timeout=60000
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=60
worker.worker1.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers= worker1
worker.inprocess.type=jni
server.xml:
<Server port="8006" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />
<Listener className="org.apache.catalina.core.JasperListener" />
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
/>
<Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector debug="0" enableLookups="false" port="8009" protocol="AJP/1.3"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
acceptCount="100"
minProcessors="5" maxProcessors="100" connectionTimeout="60000"
disableUploadTimeout="true" redirectPort="8443"/>
<Engine name="Catalina" defaultHost="xxxxxxxxxxxx" debug="0" >
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
<Host name="xxxxxxxxxxxx" appBase="gateway"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Listener className = "org.apache.jk.config.ApacheConfig"
workersConfig="conf/workers.properties"
modJk="D:/Apache2.2/modules/mod_jk.so" jkLog="logs/mod_jk.log"
jkDebug="info" noRoot="false"/>
</Host>
</Engine>
</Service>
</Server>
context.xml:
<?xml version='1.0' encoding='utf-8'?>
<Context>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<Resource name="jdbc/vehrentDB" auth="Container"
type="javax.sql.DataSource"
maxActive="50"
maxIdle="10"
minIdle="30"
username="xxxxxxxxxxxx" password="xxxxxxxxxxxx"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://xxxxxxxxxxxx:1433;
databaseName=xxxxxxxxxxxx;user=xxxxxxxxxxxx;password=xxxxxxxxxxxx;"
numTestsPerEvictionRun="15"
timeBetweenEvictionRunsMillis="900000"
minEvictableIdleTimeMillis="900000"
testWhileIdle="true"
testOnBorrow="false"
removeAbandoned="true"
removeAbandonedTimeout="300"
logAbandoned="true"
/>
<Resource name="jdbc/empowerDB" auth="Container"
type="javax.sql.DataSource"
maxActive="8"
maxIdle="4"
minIdle="2"
username="xxxxxxxxxxxx" password="xxxxxxxxxxxx"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="jdbc:sqlserver://xxxxxxxxxxxx:1433;databaseName=xxxxxxxxxxxx;user=xxxxxxxxxxxx;password=xxxxxxxxxxxx;"
numTestsPerEvictionRun="15"
timeBetweenEvictionRunsMillis="900000"
minEvictableIdleTimeMillis="900000"
testWhileIdle="true"
testOnBorrow="false"
removeAbandoned="true"
removeAbandonedTimeout="300"
logAbandoned="true"
/>
</Context>
virtual-host.conf:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin xxxxxxxxxx
DocumentRoot "D:/Apache2.2/htdocs/gateway"
ServerName xxxxxxxxxx
ServerAlias xxxxxxxxxx
ErrorLog "logs/gateway-error.log"
CustomLog "logs/gateway-access.log" common
JkMount /* worker1
JkUnMount /*js/*.js worker1
JkUnMount /*.jpeg worker1
JkUnMount /*.png worker1
JkUnMount /*.gif worker1
JkUnMount /*.html worker1
JkUnMount /*.jpg worker1
JkUnMount /*.css worker1
JkUnMount /*.swf worker1
</VirtualHost>
I've been struggling with this for a week.Can anyone please tell me
what can i do to get rid of that problem & make my application accessible
for 20 & more concurrent users.
--
View this message in context: http://old.nabble.com/Writing-to-client-aborted-or-client-network-problems...-tp27743013p27743013.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Writing to client aborted or client network problems...
Posted by Pid <pi...@pidster.com>.
On 01/03/2010 12:59, Munirathinavel wrote:
>
> Hi to all...
>
> I'm using apache2.2 + tomcat6.0.18 + mod_jk1.2.28 for our portal.While doing
> load test with 20& more users, I try to access the application through
> browser but pages are getting loaded and in mod_jk.log file I'm getting the
> following message,
>
> [Fri Feb 26 12:50:25 2010][304:728] [info] jk_ajp_common.c (1788): Writing
> to client aborted or client network problems
> [Fri Feb 26 12:50:25 2010][304:728] [info] jk_ajp_common.c (2447): (worker1)
> sending request to tomcat failed (unrecoverable), because of client write
> error (attempt=1)
> [Fri Feb 26 12:50:25 2010]worker1 216.205.107.50 30.218750
> [Fri Feb 26 12:50:25 2010][304:728] [info] mod_jk.c (2608): Aborting
> connection for worker=worker1
>
> I'm using the following files in Tomcat& Apache.
>
> workers.properties:
>
> workers.tomcat_home=D:/tomcat6.0.18
> workers.java_home=C:/Program Files/Java/jdk1.6.0_16
>
> ps=/
>
>
> worker.list=worker1
> worker.worker1.type=ajp13
> worker.worker1.host=xxxxxxxxxxxx
> worker.worker1.port=8009
> worker.worker1.connection_pool_timeout=600
> worker.worker1.connect_timeout=60000
> worker.worker1.prepost_timeout=60000
> worker.worker1.socket_keepalive=1
> worker.worker1.socket_timeout=60
> worker.worker1.lbfactor=1
> worker.loadbalancer.type=lb
> worker.loadbalancer.balance_workers= worker1
> worker.inprocess.type=jni
>
> server.xml:
> <Server port="8006" shutdown="SHUTDOWN">
> <Listener className="org.apache.catalina.core.AprLifecycleListener"
> SSLEngine="on" />
> <Listener className="org.apache.catalina.core.JasperListener" />
> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
> />
> <Listener
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
> <GlobalNamingResources>
> <Resource name="UserDatabase" auth="Container"
> type="org.apache.catalina.UserDatabase"
> description="User database that can be updated and saved"
> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> pathname="conf/tomcat-users.xml" />
> </GlobalNamingResources>
> <Service name="Catalina">
> <Connector debug="0" enableLookups="false" port="8009" protocol="AJP/1.3"
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> acceptCount="100"
> minProcessors="5" maxProcessors="100" connectionTimeout="60000"
> disableUploadTimeout="true" redirectPort="8443"/>
> <Engine name="Catalina" defaultHost="xxxxxxxxxxxx" debug="0">
> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> resourceName="UserDatabase"/>
> <Host name="xxxxxxxxxxxx" appBase="gateway"
> unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
>
> <Listener className = "org.apache.jk.config.ApacheConfig"
> workersConfig="conf/workers.properties"
> modJk="D:/Apache2.2/modules/mod_jk.so" jkLog="logs/mod_jk.log"
> jkDebug="info" noRoot="false"/>
> </Host>
> </Engine>
> </Service>
>
> </Server>
>
> context.xml:
> <?xml version='1.0' encoding='utf-8'?>
>
>
> <Context>
>
> <WatchedResource>WEB-INF/web.xml</WatchedResource>
> <Resource name="jdbc/vehrentDB" auth="Container"
> type="javax.sql.DataSource"
> maxActive="50"
> maxIdle="10"
> minIdle="30"
> username="xxxxxxxxxxxx" password="xxxxxxxxxxxx"
> driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
> url="jdbc:sqlserver://xxxxxxxxxxxx:1433;
> databaseName=xxxxxxxxxxxx;user=xxxxxxxxxxxx;password=xxxxxxxxxxxx;"
> numTestsPerEvictionRun="15"
> timeBetweenEvictionRunsMillis="900000"
> minEvictableIdleTimeMillis="900000"
> testWhileIdle="true"
> testOnBorrow="false"
> removeAbandoned="true"
> removeAbandonedTimeout="300"
> logAbandoned="true"
> />
> <Resource name="jdbc/empowerDB" auth="Container"
> type="javax.sql.DataSource"
> maxActive="8"
> maxIdle="4"
> minIdle="2"
> username="xxxxxxxxxxxx" password="xxxxxxxxxxxx"
> driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
>
> url="jdbc:sqlserver://xxxxxxxxxxxx:1433;databaseName=xxxxxxxxxxxx;user=xxxxxxxxxxxx;password=xxxxxxxxxxxx;"
> numTestsPerEvictionRun="15"
> timeBetweenEvictionRunsMillis="900000"
> minEvictableIdleTimeMillis="900000"
> testWhileIdle="true"
> testOnBorrow="false"
> removeAbandoned="true"
> removeAbandonedTimeout="300"
> logAbandoned="true"
> />
> </Context>
>
> virtual-host.conf:
> NameVirtualHost *:80
> <VirtualHost *:80>
> ServerAdmin xxxxxxxxxx
> DocumentRoot "D:/Apache2.2/htdocs/gateway"
> ServerName xxxxxxxxxx
> ServerAlias xxxxxxxxxx
> ErrorLog "logs/gateway-error.log"
> CustomLog "logs/gateway-access.log" common
>
> JkMount /* worker1
> JkUnMount /*js/*.js worker1
> JkUnMount /*.jpeg worker1
> JkUnMount /*.png worker1
> JkUnMount /*.gif worker1
> JkUnMount /*.html worker1
> JkUnMount /*.jpg worker1
> JkUnMount /*.css worker1
> JkUnMount /*.swf worker1
> </VirtualHost>
>
> I've been struggling with this for a week.Can anyone please tell me
> what can i do to get rid of that problem& make my application accessible
> for 20& more concurrent users.
Are you receiving any of the emails that have been sent to you over the
last few weeks?
p
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org