meaning of tomcat's memory options
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
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]
Re: mod_jk/tomcat problem
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] s>To 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]
mod_jk/tomcat problem
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]
tomcat cluster
Hi all, I'm getting this error on a tomcat cluster configuration: Dec 11, 2007 10:08:23 AM org.apache.catalina.cluster.tcp.FastAsyncSocketSender$FastQueueThread pushQueuedMessages WARNING: Unable to asynchronously send session with id=[F0C4C2B44AAB98DEA8AE8CF572463189-1197364103377] - message will be ignored. java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:516) at java.net.Socket.connect(Socket.java:466) at java.net.Socket.(Socket.java:366) at java.net.Socket.(Socket.java:208) at org.apache.catalina.cluster.tcp.DataSender.createSocket(DataSender.java:704) at org.apache.catalina.cluster.tcp.DataSender.openSocket(DataSender.java:679) at org.apache.catalina.cluster.tcp.DataSender.pushMessage(DataSender.java:803) at org.apache.catalina.cluster.tcp.FastAsyncSocketSender$FastQueueThread.pushQueuedMessages(FastAsyncSocketSender.java:476) at org.apache.catalina.cluster.tcp.FastAsyncSocketSender$FastQueueThread.run(FastAsyncSocketSender.java:442) Anyone knows what's causing this and how to solve it? I've checked firewalls and added this (unnecesary?) route: route add -net 228.0.11.0/24 dev eth1 This is my Cluster configuration on my server.xml file: className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" mcastAddr="228.0.11.1" tcpListenPort="4002" name="tomcatproduccio"/> Thak 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]