meaning of tomcat's memory options

2008-03-11 Thread Jordi Prats

Hi all,
I've found no documentation about the exact meaning of the following 
memory parameters:


Xms
Xmx
XX:PermSize
XX:MaxPermSize

Anyone knows exactly what they exactly mean?

Many thanks,
Jordi

--
..
__
   / /  Jordi Prats
 C E / S / C A  Dept. de Sistemes
 /_/Centre de Supercomputació de Catalunya

 Gran Capità, 2-4 (Edifici Nexus) · 08034 Barcelona
 T. 93 205 6464 · F.  93 205 6979 · [EMAIL PROTECTED]
.. 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



memory usage

2008-01-11 Thread Jordi Prats

Hi,
I'm getting out of memory errors on tomcat:

Mar 27, 2007 5:21:46 AM 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor 
processChildren

SEVERE: Exception invoking periodic operation:
java.lang.OutOfMemoryError: Java heap space
Mar 27, 2007 5:21:52 AM unknown unknown
SEVERE: Error finishing response
java.lang.OutOfMemoryError: Java heap space
Mar 27, 2007 5:21:51 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet bitstream threw exception
java.lang.OutOfMemoryError: Java heap space

There's any way to identify witch application and witch class is getting 
to many memory? I think that some application creates a immense array by 
never delete any data.


How can I get some statistics about tomcat's memory usage?

Many thanks!

Jordi

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_jk/tomcat problem

2008-01-09 Thread Jordi Prats

Hi
I'm trying to balance connections using mod_jk, but I'm getting this error:

[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info] 
ajp_service::jk_ajp_common.c (2186): (loadbalancer) sending request to 
tomcat failed (recoverable), because of error during request sending 
(attempt=1)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info] 
jk_open_socket::jk_connect.c (566): connect to 127.0.0.1:8009 failed 
(errno=111)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info] 
ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket to 
(127.0.0.1:8009) (errno=111)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [error] 
ajp_send_request::jk_ajp_common.c (1359): (loadbalancer) connecting to 
backend failed. Tomcat is probably not started or is listening on the 
wrong port (errno=111)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info] 
ajp_service::jk_ajp_common.c (2186): (loadbalancer) sending request to 
tomcat failed (recoverable), because of error during request sending 
(attempt=2)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [error] 
ajp_service::jk_ajp_common.c (2204): (loadbalancer) Connecting to tomcat 
failed. Tomcat is probably not started or is listening on the wrong port
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info] 
jk_handler::mod_jk.c (2364): Service error=-3 for worker=loadbalancer


It's trying to connect to 127.0.0.1:8009, but on my workers.properties 
file I define that tomcat is listening on 8080:


worker.list=loadbalancer,worker1,worker2

worker.loadbalancer.balance_workers=worker1,worker2

worker.worker1.type=ajp13
worker.worker1.host=192.168.11.6
worker.worker1.port=8080
worker.worker1.lbfactor=1

worker.worker2.type=ajp13
worker.worker2.host=192.168.11.2
worker.worker2.port=8080
worker.worker2.lbfactor=1

Anyone could tell me why is trying to connect to 8009 insted of 8080?

Thank you!

Jordi

--
..
__
   / /  Jordi Prats
 C E / S / C A  Dept. de Sistemes
 /_/Centre de Supercomputació de Catalunya

 Gran Capità, 2-4 (Edifici Nexus) · 08034 Barcelona
 T. 93 205 6464 · F.  93 205 6979 · [EMAIL PROTECTED]
.. 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk/tomcat problem

2008-01-09 Thread Jordi Prats

Thank you both!

Now it's working fine, thanks

Jordi

Shiby Maria John wrote:

I think you have given the wrong port for the worker configuration.
You should give the AJP port and not the HTTP port for the worker.


  
 Jordi Prats  
 [EMAIL PROTECTED]  
 sTo 
 users@tomcat.apache.org  
 01/09/2008cc 
 03:58 PM 
  Subject 
 mod_jk/tomcat problem
 Please respond   
   to 
  Tomcat Users   
  List   
 [EMAIL PROTECTED]  
   pache.org 
  
  





Hi
I'm trying to balance connections using mod_jk, but I'm getting this
error:

[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info]
ajp_service::jk_ajp_common.c (2186): (loadbalancer) sending request to

tomcat failed (recoverable), because of error during request sending
(attempt=1)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info]
jk_open_socket::jk_connect.c (566): connect to 127.0.0.1:8009 failed
(errno=111)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket
to
(127.0.0.1:8009) (errno=111)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [error]
ajp_send_request::jk_ajp_common.c (1359): (loadbalancer) connecting to

backend failed. Tomcat is probably not started or is listening on the
wrong port (errno=111)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info]
ajp_service::jk_ajp_common.c (2186): (loadbalancer) sending request to

tomcat failed (recoverable), because of error during request sending
(attempt=2)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [error]
ajp_service::jk_ajp_common.c (2204): (loadbalancer) Connecting to
tomcat
failed. Tomcat is probably not started or is listening on the wrong
port
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info]
jk_handler::mod_jk.c (2364): Service error=-3 for worker=loadbalancer

It's trying to connect to 127.0.0.1:8009, but on my workers.properties

file I define that tomcat is listening on 8080:

worker.list=loadbalancer,worker1,worker2

worker.loadbalancer.balance_workers=worker1,worker2

worker.worker1.type=ajp13
worker.worker1.host=192.168.11.6
worker.worker1.port=8080
worker.worker1.lbfactor=1

worker.worker2.type=ajp13
worker.worker2.host=192.168.11.2
worker.worker2.port=8080
worker.worker2.lbfactor=1

Anyone could tell me why is trying to connect to 8009 insted of 8080?

Thank you!

Jordi

--
..
 __
/ /  Jordi Prats
  C E / S / C A  Dept. de Sistemes
  /_/Centre de Supercomputació de Catalunya

  Gran Capità, 2-4 (Edifici Nexus) · 08034 Barcelona
  T. 93 205 6464 · F.  93 205 6979 · [EMAIL PROTECTED]
..



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  



--
..
__
   / /  Jordi Prats
 C E / S / C A  Dept. de Sistemes
 /_/Centre de Supercomputació de Catalunya

 Gran Capità, 2-4 (Edifici Nexus) · 08034 Barcelona
 T. 93 205 6464 · F.  93 205 6979 · [EMAIL PROTECTED]
.. 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]