Re: Tomcat + Apache + AJP = high cpu usage:/

2010-01-15 Thread pionier



Peter Crowther wrote:
 
 2010/1/14 pionier pionierp...@interia.pl:
 Linux vs4160 2.6.22-vs2.2.0.7-gentoo #4 SMP Mon Jul 27 01:53:39 Local
 time
 zone must be set--see zic  x86_64 AMD Phenom(tm) II X4 810 Processor
 AuthenticAMD GNU/Linux
 
 Thanks.  OK, you've got a few options here.  This is all because a
 process can only bind to a port  1024 on Unix if it's running as root
 at the instant it binds.
 
 - Fix your current configuration.  You're presently using
 mod_proxy_ajp to pass data between httpd and Tomcat , which is less
 mature than mod_jk.  mod_jk takes a bit of setting up, but that would
 let you keep httpd if you want to.
 
 - Run Tomcat as root and set up an HTTP Connector on port 80.  Not
 good for security!
 
 - Run Tomcat as non-root, set up an HTTP Connector on port 8080, and
 configure the Linux kernel firewalling to redirect port 80 to port
 8080.  Probably easier than setting up httpd, but it has a few
 irritating features like having to set proxyPort on the connector.
 
 - Start Tomcat using jsvc (see the section on Unix daemon at
 http://tomcat.apache.org/tomcat-6.0-doc/setup.html for details) and
 set up an HTTP Connector on port 80.  This allows you to start Tomcat
 in a way that it can bind to port 80, but you then run it as an
 unprivileged user (using the --user option to jsvc).  This is secure
 and doesn't require stuff like proxyPort.
 
 - Peter
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

thx for ur time and help...
I finally found the solution...
I cant run my app on 80 porto i have to use apache to forward request... 
All knowledge i get from this discution will be very helpfull in future...
but in my case the problem was more trivial... I had to buy exta 100MB of
ram...
it looks like grails application just love memmory :) 480MB and everything
works fine.
-- 
View this message in context: 
http://old.nabble.com/Tomcat-%2B-Apache-%2B-AJP-%3D-high-cpu-usage%3A--tp27154357p27174860.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat + Apache + AJP = high cpu usage:/

2010-01-14 Thread pionier



Peter Crowther wrote:
 
 Apart from one guess, not without a lot more information or Andre's
 Internet Telepathy add-on ;-).
 
 The guess: You've defined an AJP connector in Tomcat's configuration,
 but you're not using that from httpd.  You're using mod_proxy to
 forward requests from httpd to Tomcat, but there's no HTTP connector
 to receive them.
 
 If this doesn't help, we could use a few more bits of information:
 OS?
 JVM version?
 Apache httpd version?
 Tomcat version?
 Which process is using all the CPU?
 Do you use httpd for anything else?
 Does high CPU use start immediately, or after a request to httpd or
 Tomcat?
 
 - Peter
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

I dont know what else should i show you ? im useing only this 2 files to
configure apache and tomcat.

JVM is in version :
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)

Tomcat : 
6.0.20
Im useing apache only for transfering request from 80 to 8080
High CPU usage starts exacly the same time i start apache...
i discovered that when i chance 2 things CPU usage is ok
1. 
I change ProxyRequests to On every thing is ok but after few minutes request
gets timeout,
2. 
when i change proxy pass from
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/ 
to 
ProxyPass /something ajp://localhost:8009/
ProxyPassReverse /something ajp://localhost:8009/ 

it is also ok... but when i map it directly to / cpu usage is up to 100%;/
-- 
View this message in context: 
http://old.nabble.com/Tomcat-%2B-Apache-%2B-AJP-%3D-high-cpu-usage%3A--tp27154357p27159091.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat + Apache + AJP = high cpu usage:/

2010-01-14 Thread pionier



pionier wrote:
 
 
 
 Peter Crowther wrote:
 
 Apart from one guess, not without a lot more information or Andre's
 Internet Telepathy add-on ;-).
 
 The guess: You've defined an AJP connector in Tomcat's configuration,
 but you're not using that from httpd.  You're using mod_proxy to
 forward requests from httpd to Tomcat, but there's no HTTP connector
 to receive them.
 
 If this doesn't help, we could use a few more bits of information:
 OS?
 JVM version?
 Apache httpd version?
 Tomcat version?
 Which process is using all the CPU?
 Do you use httpd for anything else?
 Does high CPU use start immediately, or after a request to httpd or
 Tomcat?
 
 - Peter
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 I dont know what else should i show you ? im useing only this 2 files to
 configure apache and tomcat.
 
 JVM is in version :
 java version 1.6.0_13
 Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
 Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)
 
 Tomcat : 
 6.0.20
 Im useing apache only for transfering request from 80 to 8080
 High CPU usage starts exacly the same time i start apache...
 i discovered that when i chance 2 things CPU usage is ok
 1. 
 I change ProxyRequests to On every thing is ok but after few minutes
 request gets timeout,
 2. 
 when i change proxy pass from
 ProxyPass / ajp://localhost:8009/
 ProxyPassReverse / ajp://localhost:8009/ 
 to 
 ProxyPass /something ajp://localhost:8009/
 ProxyPassReverse /something ajp://localhost:8009/ 
 
 it is also ok... but when i map it directly to / cpu usage is up to 100%;/
 

help pls,  im desperate...;/ 
-- 
View this message in context: 
http://old.nabble.com/Tomcat-%2B-Apache-%2B-AJP-%3D-high-cpu-usage%3A--tp27154357p27162826.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat + Apache + AJP = high cpu usage:/

2010-01-14 Thread pionier



Peter Crowther wrote:
 
 2010/1/14 pionier pionierp...@interia.pl
 
 Tomcat :
 6.0.20
 Im useing apache only for transfering request from 80 to 8080
 High CPU usage starts exacly the same time i start apache...

 Then uninstall httpd, set up an HTTP connector on port 80 on Tomcat, and
 run just Tomcat.
 
 - Peter
 
 

that is imposible... my virtual unix account do not allow that :/ even when
i try to run Connector on 80 port from root account i still have
bindException Permision denynull*80 
-- 
View this message in context: 
http://old.nabble.com/Tomcat-%2B-Apache-%2B-AJP-%3D-high-cpu-usage%3A--tp27154357p27163319.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat + Apache + AJP = high cpu usage:/

2010-01-14 Thread pionier



n828cl wrote:
 
 From: pionier [mailto:pionierp...@interia.pl]
 Subject: Re: Tomcat + Apache + AJP = high cpu usage:/
 
 that is imposible... my virtual unix account do not allow that
 
 Whatever userid you're starting httpd with that uses port 80 will also let
 you run Tomcat on port 80 - but you do have to stop httpd first.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 


yes i did. 
-- 
View this message in context: 
http://old.nabble.com/Tomcat-%2B-Apache-%2B-AJP-%3D-high-cpu-usage%3A--tp27154357p27163671.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat + Apache + AJP = high cpu usage:/

2010-01-14 Thread pionier



pionier wrote:
 
 
 
 n828cl wrote:
 
 From: pionier [mailto:pionierp...@interia.pl]
 Subject: Re: Tomcat + Apache + AJP = high cpu usage:/
 
 that is imposible... my virtual unix account do not allow that
 
 Whatever userid you're starting httpd with that uses port 80 will also
 let you run Tomcat on port 80 - but you do have to stop httpd first.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 
 
 
 yes i did. 
 
Linux vs4160 2.6.22-vs2.2.0.7-gentoo #4 SMP Mon Jul 27 01:53:39 Local time
zone must be set--see zic  x86_64 AMD Phenom(tm) II X4 810 Processor
AuthenticAMD GNU/Linux

-- 
View this message in context: 
http://old.nabble.com/Tomcat-%2B-Apache-%2B-AJP-%3D-high-cpu-usage%3A--tp27154357p27168110.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



tomcat + apache + proxy = very slow response

2010-01-13 Thread pionier

Hi all,

I have a problem with configuration tomcat with apache... i have to use
proxy to map every request from port 80 to 8080...

my tomcat connection configuration:
?xml version='1.0' encoding='utf-8'?

Server port=8005 shutdown=2464132ddb92d21

  !--APR library loader. Documentation at /docs/apr.html --
  Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on /
  !--Initialize Jasper prior to webapps are loaded. Documentation at
/docs/jasper-howto.html --
  Listener className=org.apache.catalina.core.JasperListener /
  !-- JMX Support for the Tomcat server. Documentation at
/docs/non-existent.html --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /


  GlobalNamingResources

Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  /GlobalNamingResources


  Service name=Catalina

Connector port=8080 protocol=HTTP/1.1
   connectionTimeout=2
   redirectPort=8443 proxyPort=80
proxyName=bestmodernsolutions.com/


Engine name=Catalina defaultHost=example.com

  Host name=example.com  appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
Aliaswww.example.com/Alias
  /Host
/Engine
  /Service
/Server

and my vhost.conf in apache
IfDefine DEFAULT_VHOST
# see bug #178966 why this is in here

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the VirtualHost
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80.85.234.160:80

# Use name-based virtual hosting.
NameVirtualHost *:80

# When virtual hosts are enabled, the main host defined in the default
# httpd.conf configuration will go away. We redefine it here so that it is
# still available.
#
# If you disable this vhost by removing -D DEFAULT_VHOST from
# /etc/conf.d/apache2, the first defined virtual host elsewhere will be
# the default.
VirtualHost *:80
ServerName example.com
Include /etc/apache2/vhosts.d/default_vhost.include

ProxyRequests On
ProxyPass / http://www.example.com:8080/
#   ProxyPassReverse / http://www.example.com:8080/

IfModule mpm_peruser_module
ServerEnvironment apache apache
/IfModule
/VirtualHost
/IfDefine

# vim: ts=4 filetype=apache


can someone point me what i did wrong ? 
-- 
View this message in context: 
http://old.nabble.com/tomcat-%2B-apache-%2B-proxy-%3D-very-slow-response-tp27144316p27144316.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat + apache + proxy = very slow response

2010-01-13 Thread pionier


I found that i cant use ProxyRequests On
it have to be sat to Offf...
but how to map port 80 to 8080 without proxy ? 
how can i solve this problem ?
-- 
View this message in context: 
http://old.nabble.com/tomcat-%2B-apache-%2B-proxy-%3D-very-slow-response-tp27144316p27147115.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat + apache + proxy = very slow response

2010-01-13 Thread pionier



Christopher Schultz-2 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Pionier,
 
 On 1/13/2010 7:45 AM, pionier wrote:
 I have a problem with configuration tomcat with apache... i have to use
 proxy to map every request from port 80 to 8080...
 
 Why are you using Apache httpd at all? Your VirtualHost *:80 sends 100%
 of requests to Tomcat:
 
 NameVirtualHost *:80
 VirtualHost *:80
 ServerName example.com
 Include /etc/apache2/vhosts.d/default_vhost.include
 
 ProxyRequests On
 ProxyPass / http://www.example.com:8080/
 #   ProxyPassReverse / http://www.example.com:8080/
 
 IfModule mpm_peruser_module
 ServerEnvironment apache apache
 /IfModule
 /VirtualHost
 /IfDefine
 
 If you aren't using Apache httpd for anything, why not take it out of
 your setup?
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAktN+10ACgkQ9CaO5/Lv0PBW5gCfWeBHfuIrDOQVmEfqXWyd67Pd
 bQYAnj45lj124go3moBeMPgVLXzUP81a
 =cN76
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

i dont exacly uderstand u...
I bought virtual server with tomcat and apatch... 
when i try to run tomcat from root i still have error like in BindException
*80 it looks like my root user is not exacly as privillaged as root
should... so i need to find another way:/
Can u tell me do you exacly have in mind ?
-- 
View this message in context: 
http://old.nabble.com/tomcat-%2B-apache-%2B-proxy-%3D-very-slow-response-tp27144316p27148786.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat + apache + proxy = very slow response

2010-01-13 Thread pionier



Christopher Schultz-2 wrote:
 
 That's strange that your root user cannot bind to port 80. Perhaps
 Apache httpd is already running on port 80? You will have to shut down
 httpd before running Tomcat on port 80.
 
 You shouldn't run Tomcat as root for a number of reasons. You can find
 information about how to run Tomcat on port 80 /without/ running as root
 here:
 
 http://wiki.apache.org/tomcat/FAQ/Security#Q7
 or here:
 http://wiki.apache.org/tomcat/HowTo#How_to_run_Tomcat_without_root_privileges.3F
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAktOKfwACgkQ9CaO5/Lv0PCUrQCfdFsiMcX5xPTq806NvcxpJ8HQ
 IYkAmwcYP8uVqfQEHOHb4m9lMkYFTM3l
 =S58+
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

I know that... that is whay im asking for help.
Im know also that port 80 is free i checked it useing telnet.
Apache is down and still the same error BindException *80 as i was not
logged as a root;/
So i decided to walk it around and find solution by proxy but... there is
also some problems...
I have never fought that the biggest problem in development will be correct
application deployment;/
-- 
View this message in context: 
http://old.nabble.com/tomcat-%2B-apache-%2B-proxy-%3D-very-slow-response-tp27144316p27151744.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat + apache + proxy = very slow response

2010-01-13 Thread pionier



Christopher Schultz-2 wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Pionier,
 
 On 1/13/2010 3:49 PM, pionier wrote:
 I know that... that is whay im asking for help.
 
 Okay, I'm trying to give it to you.
 
 Im know also that port 80 is free i checked it useing telnet.
 
 ...and what did you get?
 
 Apache is down and still the same error BindException *80 as i was not
 logged as a root;/
 
 Can you give a specific error message? I've never seen BindException
 *80 before.
 
 So i decided to walk it around and find solution by proxy but... there is
 also some problems...
 
 So, you wanted to get rid of httpd, but are having problems running
 without root privileges, so you introduced another proxy (or httpd
 again) into the mix? What do you /want/ your configuration to be? If you
 /want/ to use httpd, we can help you with that. If you don't want httpd,
 we can help with that, too.
 
 I have never fought that the biggest problem in development will be
 correct
 application deployment;/
 
 I've always been amazed that so many people have problems with this
 stuff. The documentation is relatively clear.
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
 
 iEYEARECAAYFAktOM6YACgkQ9CaO5/Lv0PAA3gCgpijanPJK0aZH+u4b0KVnOWK/
 lL4An0+U1DDb/SZEPcuLgCXOS/qL+6We
 =a6yR
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

BindException :
2010-01-13 21:16:07 org.apache.coyote.http11.Http11Protocol start
SEVERE: Error starting endpoint
java.net.BindException: Permission deniednull:80
at org.apache.tomcat.util.net.JIoEndpoint.init(Unknown Source)
at org.apache.tomcat.util.net.JIoEndpoint.start(Unknown Source)
at org.apache.coyote.http11.Http11Protocol.start(Unknown Source)
at org.apache.catalina.connector.Connector.start(Unknown Source)
at org.apache.catalina.core.StandardService.start(Unknown Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Unknown Source)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
2010-01-13 21:16:07 org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler start
failed: java.net.BindException: Permission deniednull:80
at org.apache.catalina.connector.Connector.start(Unknown Source)
at org.apache.catalina.core.StandardService.start(Unknown Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Unknown Source)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
2010-01-13 21:16:07 org.apache.catalina.startup.Catalina start

telnet message: 
telnet: connect to address 80.85.234.160: Connection refused
telnet: Unable to connect to remote host

my goal is to get rid of httpd i would like to use just tomcat as a
webserver.
I do have a memmory limitation so less application in background less
memmory i need

-- 
View this message in context: 
http://old.nabble.com/tomcat-%2B-apache-%2B-proxy-%3D-very-slow-response-tp27144316p27152141.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat + Apache + AJP = high cpu usage:/

2010-01-13 Thread pionier

When i configured Tomcat to work with Apache 
I discovered that immediately after  i run Apache, Tomcat i using 100% of
cpu usage ;/
can someone tell me whay is this happening ?

tomcat configuration : 
?xml version='1.0' encoding='utf-8'?
Server port=8005 shutdown=2464132ddb92d21

  !--APR library loader. Documentation at /docs/apr.html --
  Listener className=org.apache.catalina.core.AprLifecycleListener
SSLEngine=on /
  !--Initialize Jasper prior to webapps are loaded. Documentation at
/docs/jasper-howto.html --
  Listener className=org.apache.catalina.core.JasperListener /
  !-- JMX Support for the Tomcat server. Documentation at
/docs/non-existent.html --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  GlobalNamingResources
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /
  /GlobalNamingResources
  Service name=Catalina


!-- Define an AJP 1.3 Connector on port 8009 --
Connector port=8009 enableLookups=false protocol=AJP/1.3
redirectPort=8443 /

Engine name=Catalina defaultHost=localhost
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/
  Host name=localhost  appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
  /Host
/Engine
  /Service
/Server

apache vhost configuration:
IfDefine DEFAULT_VHOST
Listen xx.xx.xx.xx:80

NameVirtualHost *:80

VirtualHost *:80
ServerName example.com
Include /etc/apache2/vhosts.d/default_vhost.include

ProxyRequests Off
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/


IfModule mpm_peruser_module
ServerEnvironment apache apache
/IfModule
/VirtualHost
/IfDefine


-- 
View this message in context: 
http://old.nabble.com/Tomcat-%2B-Apache-%2B-AJP-%3D-high-cpu-usage%3A--tp27154357p27154357.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



add port number to rul after login or logout

2010-01-07 Thread pionier

Hi, 

I dont know where to ask or exacly what is source of this problem but...
I deployed my grails + acegi application on tomcat6 i bought a domain and
point it to ip of my serwer
in apatch i placed connfiguration 
VirtualHost *:80
ServerName example.com
Include /etc/apache2/vhosts.d/default_vhost.include

ProxyRequests On
ProxyPass / http://www.example.com:8080/

IfModule mpm_peruser_module
ServerEnvironment apache apache
/IfModule
/VirtualHost

and when i enter my domain address everything works fine, but when i try to
login or logout application add to my url addres tomcat port number ie:

im entering address www.example.com
i try to login in and im redirected to my domain name addres but with
default tomcat port number
www.example.com:8080 
-- 
View this message in context: 
http://old.nabble.com/add-port-number-to-rul-after-login-or-logout-tp27059426p27059426.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: add port number to rul after login or logout

2010-01-07 Thread pionier



markt-2 wrote:
 
 
 Try adding:
 ProxyPassReverse / http://www.example.com:8080/
 
 Mark
 
 

Thx it helped!!
:* :]

-- 
View this message in context: 
http://old.nabble.com/add-port-number-to-rul-after-login-or-logout-tp27059426p27059649.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org