Re: Virtual host with Squid, Apache and Tomcat

2003-11-26 Thread Venkata Srinivasa Rao, Yerra


Hi,
As far as
I know, we can do it in both workers2.properties and httpd.conf (virtual
hosts). It seems some problem in apache side virtual host configuration
for the same uri for example
VirtualHost 
 ServerName
www.abc.com
 DocumentRoot 
 Location
/eng/*
JkUriSet
worker channel.socket:192.168.1.10:8008
JkUriSet
vhost 
www.abc.com
JkUriSet
context /eng
 /Location
 Location
/fre/*
JkUriSet
worker channel.socket:192.168.1.10:8009
JkUriSet
vhost 
www.abc.com
JkUriSet
context /fre
 /Location
/VirtualHost
VirtualHost 
 ServerName
www.xyz.com
 DocumentRoot 
 Location
/eng/*
JkUriSet
worker channel.socket:192.168.1.11:8008
JkUriSet
vhost 
www.xyz.com
JkUriSet
context /eng
 /Location
 Location
/fre/*
JkUriSet
worker channel.socket:192.168.1.11:8009
JkUriSet
vhost 
www.xyz.com
JkUriSet
context /fre
 /Location
/VirtualHost

[uri:www.xyz.com/eng/*]
info=eng web app
context=/
group=lb-gipalbum
debug=0
www.abc.com
virtual host pattern will be overwritten by www.xyz.com virtual host pattern. You can find it in jkstatus page. Always you will be redirected to 192.168.1.11 tomcats. Please let me know if you can find the solution. 
To fix the above problem you can use workers2.properties as follows
[channel.socket:192.168.1.10:8008]
info=Ajp13 forwarding over socket to 10-8008 tomcat
tomcatId=abc_eng
lb_factor=1
debug=0
[channel.socket:192.168.1.10:8009]
info=Ajp13 forwarding over socket to 10-8009 tomcat
tomcatId=abc_fre
lb_factor=1
debug=0
[channel.socket:192.168.1.11:8008]
info=Ajp13 forwarding over socket to 11-8008 tomcat
tomcatId=xyz_eng
lb_factor=1
debug=0
[channel.socket:192.168.1.11:8009]
info=Ajp13 forwarding over socket to 11-8009 tomcat
tomcatId=xyz_fre
lb_factor=1
debug=0
[uri:www.abc.com/eng/*]
info=ABC Eng
context=/eng
group=abc_eng
debug=0
[uri:www.abc.com/fre/*]
info=ABC Fre
context=/eng
group=abc_fre
debug=0
[uri:www.xyz.com/eng/*]
info=XYZ Eng
context=/eng
group=xyz_eng
debug=0
[uri:www.xyz.com/fre/*]
info=XYZ Fre
context=/eng
group=xyz_fre
debug=0
At 04:25 PM 11/21/2003 +0100, you wrote:
Hi
I'm new to the list, so... hi! :-)
Here's our scenario: We use Squid as a reverse proxy cache in front of
Apache which in return calls Tomcat for dynamic content:
Browser -- Squid -- Apache -- Tomcat
Until now we used the old mod_webapp, but now we're changing to mod_jk2
(with Apache 1.3 and Tomcat 4.1). We need to have several hosts on the same
Apache and thus use virtual hosts. The problem is that the web applications
sometimes need to have the same name.
An example:
www.abc.com has two web applications, one for each language (ISO codes):
www.abc.com/eng/ and www.abc.com/fre/  (French)
www.def.com also has two web applications which are different, but have the
same name: www.def.com/eng/ and www.def.com/fre/
Now, with the old mod_webapp, all we had to do is define a unique name for
each of those (we chose a three-letter acronmy of the site plus the web
application name), in this case abc_eng, abc_fre, def_eng and
def_fre and point to them in the virtual host definition of Apache, like
this:
VirtualHost 
 ServerName www.abc.com
 DocumentRoot 
 WebAppDeploy abc_eng /eng
 WebAppDeploy abc_fre /fre
/VirtualHost
VirtualHost 
 ServerName www.def.com
 DocumentRoot 
 WebAppDeploy def_eng /eng
 WebAppDeploy def_fre /fre
/VirtualHost
As far as I can see, with mod_jk2, this is not possible in Apache alone. Am
I right?
I read on a couple of pages how Tomcat can be configured for virtual
hosting, but I think these examples were all assuming that you use Tomcat as
the web server. From what I understand I would need to define something like
this in server.xml:
Host name=www.abc.com debug=0 appBase=webapps unpackWARs=true
 Context path=/eng docBase=abc_eng debug=0 reloadable=true/
 Context path=/fre docBase=abc_fre debug=0 reloadable=true/
/Host
Host name=www.def.com debug=0 appBase=webapps unpackWARs=true
 Context path=/eng docBase=def_eng debug=0 reloadable=true/
 Context path=/fre docBase=def_fre debug=0 reloadable=true/
/Host
Another problem which may arise is that the domain names point to Squid,
thus Apache only responds to the IP address. Frankly, I don't know exactly
how Apache does the DNS lookup, and I know there's a parameter in the
server.xml that enables DNS lookups. Surely, this is necessary for this
scenario to work?
Anyway, in a nutshell: Has anybody ever done this? Will this work?
Any help is greatly appreciated!
Thanks  best regards,
Eric 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Best Regards,
Venkata Srinivasa Rao, Yerra
Gips Limited.
mail: [EMAIL PROTECTED]
mobile: (852) 6191-5545
home: (852) 2807-2521
office: (852) 2104-5551
fax: (852) 2104-5550
web: http://www.gipalbum.com
web: http://www.gipex.com





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.542 / Virus Database: 336 - Release

Re: Virtual host with Squid, Apache and Tomcat

2003-11-26 Thread Venkata Srinivasa Rao, Yerra


Hi,
As far as
I know, we can do it in both workers2.properties and httpd.conf (virtual
hosts). It seems some problem in apache side virtual host configuration
for the same uri for example
VirtualHost 
 ServerName
www.abc.com
 DocumentRoot 
 Location
/eng/*
JkUriSet
worker channel.socket:192.168.1.10:8008
JkUriSet
vhost 
www.abc.com
JkUriSet
context /eng
 /Location
 Location
/fre/*
JkUriSet
worker channel.socket:192.168.1.10:8009
JkUriSet
vhost 
www.abc.com
JkUriSet
context /fre
 /Location
/VirtualHost
VirtualHost 
 ServerName
www.xyz.com
 DocumentRoot 
 Location
/eng/*
JkUriSet
worker channel.socket:192.168.1.11:8008
JkUriSet
vhost 
www.xyz.com
JkUriSet
context /eng
 /Location
 Location
/fre/*
JkUriSet
worker channel.socket:192.168.1.11:8009
JkUriSet
vhost 
www.xyz.com
JkUriSet
context /fre
 /Location
/VirtualHost
www.abc.com
virtual host pattern will be overwritten by www.xyz.com virtual host pattern. You can find it in jkstatus page. Always you will be redirected to 192.168.1.11 tomcats, in other words you will always reach www.xyz.com site even you come from www.abc.com . Please let me know if you can find the solution. 
To fix the above problem you can use workers2.properties as follows
[channel.socket:192.168.1.10:8008]
info=Ajp13 forwarding over socket to 10-8008 tomcat
tomcatId=abc_eng
lb_factor=1
debug=0
[channel.socket:192.168.1.10:8009]
info=Ajp13 forwarding over socket to 10-8009 tomcat
tomcatId=abc_fre
lb_factor=1
debug=0
[channel.socket:192.168.1.11:8008]
info=Ajp13 forwarding over socket to 11-8008 tomcat
tomcatId=xyz_eng
lb_factor=1
debug=0
[channel.socket:192.168.1.11:8009]
info=Ajp13 forwarding over socket to 11-8009 tomcat
tomcatId=xyz_fre
lb_factor=1
debug=0
[uri:www.abc.com/eng/*]
info=ABC Eng
context=/eng
group=abc_eng
debug=0
[uri:www.abc.com/fre/*]
info=ABC Fre
context=/eng
group=abc_fre
debug=0
[uri:www.xyz.com/eng/*]
info=XYZ Eng
context=/eng
group=xyz_eng
debug=0
[uri:www.xyz.com/fre/*]
info=XYZ Fre
context=/eng
group=xyz_fre
debug=0
At 04:25 PM 11/21/2003 +0100, you wrote:
Hi
I'm new to the list, so... hi! :-)
Here's our scenario: We use Squid as a reverse proxy cache in front of
Apache which in return calls Tomcat for dynamic content:
Browser -- Squid -- Apache -- Tomcat
Until now we used the old mod_webapp, but now we're changing to mod_jk2
(with Apache 1.3 and Tomcat 4.1). We need to have several hosts on the same
Apache and thus use virtual hosts. The problem is that the web applications
sometimes need to have the same name.
An example:
www.abc.com has two web applications, one for each language (ISO codes):
www.abc.com/eng/ and www.abc.com/fre/ (French)
www.def.com also has two web applications which are different, but have the
same name: www.def.com/eng/ and www.def.com/fre/
Now, with the old mod_webapp, all we had to do is define a unique name for
each of those (we chose a three-letter acronmy of the site plus the web
application name), in this case abc_eng, abc_fre, def_eng and
def_fre and point to them in the virtual host definition of Apache, like
this:
VirtualHost 
 ServerName www.abc.com
 DocumentRoot 
 WebAppDeploy abc_eng /eng
 WebAppDeploy abc_fre /fre
/VirtualHost
VirtualHost 
 ServerName www.def.com
 DocumentRoot 
 WebAppDeploy def_eng /eng
 WebAppDeploy def_fre /fre
/VirtualHost
As far as I can see, with mod_jk2, this is not possible in Apache alone. Am
I right?
I read on a couple of pages how Tomcat can be configured for virtual
hosting, but I think these examples were all assuming that you use Tomcat as
the web server. From what I understand I would need to define something like
this in server.xml:
Host name=www.abc.com debug=0 appBase=webapps unpackWARs=true
 Context path=/eng docBase=abc_eng debug=0 reloadable=true/
 Context path=/fre docBase=abc_fre debug=0 reloadable=true/
/Host
Host name=www.def.com debug=0 appBase=webapps unpackWARs=true
 Context path=/eng docBase=def_eng debug=0 reloadable=true/
 Context path=/fre docBase=def_fre debug=0 reloadable=true/
/Host
Another problem which may arise is that the domain names point to Squid,
thus Apache only responds to the IP address. Frankly, I don't know exactly
how Apache does the DNS lookup, and I know there's a parameter in the
server.xml that enables DNS lookups. Surely, this is necessary for this
scenario to work?
Anyway, in a nutshell: Has anybody ever done this? Will this work?
Any help is greatly appreciated!
Thanks  best regards,
Eric 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Best Regards,
Venkata Srinivasa Rao, Yerra
Gips Limited.
mail: [EMAIL PROTECTED]
mobile: (852) 6191-5545
home: (852) 2807-2521
office: (852) 2104-5551
fax: (852) 2104-5550
web: http://www.gipalbum.com
web: http://www.gipex.com





---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.542 / Virus Database: 336

Re: Run tomcat without showing window

2003-08-27 Thread Venkata Srinivasa Rao, Yerra
As I know you can use javaw to start tomcat
What you need to do is, change the tomcat startup script from java to javaw.
After you run the script you can safely close the window but tomcat keeps 
running.
Srinivas.

At 09:54 AM 8/27/2003 +0200, you wrote:
I'd like to run tomcat without showing the window server.
In win NT  2K I could run this as a service, but in WIN98? How can I do
This?
Thanks
 _Mario_



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Le migliori offerte per desktop e notebook le trovi solo su Dell, clicca 
per scoprire sconti e promozioni
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1730d=27-8

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Best Regards,
Venkata Srinivasa Rao, Yerra,
Jadason Technology Limited. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5.0.4 + Apache 2.0.46 with mod_jk 2.0.43

2003-08-27 Thread Venkata Srinivasa Rao, Yerra
uri:/intranet* may helps you

At 04:15 PM 8/27/2003 +0800, you wrote:
I am currenty try to install Tomcat 5.0.4 + Apache 2.0.46 using mod_jk 2.0.43
this is my worker2.properties :
[shm:]
file=C:\Program Files\Apache Group\Apache2\logs\jk2.shm
size=100
[channel.socket:localhost:8009]
[uri:/intranet/*]
[uri:/jmx-console/*]
so when i run using this url
  http://localhost/intranet/, it works
but when i run this wayhttp://localhost/intranetit doesnt work... 
any body have any clues?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Best Regards,
Venkata Srinivasa Rao, Yerra,
Jadason Technology Limited. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: OutofMemory Error

2003-08-25 Thread Venkata Srinivasa Rao, Yerra
set JAVA_OPTS environment variable to your preferred max and min heap sizes
Example : JAVA_OPTS=-server -Xincgc -Xms128m -Xmx256m
Looking for Help : java -X
At 05:55 PM 8/25/2003 +0800, you wrote:
Hi ,

   I am running a simple servlet/jsp on Tomcat 4.1.18 (on Solaris
machine with 4GB mem). The application suppose to extract some data from
database but I encountered this error: java.lang.OutOfMemoryError .
I don't have any traffic on the tomcat server. Is this a java or tomcat
error ?. How can I solve this problem ?.
Appreciate your advice.
Thanks
Regards,
Thana
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Best Regards,
Venkata Srinivasa Rao, Yerra,
Jadason Technology Limited. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Fwd: Problem, can't get response form tomcat after some requests

2003-08-21 Thread Venkata Srinivasa Rao, Yerra
Dear All,

Tomcat works fine for

1. Java HotSpot(TM) Server VM (build 1.4.2-b28, mixed 
mode) on Linux 9 without NPTL (LD_ASSUME_KERNEL=2.4.1)
2. Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed 
mode) on Linux 9 with NPTL

Tomcat process simply ceases to respond after some requests from 
JMeter

1. Java HotSpot(TM) Server VM (build 1.4.2-b28, mixed 
mode) on Linux 9 with NPTL

Any idea?

J2SE 1.4.2
Tomcat4.1.27
Linux 9
Apache2.0.47
mod_jk2.0.2
Best Regards,
Srinivas.
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
List-Unsubscribe: mailto:[EMAIL PROTECTED]
List-Subscribe: mailto:[EMAIL PROTECTED]
List-Help: mailto:[EMAIL PROTECTED]
List-Post: mailto:[EMAIL PROTECTED]
List-Id: Tomcat Users List tomcat-user.jakarta.apache.org
Reply-To: Tomcat Users List [EMAIL PROTECTED]
Delivered-To: mailing list [EMAIL PROTECTED]
X-Sender: [EMAIL PROTECTED]
X-Mailer: QUALCOMM Windows Eudora Version 5.2.1
Date: Thu, 21 Aug 2003 10:52:13 +0800
To: [EMAIL PROTECTED]
From: Venkata Srinivasa Rao, Yerra [EMAIL PROTECTED]
Subject: Problem, can't get response form tomcat after some requests
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
Hi All,

I have installed tomcat4.1.27, apache2.0.47, modjk2.02, and j2se1.4.2 on 
Linux 9. I have compiled Apache, mod_jk2 from the source.

After several requests from JMeter, tomcat simply holds up, no more 
requests can be processed by tomcat.
I can't stop tomcat unless I kill the tomcat process. I have restarted 
apache, it doesn't help.
I found some CLOSE_WAIT after I restart apache. I have killed tomcat, all 
CLOSE_WAITs are gone.
Same thing is repeating again and again after I start tomcat.

I can't figure out the problem. I have posted my configuration here.
Can any one find where I am doing mistake?
I am straggling since few days.
Help would be appreciated.
Thanks in advance.

Regards,
Srinivas

workers.properties

# only at beginnin. In production uncomment it out
[logger.apache2]
level=DEBUG
[uriMap:]
info=Maps the requests. Options: debug
debug=0
[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0
#[shm]
f#ile=${serverRoot}/logs/jk2.shm
#size=1048576
#debug=0
#disabled=0
[lb:lb-gipalbum]
info=GIPALBUM load balancer.
debug=0
[lb:lb-ext]
info=EXT load balancer.
debug=0
# define the GIPALBUM worker
[channel.socket:192.168.1.211:8091]
info=Ajp13 forwarding over socket to GIPALBUM
debug=0
tomcatId=gipablum-tc
lb_factor=1
group=lb-gipalbum
disabled=0
# define the EXT worker
[channel.socket:192.168.1.211:8092]
info=Ajp13 forwarding over socket to EXT
debug=0
tomcatId=ext-tc
lb_factor=1
group=lb-ext
disabled=0
# define the status worker
[status:]
info=Status worker, displays runtime informations
# Uri mapping for status worker
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
# Uri mapping
[uri:/admin/*.jsp]
info=admin project
context=/admin
group=lb-gipalbum
debug=0
# Uri mapping
[uri:/admin/*.do]
info=admin project
context=/admin
group=lb-gipalbum
debug=0
# Uri mapping
[uri:/manager/*]
info=manager project
context=/manager
group=lb-ext
debug=0
# Uri mapping
[uri:/*.jsp]
info=default jsp project
context=/
group=lb-ext
debug=0
[uri:/*.do]
info=default struts project
context=/
group=lb-ext
debug=0
[uri:/moto/*.osp]
info=moto osp project
context=/moto
group=lb-ext
debug=0
[uri:/moto/*.ost]
info=moto ost project
context=/moto
group=lb-ext
debug=0
--
end workers.properties
server.xml
-
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --
!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.
 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --
Server port=8052 shutdown=SHUTDOWN debug=0

  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by
   including your own mbean-descriptor file(s), and setting the
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources
!-- Test entry for demonstration purposes --
Environment name

Tomcat holding problem - CLOSE_WAIT

2003-08-20 Thread Venkata Srinivasa Rao, Yerra
Hi,

	I am trying tomcat-4.1.27, apache2.0.47, mod_jk2.0.2, j2se1.4.2 on Linux9. 
I have downloaded tomcat binary. I have compiled apache with ssl, mod_jk2. 
I can access dynamic pages which are in tomcat. It works fine. I wanted to 
have stress test, so I choose JMeter to test one server page. After few 
samples (62) all threads holed by tomcat. It happened to me few times. I 
have checked netstat, I found some CLOSE_WAIT.

	I can't find the problem, its looks configurations is ok, but I can make 
it work.

	Any help is appreciated.

Thanks in advance.
Srinivas.

workers.properties

# only at beginnin. In production uncomment it out
[logger.apache2]
level=DEBUG
[uriMap:]
info=Maps the requests. Options: debug
debug=0
[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0
[shm]
file=${serverRoot}/logs/jk2.shm
size=1048576
debug=0
disabled=0
[lb:lb-gipalbum]
info=GIPALBUM load balancer.
debug=0
[lb:lb-ext]
info=EXT load balancer.
debug=0
# define the GIPALBUM worker
[channel.socket:192.168.1.211:8091]
info=Ajp13 forwarding over socket to GIPALBUM
debug=0
tomcatId=gipablum-tc
lb_factor=1
group=lb-gipalbum
disabled=0
# define the EXT worker
[channel.socket:192.168.1.211:8092]
info=Ajp13 forwarding over socket to EXT
debug=0
tomcatId=ext-tc
lb_factor=1
group=lb-ext
disabled=0
# define the status worker
[status:]
info=Status worker, displays runtime informations
# Uri mapping for status worker
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
# Uri mapping
[uri:/admin/*.jsp]
info=admin project
context=/admin
group=lb-gipalbum
debug=0
# Uri mapping
[uri:/admin/*.do]
info=admin project
context=/admin
group=lb-gipalbum
debug=0
# Uri mapping
[uri:/manager/*]
info=manager project
context=/manager
group=lb-ext
debug=0
# Uri mapping
[uri:/*.jsp]
info=default jsp project
context=/
group=lb-ext
debug=0
[uri:/*.do]
info=default struts project
context=/
group=lb-ext
debug=0
[uri:/moto/*.osp]
info=moto osp project
context=/moto
group=lb-ext
debug=0
[uri:/moto/*.ost]
info=moto ost project
context=/moto
group=lb-ext
debug=0
--
end workers.properties
server.xml
-
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --
!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.
 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --
Server port=8052 shutdown=SHUTDOWN debug=0

  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by
   including your own mbean-descriptor file(s), and setting the
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources
!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.
   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --
  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone
!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.
 By default, a non-SSL 

Problem, can't get response form tomcat after some requests

2003-08-20 Thread Venkata Srinivasa Rao, Yerra
Hi All,

I have installed tomcat4.1.27, apache2.0.47, modjk2.02, and j2se1.4.2 on 
Linux 9. I have compiled Apache, mod_jk2 from the source.

After several requests from JMeter, tomcat simply holds up, no more 
requests can be processed by tomcat.
I can't stop tomcat unless I kill the tomcat process. I have restarted 
apache, it doesn't help.
I found some CLOSE_WAIT after I restart apache. I have killed tomcat, all 
CLOSE_WAITs are gone.
Same thing is repeating again and again after I start tomcat.

I can't figure out the problem. I have posted my configuration here.
Can any one find where I am doing mistake?
I am straggling since few days.
Help would be appreciated.

Thanks in advance.
Regards,
Srinivas

workers.properties

# only at beginnin. In production uncomment it out
[logger.apache2]
level=DEBUG
[uriMap:]
info=Maps the requests. Options: debug
debug=0
[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0
#[shm]
f#ile=${serverRoot}/logs/jk2.shm
#size=1048576
#debug=0
#disabled=0
[lb:lb-gipalbum]
info=GIPALBUM load balancer.
debug=0
[lb:lb-ext]
info=EXT load balancer.
debug=0
# define the GIPALBUM worker
[channel.socket:192.168.1.211:8091]
info=Ajp13 forwarding over socket to GIPALBUM
debug=0
tomcatId=gipablum-tc
lb_factor=1
group=lb-gipalbum
disabled=0
# define the EXT worker
[channel.socket:192.168.1.211:8092]
info=Ajp13 forwarding over socket to EXT
debug=0
tomcatId=ext-tc
lb_factor=1
group=lb-ext
disabled=0
# define the status worker
[status:]
info=Status worker, displays runtime informations
# Uri mapping for status worker
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
# Uri mapping
[uri:/admin/*.jsp]
info=admin project
context=/admin
group=lb-gipalbum
debug=0
# Uri mapping
[uri:/admin/*.do]
info=admin project
context=/admin
group=lb-gipalbum
debug=0
# Uri mapping
[uri:/manager/*]
info=manager project
context=/manager
group=lb-ext
debug=0
# Uri mapping
[uri:/*.jsp]
info=default jsp project
context=/
group=lb-ext
debug=0
[uri:/*.do]
info=default struts project
context=/
group=lb-ext
debug=0
[uri:/moto/*.osp]
info=moto osp project
context=/moto
group=lb-ext
debug=0
[uri:/moto/*.ost]
info=moto ost project
context=/moto
group=lb-ext
debug=0
--
end workers.properties
server.xml
-
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --
!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.
 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --
Server port=8052 shutdown=SHUTDOWN debug=0

  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by
   including your own mbean-descriptor file(s), and setting the
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources
!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.
   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --
  !-- Define the Tomcat Stand-Alone Service --
  Service name=Tomcat-Standalone
!-- A Connector represents an endpoint by which requests are received
 and responses are 

Scoreboard slot (jkstatus)

2003-08-15 Thread Venkata Srinivasa Rao, Yerra
Any one know about scoreboard and slots?

When the tomcatapache is up for long time, number of slots are getting 
increased, when I restart the apache, jk start creating again.
What does a slot mean? why the number is growing?

In fact I am testing my new development server with JMeter (3x25 threads = 
75 threads) since yesterday

Software configuration :
Red Hat Linux release 9 (Kernel 2.4.20-8smp)
J2SDK1.4.2
Tomcat-4.1.24
mod_jk2 (source 2.0.2)
Apache 2.0.47
Openssl-0.9.7a-2
Here is part of my jkstatus:

Status information for child -2

ajp13 runtime info

ajp13 information, using getAttribute()
id name lb_factor lb_value route errorState graceful epCount errorTime
1 192.168.1.211:8021 1 18 tomcat1 N N 1 0
Scoreboard info (ver=0 slots=73)

jkstatus?scoreboard.htmreset
epStat.2 Cnt=1 size=128
Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart 
+jk +end
1 8 0 /moto/en/album3/albumlist.osp Thu Aug 14 17:04:14 2003 5975349 
2725698 746918 3522312557 415 2725698
epStat.5 Cnt=1 size=128
Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart 
+jk +end
1 23 0 /moto/en/album3/albumlist.osp Thu Aug 14 17:55:26 2003 15181550 
2115484 660067 2299690280 414 1345589
epStat.11 Cnt=1 size=128
Worker Req Err LastReq ConnectionTime TotalTime MaxTime AvgTime ReqStart 
+jk +end
1 100 0 /moto/en/album3/login.osp Fri Aug 15 09:18:49 2003 10798878 517004 
107988 1867616621 358 61706




Re: Tuning KeepAlive Connections?

2003-08-14 Thread Venkata Srinivasa Rao, Yerra
To disable connection timeouts, set connectionTimeout value to -1
At 02:09 PM 8/7/2003 -0400, you wrote:
RedHat Linux 7.3
IBM JDK 1.4.1
Tomcat 4.1.24
Is it possible to disable KeepAlive connections with the Coyote HTTP/1.1
connector?  If it's not possible to turn them off, is it possible to lower
the request limit and timeout period for them?
Have a nice day ...

Sincerely,

Mike Cherichetti
Renegade Internet
www.renegadeinternet.com
Phone (724) 658-6346
Fax (724) 658-6346


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]