tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shrikant patel <shri.se...@gmail.com>
Subject Separte http connector for 2 apps.
Date Wed, 08 Dec 2010 20:03:51 GMT
Hi Experts,

I have 2 applications call it app1 and app2 deployed on the same tomcat
server (6.0.18). The external client use both of these apps. Right now both
the apps use same http connector on port 8080.
So threads and corresponding thread setting (like maxThreads, acceptCounts
etc) associated with connectors are shared between the 2 apps. That means if
the traffic increase for app1 and request for it start to queue up, the app
2 request may suffer delay or time out.

Going through the documentation, it seems one way of resolving this would
be, to declare 2 separate services in service.xml for the 2 apps. Each
service will have its on http connector with appropriate maxThread and
acceptCount settings. That way high volume on app1 does not starve or
timeout the app2 requests. Also we are thinking of restrict maxthread and
accept count on app1 to low value, so that it does not hog processing
resources etc.

Some other reason we cannot put these apps on different tomcat instance.
This would ideal solutions but not possible in this case.

Please suggest if there is other or better way of doing it.

Thanks in advance
Shri.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message