logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: AJP Connection timeout results into jboss server crash
Author
rbutola



Joined: 09 Sep 2010
Posts: 1

PostPosted: Thu 09 Sep '10 11:41    Post subject: AJP Connection timeout results into jboss server crash Reply with quote

Hello All,

We are facing a problem after configuring AJP connection timeout property in apache and respective connectiontimeout value in jboss server.xml file

We have apache 2.2.15, jboss 4.0.2 and mod_jk 1.2.25 configured on 64 bit windows 2003 OS and JDK 1.6.0.18.

JBoss application server is running as service.

After setting the timeout values for AJP, application service returns to stop state anytime (intermittently).

We have set a monitor for AJP connection and there are around 3-4 connections before service stops.

Configuration is as follow:

For workers.properties:

worker.list=worker2

worker.worker2.type=ajp13
worker.worker2.host=m.test.com
worker.worker2.connection_pool_timeout=60
worker.worker2.port=7019

For server.xml (Only AJP connector part):

<Connector port="7019" address="${jboss.bind.address}"
maxThreads="300" emptySessionPath="true" enableLookups="false" redirectPort="8443"
protocol="AJP/1.3" connectionTimeout="300000"/>

After rolling back the AJP timeout configuration, the problem has disappeared. But the number of AJP connections keep on increasing. We want AJP connections to be released after 5 mins.

Has anybody else seen such a strange behaviour? Any advice on possible resolution would be much appreciated.


Best Regards,
Rupendrasingh
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Thu 23 Sep '10 23:33    Post subject: Reply with quote

What is in the error log from catalia / tomcat about this issue?
Back to top
rem2500



Joined: 03 Mar 2011
Posts: 2

PostPosted: Thu 03 Mar '11 20:19    Post subject: Reply with quote

I see what sounds like the same issue as well with a very similar setup.

We see the AJP queues fill up and eventually, because they don't release the connections, the app has to be restarted.

Did you ever find a fix for this?

Thanks
Ben
Back to top
bambam



Joined: 17 Jun 2011
Posts: 1

PostPosted: Fri 17 Jun '11 15:14    Post subject: Reply with quote

The problem is you have set a connectionTimeout of 300000 which is 5 minutes and have not set one on the apache within the workers.properties

this creates an mismatch and the front end will close the connection but the backend will keep it open.

it is very important to make sure your numbers are in sync. note that the server XML uses ms where workers.properties uses seconds.

for example you need to add something like

worker.worker2.connection_pool_timeout=300

to match your front & backend
Back to top
rem2500



Joined: 03 Mar 2011
Posts: 2

PostPosted: Fri 17 Jun '11 19:22    Post subject: Reply with quote

Hi bambam,

Thanks for replying to my question. We are still seeing this issue a few times a week.

Currently in my server.xml we have:

connectionTimeout="600000"

And in our workers file we have:

connection_pool_timeout=600

So it looks like we have them synced. Is that time frame to high perhaps?

Thanks!
Back to top


Reply to topic   Topic: AJP Connection timeout results into jboss server crash View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules