1

I have a small web application running on a tomcat server. We've started to have users reporting an error saying:

'Connection Failure Status: 0 Status Text: '

A little bit of research suggests this is a tomcat issue?

Has anyone experienced this before and is there a resolution?

Thanks!

  • Would that be consistent with it working for 18 months and then this happening? What has changed is the number of users. I've changed the maxIdleTime and increased it up pretty substantially as well... – Martyn Allan Oct 11 '14 at 20:21

1 Answers1

0

Since you've mentioned that your web application is small, it's possible that you've left the maxActive attribute by default, 100. maxActive stands for the maximum number of active connections that can be allocated from this pool at the same time. Source.

Insanovation
  • 337
  • 6
  • 21
  • Hi... Thanks loads for that! Is maxActive the same as maxThreads? (Which I have now set to 400) - I cannot see a reference to maxActive in the server.xml file? – Martyn Allan Oct 12 '14 at 19:04
  • maxThreads - "Max number of request processing threads to be created by the Http Connector, which therefore determines the max number of simultaneous requests that can be handled." http://stackoverflow.com/questions/8153727/tomcat-configuring-maxthreads-and-acceptcount-in-http-connector – Insanovation Oct 12 '14 at 19:12
  • basically, maxThreads will determine the maximum value of maxActive. Those values are interdependent. Make sure maxThreads is greater of equal to maxActive. – Insanovation Oct 12 '14 at 19:26
  • This is super helpful... where can i actually see the number of maxActive? I tried the context.xml file but it is not in that one for me... – Martyn Allan Oct 12 '14 at 19:32
  • I'm doing a research on maxActives location right now... I'll write about it as soon as I'll get the solution – Insanovation Oct 12 '14 at 19:37
  • So far so good, those are the best instructions I've got, right from the source. http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html – Insanovation Oct 12 '14 at 19:41
  • You'll find details about maxActive in the "2. Context configuration" section. Though, all the points are essential for a good configuration. – Insanovation Oct 12 '14 at 19:43
  • I can't move this 'chat' as i've only just joined. we are running on sqlserver, not my sql - which may make a difference? Is there a way to send you a private message? – Martyn Allan Oct 12 '14 at 19:44
  • Honestly, I made suggestions only from current researches. I'm sure you'll get your answers if you ride on Google a bit. Glad I could give some ideas. – Insanovation Oct 12 '14 at 19:53
  • 1
    Thanks loads!! Really appreciate it! – Martyn Allan Oct 12 '14 at 19:56