Sunday, 15 September 2013

tomcat 7 openmore than one process

tomcat 7 openmore than one process

I'm running tomcat7 on Centos
I have to enter the same instance from more than one URL: one is by load
balancer and the second is direct connection to specific server for
monitor: lb.mydomain.com and web1.mydomain.com
The problem is that I have objects that serve all connections as
singeltons (use as cache objects). The moment I enter the tomcat from two
doains I see two cache objects but only one tomcat proccess (using grep)
I also have problem since I use JNI to load so library that can be loaded
only once.
How is it? Is it possible to block the tomcat7 to only one proccess (or
instance)?

No comments:

Post a Comment