Apache Portable Runtime (APR) based Native library for Tomcat
Hello, I have a number of Tomcat6 instances, using mod_jk, each of which runs a separate website (linux debian lenny). My catalina.out files contain: INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64/server: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/lib/amd64: /usr/lib/jvm/java-6-sun-1.6.0.22/jre/../lib/amd64: /usr/java/packages/lib/amd64:/usr/lib64: /lib64: /lib:/usr/lib Please do you believe that in the above case installing APR would lead to a performance improvement. Regards Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat6 with mod_jk
Thank you for your help Christopher. I have got it to work and I will publish my configuration when I have sorted out a couple of other things which I will raise separately Regards Peter -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 1/8/2011 8:28 PM, Peter Sparkes wrote: LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so ... file /etc/apache2/conf.d/jk.conf is JkWorkersFile /etc/apache2/workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLevel debug Are you sure this file is being included in your configuration? Try putting an invalid directive in there and running 'apache2 -t' to see what happens. If you get an error, it's loading your configuration correctly. file /etc/apache2/sites-enabled/appledorera.org is ServerAdmin ad...@appledorera.org ServerName appledorera.org ServerAlias www.appledorera.org JkMount /* appledorera file /etc/apache2/workers.properties is workers.tomcat_home = /usr/local/tomcat workers.java_home= / usr/lib/jvm/java-6-sun ps = / These three settings (above) are no longer used. Do yourself a favor and remove them. worker.list=appledorera Set properties for appledorera The above line may be confusing to the configuration file parser. You should use "#" at the beginning of the line to indicate comments. The above might be causing your problem. worker.appledorera.type=ajp13 worker.appledorera.host=localhost worker.appledorera.port=8109 Looks good. file /usr/local/tomcat/instances/appledorera/conf/server.xml I have amended to and to Ok. When the tomcat instance in /usr/local/tomcat/instances/appledorera is stopped http://appledorera.org/ gives Service Temporarily Unavailable and tail /var/log/apache2/mod_jk.log is [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [debug] jk_open_socket::jk_connect.c (448): socket TCP_NODELAY set to On [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [debug] jk_open_socket::jk_connect.c (548): trying to connect socket 14 to 127.0.0.1:8109 [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [info] jk_open_socket::jk_connect.c (566): connect to 127.0.0.1:8109 failed (errno=111) [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [info] ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket to (127.0.0.1:8109) (errno=111) [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [error] ajp_send_request::jk_ajp_common.c (1359): (appledorera) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [info] ajp_service::jk_ajp_common.c (2194): (appledorera) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2) [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [error] ajp_service::jk_ajp_common.c (2212): (appledorera) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [debug] ajp_reset_endpoint::jk_ajp_common.c (691): (appledorera) resetting endpoint with sd = 4294967295 (socket shutdown) [Sun Jan 09 01:14:35.461 2011] [8183:3834091344] [debug] ajp_done::jk_ajp_common.c (2530): recycling connection pool slot=0 for worker appledorera [Sun Jan 09 01:14:35.461 2011] [8183:3834091344] [info] jk_handler::mod_jk.c (2364): Service error=-3 for worker=appledorera This looks like correct behavior to me. When the tomcat instance in /usr/local/tomcat/instances/appledorera is started http://appledorera.org/ gives an empty page and tail /var/log/apache2/mod_jk.log is [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 04 01 90 00 0B 42 61 64 20 52 65 71 75 65 73 74 - .Bad.Request [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 001000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_unmarshal_response::jk_ajp_common.c (608): status = 400 [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_unmarshal_response::jk_ajp_common.c (615): Number of headers is = 0 [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): received from ajp13 pos=0 len=2 max=8192 [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 05 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_process_callback::jk_ajp_common.c (1669): AJP13 protocol: Reuse is OK [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_reset_endpoint::jk_ajp_common.c (691): (appledorera) resetting endpoint with sd = 14 [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_done::jk_ajp_common.c (2530): recycling c
Re: Tomcat6 with mod_jk
In addition when I start apache2 I get the following: Starting web server: apache2[Sun Jan 09 07:52:42 2011] [warn] VirtualHost appledorera.org:80 overlaps with VirtualHost appledorera.org:80, the first has precedence, perhaps you need a NameVirtualHost directive Hello, What I am trying unsuccessfully to do is - on debian (lenny) with apache2 have multiple instances of tomcat6 each servicing a different domain using a java war/servlet To date I have only loaded one domain "appledorera.org" file /etc/apache2/mods-enabled/jk.load is LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so file /etc/apache2/sites-enabled/appledorera.org is ServerAdmin ad...@appledorera.org ServerName appledorera.org ServerAlias www.appledorera.org JkMount /* appledorera file /etc/apache2/workers.properties is workers.tomcat_home = /usr/local/tomcat workers.java_home= / usr/lib/jvm/java-6-sun ps = / worker.list=appledorera Set properties for appledorera worker.appledorera.type=ajp13 worker.appledorera.host=localhost worker.appledorera.port=8109 file /etc/apache2/conf.d/jk.conf is JkWorkersFile /etc/apache2/workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLevel debug file /usr/local/tomcat/instances/appledorera/conf/server.xml I have amended to and to When the tomcat instance in /usr/local/tomcat/instances/appledorera is stopped http://appledorera.org/ gives Service Temporarily Unavailable and tail /var/log/apache2/mod_jk.log is [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [debug] jk_open_socket::jk_connect.c (448): socket TCP_NODELAY set to On [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [debug] jk_open_socket::jk_connect.c (548): trying to connect socket 14 to 127.0.0.1:8109 [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [info] jk_open_socket::jk_connect.c (566): connect to 127.0.0.1:8109 failed (errno=111) [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [info] ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket to (127.0.0.1:8109) (errno=111) [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [error] ajp_send_request::jk_ajp_common.c (1359): (appledorera) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [info] ajp_service::jk_ajp_common.c (2194): (appledorera) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2) [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [error] ajp_service::jk_ajp_common.c (2212): (appledorera) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [debug] ajp_reset_endpoint::jk_ajp_common.c (691): (appledorera) resetting endpoint with sd = 4294967295 (socket shutdown) [Sun Jan 09 01:14:35.461 2011] [8183:3834091344] [debug] ajp_done::jk_ajp_common.c (2530): recycling connection pool slot=0 for worker appledorera [Sun Jan 09 01:14:35.461 2011] [8183:3834091344] [info] jk_handler::mod_jk.c (2364): Service error=-3 for worker=appledorera When the tomcat instance in /usr/local/tomcat/instances/appledorera is started http://appledorera.org/ gives an empty page and tail /var/log/apache2/mod_jk.log is [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 04 01 90 00 0B 42 61 64 20 52 65 71 75 65 73 74 - .Bad.Request [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 001000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_unmarshal_response::jk_ajp_common.c (608): status = 400 [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_unmarshal_response::jk_ajp_common.c (615): Number of headers is = 0 [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): received from ajp13 pos=0 len=2 max=8192 [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 05 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_process_callback::jk_ajp_common.c (1669): AJP13 protocol: Reuse is OK [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_reset_endpoint::jk_ajp_common.c (691): (appledorera) resetting endpoint with sd = 14 [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_done::jk_ajp_common.c (2530): recycling connection pool slot=0 for worker appledorera [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] jk_handler::mod_jk.c (2348): Service finished with status=400 for worker=appledorera Help please Peter On 1/7/11 10:10 PM, Peter Sparkes wrote: Hi, I am having difficulties integrating to
Re: Tomcat6 with mod_jk
Hello, What I am trying unsuccessfully to do is - on debian (lenny) with apache2 have multiple instances of tomcat6 each servicing a different domain using a java war/servlet To date I have only loaded one domain "appledorera.org" file /etc/apache2/mods-enabled/jk.load is LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so file /etc/apache2/sites-enabled/appledorera.org is ServerAdmin ad...@appledorera.org ServerName appledorera.org ServerAlias www.appledorera.org JkMount /* appledorera file /etc/apache2/workers.properties is workers.tomcat_home = /usr/local/tomcat workers.java_home= / usr/lib/jvm/java-6-sun ps = / worker.list=appledorera Set properties for appledorera worker.appledorera.type=ajp13 worker.appledorera.host=localhost worker.appledorera.port=8109 file /etc/apache2/conf.d/jk.conf is JkWorkersFile /etc/apache2/workers.properties JkLogFile /var/log/apache2/mod_jk.log JkLogLevel debug file /usr/local/tomcat/instances/appledorera/conf/server.xml I have amended to and to When the tomcat instance in /usr/local/tomcat/instances/appledorera is stopped http://appledorera.org/ gives Service Temporarily Unavailable and tail /var/log/apache2/mod_jk.log is [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [debug] jk_open_socket::jk_connect.c (448): socket TCP_NODELAY set to On [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [debug] jk_open_socket::jk_connect.c (548): trying to connect socket 14 to 127.0.0.1:8109 [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [info] jk_open_socket::jk_connect.c (566): connect to 127.0.0.1:8109 failed (errno=111) [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [info] ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket to (127.0.0.1:8109) (errno=111) [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [error] ajp_send_request::jk_ajp_common.c (1359): (appledorera) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [info] ajp_service::jk_ajp_common.c (2194): (appledorera) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2) [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [error] ajp_service::jk_ajp_common.c (2212): (appledorera) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port [Sun Jan 09 01:14:35.460 2011] [8183:3834091344] [debug] ajp_reset_endpoint::jk_ajp_common.c (691): (appledorera) resetting endpoint with sd = 4294967295 (socket shutdown) [Sun Jan 09 01:14:35.461 2011] [8183:3834091344] [debug] ajp_done::jk_ajp_common.c (2530): recycling connection pool slot=0 for worker appledorera [Sun Jan 09 01:14:35.461 2011] [8183:3834091344] [info] jk_handler::mod_jk.c (2364): Service error=-3 for worker=appledorera When the tomcat instance in /usr/local/tomcat/instances/appledorera is started http://appledorera.org/ gives an empty page and tail /var/log/apache2/mod_jk.log is [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 04 01 90 00 0B 42 61 64 20 52 65 71 75 65 73 74 - .Bad.Request [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 001000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_unmarshal_response::jk_ajp_common.c (608): status = 400 [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_unmarshal_response::jk_ajp_common.c (615): Number of headers is = 0 [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): received from ajp13 pos=0 len=2 max=8192 [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_connection_tcp_get_message::jk_ajp_common.c (1117): 05 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_process_callback::jk_ajp_common.c (1669): AJP13 protocol: Reuse is OK [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_reset_endpoint::jk_ajp_common.c (691): (appledorera) resetting endpoint with sd = 14 [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] ajp_done::jk_ajp_common.c (2530): recycling connection pool slot=0 for worker appledorera [Sun Jan 09 01:11:31.376 2011] [8190:3834091344] [debug] jk_handler::mod_jk.c (2348): Service finished with status=400 for worker=appledorera Help please Peter On 1/7/11 10:10 PM, Peter Sparkes wrote: Hi, I am having difficulties integrating tomcat6 with mod_jk. Please, does anyone have a user friendly guide that I can use? http://tomcat.apache.org/connectors-doc/ ? There's an excellent example workers.properties file in the tarball of the latest version. p
Tomcat6 with mod_jk
Hi, I am having difficulties integrating tomcat6 with mod_jk. Please, does anyone have a user friendly guide that I can use? Thanks Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7
Thanks Chuck Peter From: Peter Sparkes [mailto:pe...@didm.co.uk] Subject: Tomcat 7 Can anyone please point me to a tutorial on how to Install Tomcat 7 with virtual hosts on Debian Lenny http://tomcat.apache.org/tomcat-7.0-doc/setup.html http://tomcat.apache.org/tomcat-7.0-doc/virtual-hosting-howto.html Also look at the FAQ for various items that might hold interest for you. - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 7
Can anyone please point me to a tutorial on how to Install Tomcat 7 with virtual hosts on Debian Lenny Thanks Peter - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Setting Character Encoding in server.xml
Thanks Chuck, problem fixed Peter From: Peter Sparkes [mailto:pe...@didm.co.uk] Subject: Setting Character Encoding in server.xml I am using Linux/Tomcat 5.5. I am running several Tomcat instances each with its own server.xml and wish to use different character encoding in each instance. Please how do I set the character encoding in server.xml Take a look at this: http://wiki.apache.org/tomcat/FAQ/CharacterEncoding - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Setting Character Encoding in server.xml
Hi, I am using Linux/Tomcat 5.5. I am running several Tomcat instances each with its own server.xml and wish to use different character encoding in each instance. Please how do I set the character encoding in server.xml Thanks Peter ** - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Memory for Multiple instances
Thanks Ben Peter If on linux you can add the following to your init script. export JAVA_OPTS=[JVM ARGUMENTS_HERE] then the catalinia.sh will pass them to the jvm on startup. Regards Ben Short On Fri, Apr 4, 2008 at 1:59 PM, Peter Sparkes <[EMAIL PROTECTED]> wrote: Hi, I am running multiple instances of Tomcat5.5 on a Linux (Debian) machine. I want to set different heap sizes for each instance. Please is there a way of setting the available memory in the individual Tomcat instances startup scripts Thank you Peter Sparkes - 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] - 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 for Multiple instances
Hi, I am running multiple instances of Tomcat5.5 on a Linux (Debian) machine. I want to set different heap sizes for each instance. Please is there a way of setting the available memory in the individual Tomcat instances startup scripts Thank you Peter Sparkes - 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: How can applications be isolated in Tomcat?
If you have control over the machine you could effectively do this using XEN (xen.org) which gives you virtual machines. Peter I would suggest putting the non-production environments on a different Tomcat instance preferably on a different machine. -Sameer --- Pablo Lopez <[EMAIL PROTECTED]> wrote: Hi, I'm currently putting together a solution for an off-the-shelf document management application that requires Tomcat to run a form design component. I'd like to have a single Tomcat server supporting the production and five non-production environments but isolate these instances. I’m hoping this will give some isolation so non-prod doesn’t take prod off-line but that I can also test new versions of the form design component in non-prod before rolling it into prod. It appears this could be done through virtual hosting and appbase settings but this is way beyond my knowledge and I’m just architecting the solution. I know we'll have to get a Tomcat expert in at some point in the future but just wondered if I'm going down the right or wrong road here. Any help or advice would be greatly appreciated and apologies if I got all of the terminology wrong. Regards, Pablo No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.5/1358 - Release Date: 4/3/2008 6:36 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com - 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]
Restarting Tomcat
Hi, I am running several instances of Tomcat 5.5 under Apache on a Linux machine (Debian). On an application on one of the Tomcat instances I have a memory leak, which I have not been able to fix. To overcome the problem, in the short, I want to daily stop/start (restart) Tomcat using a cron job. However, my restart scrip does not work. Can someone, please, send me a working restart script. Thanks Peter Sparkes - 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: Tomcat Locking Up?
Thanks Mindaugas, Will follow your advice Peter Hi, I think you need to make sure this is Tomcat's fault first. The best way to do this is to set up JMX console and keep monitoring it so you can see how much memory is allocated/used, same for CPU, threads, sockets, etc. Maybe you're running out of resources? We run 5.5 Tomcat on websites having high load and the uptime is at least a few months. If nothing helps, profiling is your best friend...not sure if you can do this by yourself, but I'd go this direction. Anyway, I tend to doubt that such a trivial and critical bug as yours would not be noticed. m. On Wed, Feb 20, 2008 at 11:51 AM, Peter Sparkes <[EMAIL PROTECTED]> wrote: Hi, I am running Tomcat 5.5 I have a website running in a cocoon application under Tomcat5.5, every few days the pages will not load and eventually the browser times out. - 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]
Tomcat Locking Up?
OOPS sorry previous email sent before I finished writing it. Hi, I am running Tomcat 5.5 I have a website running in a cocoon application under Tomcat5.5, every few days the pages will not load and eventually the browser times out. If I then stop tomcat and then start it everything then works fine. I have other instances of Tomcat running other websites on the same server which are not having this problem. Am I right in assuming that all the Tomcat instances share the same memory and that if so it can't be a Tomcat memory problem? If its not a Tomcat memory problem what could it be? Thanks Peter - 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 Locking Up?
Hi, I am running Tomcat 5.5 I have a website running in a cocoon application under Tomcat5.5, every few days the pages will not load and eventually the browser times out. If I then stop tomcat and then start it everything then works fine. - 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: Memory usage with multiple instances of tomcat
Thank you Chuck and Chris for your help and advice. I will definitely be reading your refs Chris Regards Peter - 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: Memory usage with multiple instances of tomcat
Thanks Chuck, I am using a 64-bit versions of the OS and JVM and I was confusing virtual memory with RAM. I have 8 GB of RAM and a 80 GB disc. The commands -Xms3g -Xmx3g will set the min/max heap to 3 GB,please how do I set the RAM for each instance of Tomcat5.5 to 2 GB Regards Peter From: Peter Sparkes [mailto:[EMAIL PROTECTED] Subject: Memory usage with multiple instances of tomcat 1. Does each tomcat instance use a separate 2 GB of memory, ie the 3 instance use 6 GB between them ? 2. or do they potentially share they same memory? Don't confuse virtual memory with RAM. The heap allocations are virtual, so there is no physical relationship with the amount of RAM you have. (There are performance considerations, of course, in that if you significantly oversubscribe RAM, you may suffer from excessive paging.) One thing you've failed to mention is whether you're using 32- or 64-bit versions of the OS and JVM. If 32-bit, then process virtual space is typically limited to 2 GB, and the heap, code, and supporting libraries must fit within that - you won't be able to allocate all 2 GB to the heap. If you're running a 64-bit environment, the sky's the limit (almost), and you could make each heap 256 GB, even with only 8 GB of RAM (not recommended, due to aforementioned paging concerns). Since each Tomcat runs as a separate process, there is no active sharing of either heap or code across instances. However, if you're running a client version of a current HotSpot JVM, there is some sharing of loaded classes in the PermGen (other than static fields), primarily to reduce startup time. You can see the shared amount in the Memory tab of JConsole. There is not currently any sharing in the server version of the HotSpot JVM. - 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 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]
Re: Memory usage with multiple instances of tomcat
Thanks Adrian Regards Peter You'll need to allocate 2GB to each Tomcat instance. As long as you use the standard Tomcat startup scripts each Tomcat instance will run in a separate JVM (you'd have to be pretty deliberate about making it run any other way). Regards, Adrian Sutton http://www.symphonious.net On 04/08/2007, at 4:16 PM, Peter Sparkes wrote: Hi, I followed the "Tomcat with 8 GB memory" thread but did not find the answer to the following question: I am setting up a Linux server with 8 GB memory which will be running 3 instances of tomcat 5,5; when I allocate memory to java, say 2GB: 1. Does each tomcat instance use a separate 2 GB of memory, ie the 3 instance use 6 GB between them ? 2. or do they potentially share they same memory? In other words with the 6GB I want to share between the 3 separate Tomcat instances do I allocate the whole 6GB to Java or 2GB Thank you Peter Sparkes - 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] - 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 with multiple instances of tomcat
Hi, I followed the "Tomcat with 8 GB memory" thread but did not find the answer to the following question: I am setting up a Linux server with 8 GB memory which will be running 3 instances of tomcat 5,5; when I allocate memory to java, say 2GB: 1. Does each tomcat instance use a separate 2 GB of memory, ie the 3 instance use 6 GB between them ? 2. or do they potentially share they same memory? In other words with the 6GB I want to share between the 3 separate Tomcat instances do I allocate the whole 6GB to Java or 2GB Thank you Peter Sparkes - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]