Cluster session failover question
Hi Tomcatters, Just a quick question regarding Apache Web Server load balancing down to Tomcat cluster. We have a number of 2-node Tomcat 6.0.20 clusters, all configured as peer to peer pairs, on the same subnet with no real network oddities mesh getting in the way to speak of. Apache Mod_jk is used to balance connections from users down to the Tomcat clusters, using the availability ('B') load balancing method, with sticky sessions on. There are situations where we need to restart either of the nodes to affect a change...or use Probe to bring a single application down/up for the same purpose on a single node. When we do this sometimes, users report that their sessions are lost...and they cannot re-establish a new connection, unless they refresh their browsers (no proxy configuration getting involved here), even if the node/app is back up. Another, more difficult scenario, is when one of the Tomcat cluster nodes begins to groan and become unresponsive, say when OldGen or PermGen becomes full...in this case the mod_jk connector does not identify the node as having failed and will continue to attempt to pass requests to it, rather than pass them to the more responsive node. Are there any configuration settings to be mindful of with these scenarios? Cheers, Darren. Connaught plc is a FTSE 250 company. We are the UK's leading provider of integrated services operating in the compliance, environmental, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
RE: Tomcat Https loadbalancing??
We use network appliances that sit above Apache Web Server and takes care of all SSL encryption/decryption. This ensures all border-client communication is secured whilst traffic within our estate is purely http/ajp. The level of security in our virtual circuits and inter-segment firewalls ensures we can limit traffic to what source/destinations should be involved, as well as provide a quality of service. This configuration also removes away any potential overheads on Web Server / App Server associated with SSL processing. -Original Message- From: jkv [mailto:j.kumara...@gmail.com] Sent: 25 November 2009 10:28 To: users@tomcat.apache.org Subject: Re: Tomcat Https loadbalancing?? Thanks David, I would imagine that with mod_proxy you could load balance https requests so that the https request goes to httpd then its load balanced between https requests to multiple tomcats. What you'll loose over the ajp protocol i'm sure someone will let us know That sounds good but when https request hits Apache the certificate will be issued by the server to the client, now when this is again sent as https request to tomcat, which will again try issuing a certificate (I guess as this is a protocol standard), I dont know whether will this affect the client - getting two certificates for a single https request?? Has any body done this before??? David Cassidy wrote: Hey Yes if you want httpd to load balance https requests you do need it to handle the https connection - and hence it needs the keys, certs etc Sadly the ajp protocol is in fact insecure if you have the httpd and tomcat on separate boxes you do have a security issue as the connection is transporting data in the clear. I would imagine that with mod_proxy you could load balance https requests so that the https request goes to httpd then its load balanced between https requests to multiple tomcats. What you'll loose over the ajp protocol i'm sure someone will let us know Hope this helps D On 25/11/09 09:18, jkv wrote: Hello, We are using Tomcat 6.0 and running HTTPS (enabled SSL). The number of requests has grown up and we have decided to do go for clustering and loadbalancing. We have decided to go for Apache and mod_proxy/mod_jk loadbalacing. My certificate resides in Tomcat. In order to loadbalance HTTPS request using Apache and mod_proxy/mod_jk, should I configure Apache to handle HTTPS and tell it about my certificate details? While loadbalancing I understand that http/https request to Apache is converted to ajp and tunneled to Tomcat, so is ajp protocol secure? should I enable SSL in tomcat to handle this request? Should I have two copies of my certificate files if Apache and Tomcat reside on two different physical machines(Horizontal Clustering)? I searched the forums and they are too advanced for my question. I am really new to clustering and load balancing and any help is deeply appreciated. Thanks in advance. Regards jkv -- View this message in context: http://old.nabble.com/Tomcat-Https-loadbalancing---tp26509573p26510458.h tml 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 Connaught plc is a FTSE 250 company. We are the UK's leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
FW: Apache Close-Wait issue
No one willing to touch this one? I thought I'd get at least a passing comment...:-( -Original Message- From: Darren Kukulka [mailto:darren.kuku...@connaught.plc.uk] Sent: 27 October 2009 12:14 To: users@tomcat.apache.org Subject: Apache Close-Wait issue Hi All Got an interesting problem which has occurred several times now.. Painting a brief picture ; Several applications running on Tomcat 6.0.19 (64-bit) - several cluster groups Backend SQL Server 2005 clustered DBs (several) Front end Apache Web servers, load balanced via secure network appliance Basically, we have an issue with one of the DB clusters which stops servicing requests from the app servers The app servers can continue to connect to remaining DB clusters OK. The problem is that all the web servers stop responding to external requests. Looking at the ports in use on each server, there are a number of established sessions between Apache and Tomcat, which seems OK. All of the web servers also have exactly 30 close-wait sessions with the secure network appliance. We think this is what is stopping any requests from being services by the web servers. However, even trying to browse locally on each server to the root just times out. We do not enforce keepalive or timeouts for TCP/HTTP, and we use practically all the defaults for these directives. All web servers are configures identically. I can't find any reference to a directive that may limit connections to 30. Restarting the web servers allows users to get to applications using the good databases. Does anybody have any advice on this? Cheers, Darren. Connaught plc is a FTSE 250 company. We are the UK's leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: FW: Apache Close-Wait issue
Fair point Andre...will submit this to httpd forum...thanks for the reply -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: 29 October 2009 07:59 To: Tomcat Users List Subject: Re: FW: Apache Close-Wait issue Darren Kukulka wrote: No one willing to touch this one? I thought I'd get at least a passing comment...:-( Passing comment : maybe the fact that this is the Tomcat help forum, and that your problem seems to be more linked to the Apache httpd webserver and network appliance side of things, is a reason ? ;-) As another passing comment : a connection in the CLOSE_WAIT state means that one side has closed the connection, but the other side has not. If it remains so for a long time, it probably indicates some issue in the code. If this was Tomcat, I would suspect an object instance containing a socket, with the object having been discarded without closing the socket first, and the discarded object sitting on the heap waiting to be garbage-collected. In my experience, these things just pile up, and when there are enough of them (a couple of hundred ?), you may reach a stage where the system's network stack becomes unresponsive, totally. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Connaught plc is a FTSE 250 company. We are the UK's leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Apache Close-Wait issue
Hi All Got an interesting problem which has occurred several times now.. Painting a brief picture ; Several applications running on Tomcat 6.0.19 (64-bit) - several cluster groups Backend SQL Server 2005 clustered DBs (several) Front end Apache Web servers, load balanced via secure network appliance Basically, we have an issue with one of the DB clusters which stops servicing requests from the app servers The app servers can continue to connect to remaining DB clusters OK. The problem is that all the web servers stop responding to external requests. Looking at the ports in use on each server, there are a number of established sessions between Apache and Tomcat, which seems OK. All of the web servers also have exactly 30 close-wait sessions with the secure network appliance. We think this is what is stopping any requests from being services by the web servers. However, even trying to browse locally on each server to the root just times out. We do not enforce keepalive or timeouts for TCP/HTTP, and we use practically all the defaults for these directives. All web servers are configures identically. I can't find any reference to a directive that may limit connections to 30. Restarting the web servers allows users to get to applications using the good databases. Does anybody have any advice on this? Cheers, Darren. Connaught plc is a FTSE 250 company. We are the UK's leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
RE: Clustering Question...
Thanks for the suggestions Chris. Unfortunately, the memory that was exhausted was the OldGen heap area, not PermGen, which doesn't show up in the Catalina log. The heap allocation is quite hefty as this is a 64-bit environment...we need to get our developers to look into the application behaviour, but in the meantime I was looking for a way of dealing with the problem. -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: 24 September 2009 19:59 To: Tomcat Users List Subject: Re: Clustering Question... -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Darren, On 9/24/2009 10:21 AM, Darren Kukulka wrote: In a 2-node scenario, where both nodes are configured identically and load balanced via Apache based on availability, how can we configure the cluster to deal with situations where one node has exhausted its Old Gen heap allocation. Hmm... this is a situations that is difficult to detect using remote code (like mod_jk). In such situations we've observed that the application being served by the cluster slow down considerably. I can understand why this would be the case for sessions on the degraded node, but why would sessions on the good node suffer? Are you using session replication? If so, the good Tomcat may be slowing down attempting to replicate session changes to the damaged Tomcat that is either not responding, or responding slowly, or responding in confusing ways. How can we modify our configuration to deal with such occurrences more effectively? After we had some trouble with OOMEs in production (legit ones, actually: we just needed more heap), I implemented a quick-and-dirty OOME checker. All it does is grep OutOfMemoryError catalina.out and, if found, sends an email to someone. Instead of emailing, you could have your OOME checker actually shut down (or forceably terminate) the damaged Tomcat, and then the cluster should stabilize. With only two nodes, this might be a problem, as the good Tomcat will take over and might, under the new load of 100% of your traffic, experience its own pergmen exhaustion and also be shut down. You should consider adjusting your pergmen allocation (duh!) as well as perhaps your heap allocation as well. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkq7wXcACgkQ9CaO5/Lv0PDVxACfT6X4tsFOEZ0nRWpYOIfLr7lX XMIAoJUEs5uW3tTLqeRB5wCf1bo0oi4Q =4LWQ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Connaught plc is a FTSE 250 company. We are the UK's leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
RE: Clustering Question...
There are no OOME messages in the logs...the application still runs, albeit very slowly...GC is not kicking in any more frequently...I was under the impression that GC doesn't touch OldGen though...? -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: 25 September 2009 08:09 To: Tomcat Users List Subject: Re: Clustering Question... On 25.09.2009 09:01, Darren Kukulka wrote: Thanks for the suggestions Chris. Unfortunately, the memory that was exhausted was the OldGen heap area, not PermGen, which doesn't show up in the Catalina log. The heap allocation is quite hefty as this is a 64-bit environment...we need to get our developers to look into the application behaviour, but in the meantime I was looking for a way of dealing with the problem. So did you get an OutOfMemoryError, or was there only a shortage of memory resulting in more or less continuous garbage collection runs? Regards, Rainer -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: 24 September 2009 19:59 To: Tomcat Users List Subject: Re: Clustering Question... Darren, On 9/24/2009 10:21 AM, Darren Kukulka wrote: In a 2-node scenario, where both nodes are configured identically and load balanced via Apache based on availability, how can we configure the cluster to deal with situations where one node has exhausted its Old Gen heap allocation. Hmm... this is a situations that is difficult to detect using remote code (like mod_jk). In such situations we've observed that the application being served by the cluster slow down considerably. I can understand why this would be the case for sessions on the degraded node, but why would sessions on the good node suffer? Are you using session replication? If so, the good Tomcat may be slowing down attempting to replicate session changes to the damaged Tomcat that is either not responding, or responding slowly, or responding in confusing ways. How can we modify our configuration to deal with such occurrences more effectively? After we had some trouble with OOMEs in production (legit ones, actually: we just needed more heap), I implemented a quick-and-dirty OOME checker. All it does is grep OutOfMemoryError catalina.out and, if found, sends an email to someone. Instead of emailing, you could have your OOME checker actually shut down (or forceably terminate) the damaged Tomcat, and then the cluster should stabilize. With only two nodes, this might be a problem, as the good Tomcat will take over and might, under the new load of 100% of your traffic, experience its own pergmen exhaustion and also be shut down. You should consider adjusting your pergmen allocation (duh!) as well as perhaps your heap allocation as well. -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Connaught plc is a FTSE 250 company. We are the UK's leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - 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
RE: Clustering Question...
Not sure what to tell you... When OldGen becomes full, the system basically slows down to the point of becoming non-responsive...but it does not report any OOME. GC appears to have no affect, whether instigated by the JVM or manually kicked off in JConsole...it will clear down other heap areas, but not OldGen -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: 25 September 2009 08:20 To: Tomcat Users List Subject: Re: Clustering Question... On 25.09.2009 09:12, Darren Kukulka wrote: There are no OOME messages in the logs...the application still runs, albeit very slowly...GC is not kicking in any more frequently...I was under the impression that GC doesn't touch OldGen though...? It does. So it's strange you know your memory is exhausted and that's the reason for the slowness, although if it were exhausted, you would either get an OutOfMemoryError or GC has to kick in. The picture is not complete here. Regards, Rainer -Original Message- From: Rainer Jung [mailto:rainer.j...@kippdata.de] Sent: 25 September 2009 08:09 To: Tomcat Users List Subject: Re: Clustering Question... On 25.09.2009 09:01, Darren Kukulka wrote: Thanks for the suggestions Chris. Unfortunately, the memory that was exhausted was the OldGen heap area, not PermGen, which doesn't show up in the Catalina log. The heap allocation is quite hefty as this is a 64-bit environment...we need to get our developers to look into the application behaviour, but in the meantime I was looking for a way of dealing with the problem. So did you get an OutOfMemoryError, or was there only a shortage of memory resulting in more or less continuous garbage collection runs? Regards, Rainer -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: 24 September 2009 19:59 To: Tomcat Users List Subject: Re: Clustering Question... Darren, On 9/24/2009 10:21 AM, Darren Kukulka wrote: In a 2-node scenario, where both nodes are configured identically and load balanced via Apache based on availability, how can we configure the cluster to deal with situations where one node has exhausted its Old Gen heap allocation. Hmm... this is a situations that is difficult to detect using remote code (like mod_jk). In such situations we've observed that the application being served by the cluster slow down considerably. I can understand why this would be the case for sessions on the degraded node, but why would sessions on the good node suffer? Are you using session replication? If so, the good Tomcat may be slowing down attempting to replicate session changes to the damaged Tomcat that is either not responding, or responding slowly, or responding in confusing ways. How can we modify our configuration to deal with such occurrences more effectively? After we had some trouble with OOMEs in production (legit ones, actually: we just needed more heap), I implemented a quick-and-dirty OOME checker. All it does is grep OutOfMemoryError catalina.out and, if found, sends an email to someone. Instead of emailing, you could have your OOME checker actually shut down (or forceably terminate) the damaged Tomcat, and then the cluster should stabilize. With only two nodes, this might be a problem, as the good Tomcat will take over and might, under the new load of 100% of your traffic, experience its own pergmen exhaustion and also be shut down. You should consider adjusting your pergmen allocation (duh!) as well as perhaps your heap allocation as well. -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Connaught plc is a FTSE 250 company. We are the UK's leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - 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
RE: Clustering Question...
Thanks Chuck. I'll relay your feedback to our development team. To answer your question, the startup parameters are as follows; -Xms4800m -Xmx4800m -XX:NewSize=900m -XX:MaxNewSize=900m -XX:PermSize=480m -XX:MaxPermSize=480m -XX:+UseParallelGC -XX:ParallelGCThreads=3 -XX:+UseParallelOldGC -XX:GCTimeRatio=11 -XX:+UseAdaptiveSizePolicy -XX:ReservedCodeCacheSize=96m -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: 25 September 2009 14:23 To: Tomcat Users List Subject: RE: Clustering Question... From: Darren Kukulka [mailto:darren.kuku...@connaught.plc.uk] Subject: RE: Clustering Question... When OldGen becomes full, the system basically slows down to the point of becoming non-responsive...but it does not report any OOME. Then a major GC likely is running almost continuously, which will suspend the application threads. What are your heap-related commmand line settings? If you have artificially constrained the size of the OldGen, you could easily have a self-induced problem. Setting -XX:NewRatio or any of several other options will prevent HotSpot from dynamically adjusting the balance between NewGen and OldGen. Or, you may simply be out of heap space, in which case you'll need to fix your application so that it's not so greedy. Excessive caching without employing a SoftReference technique is a frequent cause. - 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 Connaught plc is a FTSE 250 company. We are the UK's leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Clustering Question...
Hi All, Just a quick question regarding clustering with Tomcat 6. In a 2-node scenario, where both nodes are configured identically and load balanced via Apache based on availability, how can we configure the cluster to deal with situations where one node has exhausted its Old Gen heap allocation. In such situations we've observed that the application being served by the cluster slow down considerably. I can understand why this would be the case for sessions on the degraded node, but why would sessions on the good node suffer? How can we modify our configuration to deal with such occurrences more effectively? Cheers, Darren. Connaught plc is a FTSE 250 company. We are the UK's leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
Tomcat 6 Clustering issue
Hi All, I've come across some interesting scenarios with a clustered Tomcat6 environment and I'm wondering what the most common (or best) approach to configuration would be. Basically, in a 2 node cluster, with a front-end Apache Web Server using mod_jk balancer (on availability, with equal weighting) - when one node decides to stop servicing requests, it appears that the front end may still be trying to send requests to it and consequently timing out, or taking a very long time to resend the request to the healthy node. In situations like this, the failing node is not down. Nor is it low on resources or experiencing thread blocking. There's no immediate evidence of memory leaks but this will require further investigation. It just stops servicing requests. Indeed, even when we try and interrogate the JVM sometimes with JConsole, we cannot connect to the environment. Anyway, the crux of the issue is how can we configure our environment such that the healthy node will service all requests if the bad node is degraded, although it is up? There is also the question as to how we monitor for such scenarios. Cheers, Darren Connaught plc is a FTSE 250 company. We are the UK's leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
RE: Tomcat 6 Clustering issue
The clustering and session failover appears to work OK. It's just that when one node is failing to respond in a timely fashion to requests, the balancer does not appear to redirect some (or in some cases all) requests to the good node. As the balancer is configured on 'availability', what does that actually mean in this case? Availability of Tomcat on a node, or the availability of the service to respond to requests? -Original Message- From: Sumedh Sakdeo [mailto:sumedhsak...@gmail.com] Sent: 08 September 2009 10:49 To: Tomcat Users List Subject: Re: Tomcat 6 Clustering issue Hi Darren, For our setup tomcat 6 is able to handle failover to healthy node with proper session replication. I assume you have loaded load balancer module, updated worker.properties, made cluster changes to server.xml of tomcat 6. My problem is next step of yours. http://www.mail-archive.com/users@tomcat.apache.org/msg66444.html In terms of monitoring you can use jkstatus of apache server. Use jkstatus Web page to monitor web server requests.For tomcat clustering visit http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html. Thanks, Sumedh On Tue, Sep 8, 2009 at 2:49 PM, Darren Kukulka darren.kuku...@connaught.plc.uk wrote: Hi All, I've come across some interesting scenarios with a clustered Tomcat6 environment and I'm wondering what the most common (or best) approach to configuration would be. Basically, in a 2 node cluster, with a front-end Apache Web Server using mod_jk balancer (on availability, with equal weighting) - when one node decides to stop servicing requests, it appears that the front end may still be trying to send requests to it and consequently timing out, or taking a very long time to resend the request to the healthy node. In situations like this, the failing node is not down. Nor is it low on resources or experiencing thread blocking. There's no immediate evidence of memory leaks but this will require further investigation. It just stops servicing requests. Indeed, even when we try and interrogate the JVM sometimes with JConsole, we cannot connect to the environment. Anyway, the crux of the issue is how can we configure our environment such that the healthy node will service all requests if the bad node is degraded, although it is up? There is also the question as to how we monitor for such scenarios. Cheers, Darren Connaught plc is a FTSE 250 company. We are the UK's leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Application Clustering
Hi Everyone, I've got a general query around application clustering in Tomcat. We've got several clusters of Tomcat 6.0.18, each consisting of 2-3 nodes per cluster. The setup is fairly straightforward and we're using the 'based on load' balance method at the web server layer for the ajp workers. This works great for scenarios where cluster members are bought in and out of the cluster groups, e.g. when bouncing Tomcat. My question is whether the cluster engine can be configured to failover to a working node when an application becomes unavailable on another node, i.e. when an application is bought down, rather than the Tomcat instance, using Lambda Probe for example. Can anybody please point me in the right direction? Cheers, Darren Connaught plc is one of the UK's top 250 companies on the London Stock Exchange and the leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
RE: Port range
netstat -a from a Command window, will show you all the ports in use on any Windows server. -Original Message- From: Venky Vasant [mailto:venkat...@yahoo.com] Sent: 25 March 2009 13:10 To: users@tomcat.apache.org Subject: Port range I am sure this is very simple question but i could not find a proper information Where do i find the official information about what port range can be used for tomcat server port and HTTP connector port for all windows servers. Regards Venkat Connaught plc is one of the UK's top 250 companies on the London Stock Exchange and the leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies http://www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Issue with SSL server/ network configuration
Why not opt for a wildcard certificate for the domain, if that's applicable (e.g. *.yourcompany.com) -Original Message- From: i_am_superman [mailto:ee...@objectivation.nl] Sent: 20 March 2009 11:52 To: users@tomcat.apache.org Subject: Re: Issue with SSL server/ network configuration awarnier wrote: i_am_superman wrote: It's gonna be a public government website, so a self-signed certificate will not be an option :-) Considering the amount of taxpayer money that governments are currently pumping into failed financial institutions and car makers, I'm sure they could afford a 400 € certificate, no ? Or is it that bad ? :-) No it's not that bad, but we have 3 environment (test, accept, prod) so we need 3 extra certificates. No big deal indeed, but I need to be sure that I really need them. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/Issue-with-SSL-server--network-configuration-tp22618057p22618849.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 Connaught plc is one of the UK's top 250 companies on the London Stock Exchange and the leading provider of integrated services operating in the compliance, social housing and public sector markets. Please visit our website to see a full list of Connaught's Registered Companies http://www.connaught.plc.uk/group/aboutconnaught/registeredcompanies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
Blocked threads
Hi, We've got a Tomcat 6.0.13 server running a single application under 64-bit windows with 64-bit SUN JDK 1.6_03 It runs into situations where a large number of blocked threads appear that seem to relate to hibernate functions unable to obtain database connections/resources. This leads to the application slowing down considerably to the point where we need to restart Tomcat to restore service. At the moment we are having a performance review of the back-end database which runs separately on a SQL Server 2005 server. We thought it would be prudent to see if there is any tuning we could do within Tomcat to help alleviate the pain felt by the users. Is anybody aware of any parameters that can be utilised, either programmatically or through Tomcat configuration? Thanks in advance! Darren Kukulka
Tomcat thread blocking
Hi, I've recently observed a scenario in Tomcat 6.0.13 64-bit under SUN JDK 1.6_03 (x64 Windows platform), where a large number of threads show a status of BLOCKED. Can someone please advise the easiest and most effective way of helping identify the original cause of the block?or have I just opened up a can of worms?! The behaviour is not something I can replicate so I need a method for in situ investigation, before I have to restart Tomcat to restore service (after a while Tomcat consumes too much CPU and becomes unresponsive) Any pointers would be much appreciated. Darren Kukulka Business Applications Architect Connaught PLC Tel: 01392 353497 Business in the Community (BiTC) Team of the Year 2008 for Community Impact RoSPA Gold Awards - Connaught now have 15 in total Winner of Partnering Contractor of the Year Award in 2005 and 2007 Tenant Care Scheme of the Year 2007 Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/Investors/Registered-Companies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
Help with Tomcat and mod_jk
Hi All, Running Tomcat 6.0.13 on Windows Server 2003 x64 with an Apache Web Server 2.2.4 (on a separate server) with mod_jk 1.2.20 Regularly getting these in the log - same warning every time... 23-Jan-2008 08:24:56 org.apache.jk.core.MsgContext action WARNING: Error sending end packet java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531) at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:121) at org.apache.jk.core.MsgContext.action(MsgContext.java:301) at org.apache.coyote.Response.action(Response.java:183) at org.apache.coyote.Response.finish(Response.java:305) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:195) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 697) at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket. java:889) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:686) at java.lang.Thread.run(Thread.java:619) 23-Jan-2008 08:24:56 org.apache.jk.common.ChannelSocket processConnection WARNING: processCallbacks status 2 The workers.properties file contains the following for the worker involved; worker.worker7.type=ajp13 worker.worker7.host=fred.abc.co.uk worker.worker7.port=8009 worker.worker7.socket_timout=300 worker.worker7.socket_keepalive=true (I think the socket_timout is unsupported for this level of mod_jk, but to tell the truth I can't seem to find the relevant directives documentation!) The httpd.conf contains... LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkShmFile logs/mod_jk.shm JkLogFile logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] Can anybody shed some light on this? Cheers, Darren. Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 Disclaimer --- This email message has been scanned for viruses by Mimecast. Mimecast delivers a complete managed email solution from a single web based platform. For more information please visit www.mimecast.com ---
RE: Help with Tomcat and mod_jk
Thanks Rainer, I'll look into upgrading the apache/mod_jk combination -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: 23 January 2008 10:42 To: Tomcat Users List Subject: Re: Help with Tomcat and mod_jk Darren Kukulka wrote: Hi All, Running Tomcat 6.0.13 on Windows Server 2003 x64 with an Apache Web Server 2.2.4 (on a separate server) with mod_jk 1.2.20 We are currently at 2.2.8/1.2.26 ... Regularly getting these in the log - same warning every time... 23-Jan-2008 08:24:56 org.apache.jk.core.MsgContext action WARNING: Error sending end packet See http://www.nabble.com/mod_jk-broken-pipe-ts6882827.html The workers.properties file contains the following for the worker involved; ... (I think the socket_timout is unsupported for this level of mod_jk, but to tell the truth I can't seem to find the relevant directives documentation!) http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html http://tomcat.apache.org/connectors-doc/reference/workers.html http://tomcat.apache.org/connectors-doc/reference/apache.html Regards, Rainer - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 Disclaimer --- This email message has been scanned for viruses by Mimecast. Mimecast delivers a complete managed email solution from a single web based platform. For more information please visit www.mimecast.com ---
Tomcat 5.5.20 terminated unexpectedly
Hi Tomcaters, We are running an instance of Tomcat 5.5.20 on Windows Server 2003 R2 x64 Standard. The JVM is SUN JDK 1.5.0_10 and the Tomcat.exe has been compiled under 64-bit Windows and is running as a service. On a few occasions the service has stopped abruptly. The only evidence of this is an entry in the Event Log stating that The Apache Tomcat service terminated unexpectedly. with an error code of 7034. There is nothing in the Tomcat logs to suggest a cause. This may be a moot point for us in the medium term as we are about to move to Java 6/Tomcat 6...but in the meantime it would be nice to find out if there's a known problem. I've noticed similar issues with earlier versions of Tomcat that have come down to bug fixes but has anybody come across this behaviour in 5.5.20? Cheers, Darren. Connaught wins RoSPA Gold Award for fifth year running Considerate Contractor Gold Award in 2006 Partnering Contractor of the Year Award in 2005 Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/Investors/Registered-Companies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
Apache 32-bit as front end to 64-bit Tomcat
Hi All, Just wondering if anybody has had any 'weirdness' when running a 32-bit mod_jk connector under Apache (in our case mod_jk v1.2.20 under Apache 2.2.4) against a 64-bit installation of Tomcat (5.5.20 with 1.5.0_10 SUN Java)on separate servers. We've had scenarios where the connector appears to stop talking with Tomcat - this behaviour has been documented in a bug report. I'm going to address this by upgrading the mod_jk connector to v1.2.23 but I was interested if anybody has experienced other strangeness... Is it recommended to run 64-bit in the front end if the application tier is 64-bit? Cheers, Darren. Connaught wins RoSPA Gold Award for fourth year running Considerate Contractor Gold Award in 2006 Partnering Contractor of the Year Award in 2005 Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/Investors/Registered-Companies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
RE: Installing Tomcat on Windows Server 2003 x64
We have recently migrated to this platform and have had smooth success with a SUN 64-bit JRE (version 1.5.0_10) We are using a pre-compiled Tomcat binary (5.5.23, Tomcat5.exe and Tomcat5w.exe) and tc-native.dll (APR) which can be found at http://svn.apache.org/viewvc/tomcat/connectors/tags/tc5.5.x/TOMCAT_5_5_2 3/procrun/bin/ and http://tomcat.heanet.ie/native/ Go through the motions of installing Tomcat and replace the abovementioned exe files and dll (if you are using it). You will also need to install the Microsoft ASP.Net libraries as the precompiled binaries will need their reference libs to run. As an alternative, if you're feeling adventurous you could try compiling your own binaries as described in http://www.nabble.com/Mini-HOW-TO%3A-Tomcat-as-a-service-on-Windows-Serv er-2003-64-bit-edition-tf1735687.html#a4716292 ... this will give you more flexibility with the version of Tomcat you want to run. Hope this helps! -Original Message- From: Adrian Bell [mailto:[EMAIL PROTECTED] Sent: 02 May 2007 22:05 To: users@tomcat.apache.org Subject: Installing Tomcat on Windows Server 2003 x64 Hi, I need to advise someone on how to install Tomcat on a Windows Server 2003 64-bit edition server with an AMD64 processor. Unfortunately I do not have this hardware/software setup myself so am unable to test. I see from a google search that others have encoutered problems with Win2k3 64. Can anyone please advise: * the correct JRE from Sun that they should install? Release? 32bit or 64bit? * the correct Tomcat version to install? Is there a 64bit compiliation available? Many thanks in advance. Regards Adrian Connaught wins RoSPA Gold Award for fourth year running Considerate Contractor Gold Award in 2006 Partnering Contractor of the Year Award in 2005 Please visit our website to see a full list of Connaught?s Registered Companies www.connaught.plc.uk/Investors/Registered-Companies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ideal JVM params for 64-bit?
Hi Tomcaters! Just a quick query relating to Tomcat 5.5.20 on Win2K3 with SUN JVM 1.5.0_10 (64-bit) What are the ideal JVM GC parameter settings for a system with two dual-core processors and 4GB RAM (of which we've allocated a little over 3GB to the JVM)? Sometimes Tomcat pauses for a long time when OldGen gets close to full to perform a full GC... my JConsole session tends to drop out, although I can re-establish a session less than a minute later...users logged into the application experience no response which then returns to normal once the GC is finished. Cheers, Darren K Connaught wins RoSPA Gold Award for fourth year running Considerate Contractor Gold Award in 2006 Partnering Contractor of the Year Award in 2005 Please visit our website to see a full list of Connaught?s Registered Companies www.connaught.plc.uk/Investors/Registered-Companies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
How to redirect to stub page when app unavailable?
Hi Tomcat Users, I'm trying to formulate a clever method of providing a stub page, 'under maintenance' if you will, for when we are building a new version of a Tomcat served application : i.e. when Tomcat is offline - we need to keep it offline during the build as there are back-end DB updates that require no activity via the application. We are using Apache web server with mod_jk connectivity to the app servers via a large number of workers. Can anybody suggest a smart way of achieving this? Cheers in advance, Darren K Connaught wins RoSPA Gold Award for fourth year running Considerate Contractor Gold Award in 2006 Partnering Contractor of the Year Award in 2005 Please visit our website to see a full list of Connaught?s Registered Companies www.connaught.plc.uk/Investors/Registered-Companies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
RE: Named based virtual host redirection
Hassan, All the static content is served by Tomcat anyway...i.e - there is no content on the Apache web server. How is the mod_proxy_ajp used? The doco on Apache org refers to it in a developer sense, rather than as a web server directive. -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: 06 March 2007 15:27 To: Tomcat Users List Subject: Re: Named based virtual host redirection On 3/6/07, Darren Kukulka [EMAIL PROTECTED] wrote: This worked but I want to hide the redirect URL, and eliminate the doubled network traffic, I hope? :-) Anyway, VirtualHost *:80 DocumentRoot d:/apache2/htdocs ServerName test.abc.co.uk ProxyPass / http://fred.abc.co.uk/app1/ ProxyPassReverse / http://fred.abc.co.uk/app1/ /VirtualHost This almost works, but it only appears to show the html content, not the JSP. Does anybody have any suggestions how to make this work? 1. move your static content to Tomcat, 2. use mod_proxy_ajp instead of mod_jk FWIW! -- Hassan Schroeder [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] Connaught honoured AIM 'Decade of Excellence' Award Connaught awarded Partnering Contractor of the Year 2005 Connaught wins AIM 'Company of the Year' award 2004 West of England Business of the Year Award Winner 2003 Why not visit our website http://www.connaught.plc.uk Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Named based virtual host redirection
Hi there I'm doing some testing of redirection with a separate Apache web farm serving front end redirection of specific tags to Tomcat server via an ajp13 worker. The problem I'm coming across is redirecting a DNS alias to a specific tag on the same web server. I've been trying virtual host directives, to no avail (the ajp13 redirection works for normal tags). The configuration is as follows; httpd.conf LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkShmFile logs/mod_jk.shm JkLogFile logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /app1/* worker1 ServerName fred.abc.co.uk DocumentRoot D:/Apache2/htdocs Include conf/extra/httpd-vhosts.conf httpd-vhosts.conf NameVirtualHost 1.2.3.4:80 VirtualHost 1.2.3.4:80 DocumentRoot d:/apache2/htdocs ServerName test.abc.co.uk Redirect / http://fred.abc.co.uk/app1/ /VirtualHost workers.properties worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=1.2.3.5 worker.worker1.port=8009 Now if I hit the http://fred.abc.co.uk/app1/ without the vhosts include, the site comes up...great! If I include the vhosts, and try to hit http://test.abc.co.uk http://test.abc.co.uk/ without an appended /app1/ tag (this is what I'm trying to achieve) to get the same site, I get nothing at allin fact, it times out. In the Apache web server logs all I see is a recursive get on /app1/. Also, the original URL does not work any more. This seems to be a simple requirement but it is not proving to be straightforward. Can anybody help, or point me in the right direction? Darren Kukulka IT Infrastructure Consultant Conntrol Connaught PLC Connaught honoured AIM 'Decade of Excellence' Award Connaught awarded Partnering Contractor of the Year 2005 Connaught wins AIM 'Company of the Year' award 2004 West of England Business of the Year Award Winner 2003 Why not visit our website http://www.connaught.plc.uk Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
RE: Named based virtual host redirection
Further to this I modified the httpd-vhosts.conf file, after discovering that the main server will not serve the jkmount directives if virtual hosts are active...hence the looping and no response... NameVirtualHost 1.2.3.4:80 VirtualHost *:80 DocumentRoot d:/apache2/htdocs ServerName fred.abc.co.uk JkMount /app1/* worker1 /VirtualHost VirtualHost *:80 DocumentRoot d:/apache2/htdocs ServerName test.abc.co.uk Redirect / http://fred.abc.co.uk/app1/ /VirtualHost This worked but I want to hide the redirect URL, so I tried using proxypass as follows for the second virtual host... VirtualHost *:80 DocumentRoot d:/apache2/htdocs ServerName test.abc.co.uk ProxyPass / http://fred.abc.co.uk/app1/ ProxyPassReverse / http://fred.abc.co.uk/app1/ /VirtualHost This almost works, but it only appears to show the html content, not the JSP. Does anybody have any suggestions how to make this work? -Original Message- From: Darren Kukulka [mailto:[EMAIL PROTECTED] Sent: 06 March 2007 10:18 To: Tomcat Users List Subject: Named based virtual host redirection Hi there I'm doing some testing of redirection with a separate Apache web farm serving front end redirection of specific tags to Tomcat server via an ajp13 worker. The problem I'm coming across is redirecting a DNS alias to a specific tag on the same web server. I've been trying virtual host directives, to no avail (the ajp13 redirection works for normal tags). The configuration is as follows; httpd.conf LoadModule jk_module modules/mod_jk.so JkWorkersFile conf/workers.properties JkShmFile logs/mod_jk.shm JkLogFile logs/mod_jk.log JkLogLevelinfo JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkMount /app1/* worker1 ServerName fred.abc.co.uk DocumentRoot D:/Apache2/htdocs Include conf/extra/httpd-vhosts.conf httpd-vhosts.conf NameVirtualHost 1.2.3.4:80 VirtualHost 1.2.3.4:80 DocumentRoot d:/apache2/htdocs ServerName test.abc.co.uk Redirect / http://fred.abc.co.uk/app1/ /VirtualHost workers.properties worker.list=worker1 worker.worker1.type=ajp13 worker.worker1.host=1.2.3.5 worker.worker1.port=8009 Now if I hit the http://fred.abc.co.uk/app1/ without the vhosts include, the site comes up...great! If I include the vhosts, and try to hit http://test.abc.co.uk http://test.abc.co.uk/ without an appended /app1/ tag (this is what I'm trying to achieve) to get the same site, I get nothing at allin fact, it times out. In the Apache web server logs all I see is a recursive get on /app1/. Also, the original URL does not work any more. This seems to be a simple requirement but it is not proving to be straightforward. Can anybody help, or point me in the right direction? Darren Kukulka IT Infrastructure Consultant Conntrol Connaught PLC Connaught honoured AIM 'Decade of Excellence' Award Connaught awarded Partnering Contractor of the Year 2005 Connaught wins AIM 'Company of the Year' award 2004 West of England Business of the Year Award Winner 2003 Why not visit our website http://www.connaught.plc.uk Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - 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 5.5 and x64 Windows
Martin/Mladen, I ended up installing .Net Framework 2.0 x64 as this was the prescribed method for resolving large numbers of Error 32 and 59 messages within the Windows system log. Mladen is probably right that the msvcrt80 runtime is the crux of the fix for this but for now I'm just happy that it works! Martin - I only have .Net 2.0 x64 installed on my system. Darren. -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: 25 January 2007 07:03 To: Tomcat Users List Subject: Re: Tomcat 5.5 and x64 Windows Martin Skøtt wrote: Hi Darren, Good to hear that you solved - I hope you will spend a couple of minutes on providing some extra information. You don't actually need the .NET to be installed, but rather the msvcrt80 runtime. Download Microsoft Visual C++ 2005 Redistributable Package (x64) http://www.microsoft.com/downloads/details.aspx?familyid=90548130-4468-4BBC-9673-D6ACABD5D13Bdisplaylang=en It should be enough. Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Connaught honoured AIM 'Decade of Excellence' Award Connaught awarded Partnering Contractor of the Year 2005 Connaught wins AIM 'Company of the Year' award 2004 West of England Business of the Year Award Winner 2003 Why not visit our website http://www.connaught.plc.uk Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - 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 5.5 and x64 Windows
All, Found the problem with installing the 64-bit version of Tomcat as a service on Windows Server 2003 x64. It required .Net Framework 2 x64 to be installed so referenced modules could be found by the compiled 64 bit version of the executable. Hoorah! Now I can allocate a monstrous VM size! Hope this helps anyone who has had the same problem. Regards, Darren. -Original Message- From: Darren Kukulka [mailto:[EMAIL PROTECTED] Sent: 19 January 2007 15:30 To: Tomcat Users List Subject: RE: Tomcat 5.5 and x64 Windows Reinhard, I am using Sun Java 1.5.0.10 for x64 (JRE) -Original Message- From: Reinhard Moosauer [mailto:[EMAIL PROTECTED] Sent: 19 January 2007 13:54 To: Tomcat Users List Subject: Re: Tomcat 5.5 and x64 Windows Please do not forget that you need a 64-bit JVM in this case!! Am Donnerstag, 18. Januar 2007 17:38 schrieb Darren Kukulka: Thanks for the pointers Mladen. I carried out the steps you outlined, however the service install command fails...as follows; F:\Tomcat5\binservice install Installing the service 'Tomcat5' ... Using CATALINA_HOME:F:\Tomcat5 Using CATALINA_BASE:F:\Tomcat5 Using JAVA_HOME:C:\Program Files\Java\jre1.5.0_10 Using JVM: auto The system cannot execute the specified program. Failed installing 'Tomcat5' service I've made sure the tomcat5 service is completely removed by using sc \\servername delete tomcat5 but I receive the same message running the service install. Should I be specifying any parameters for this? -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: 18 January 2007 14:01 To: Tomcat Users List Subject: Re: Tomcat 5.5 and x64 Windows Darren Kukulka wrote: Mladen, The binary versions you mentioned are the same ones I have already tried. 2 questions; - how do you install the Tomcat service manually? I install Tomcat using the binary download, i.e. apache-tomcat-5.5.20.exe which does not give you the option of NOT installing the Tomcat service. - I'm not sure what you mean by running the install.bat. As mentioned I install using the exe. .exe installer is 32 bit so it'll probably install as WOW64 (WindowsOnWindows64) Unistall the Tomcat. download apache-tomcat-5.5.20.zip and unpack to install dir of your choice. put tomcat5.exe.amd64 as tomcat5.exe inside install dir\bin put tomcat5w.exe.amd64 as tomcat5w.exe inside install dir\bin open cmd.exe (be sure it's 64 bit so, 'Start-run-cmd') cd to the install dir\bin service install That's is :) Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Connaught honoured AIM 'Decade of Excellence' Award Connaught awarded Partnering Contractor of the Year 2005 Connaught wins AIM 'Company of the Year' award 2004 West of England Business of the Year Award Winner 2003 Why not visit our website http://www.connaught.plc.uk Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Reinhard Moosauer IT Beratung - 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]
RE: Tomcat 5.5 and x64 Windows
Reinhard, I am using Sun Java 1.5.0.10 for x64 (JRE) -Original Message- From: Reinhard Moosauer [mailto:[EMAIL PROTECTED] Sent: 19 January 2007 13:54 To: Tomcat Users List Subject: Re: Tomcat 5.5 and x64 Windows Please do not forget that you need a 64-bit JVM in this case!! Am Donnerstag, 18. Januar 2007 17:38 schrieb Darren Kukulka: Thanks for the pointers Mladen. I carried out the steps you outlined, however the service install command fails...as follows; F:\Tomcat5\binservice install Installing the service 'Tomcat5' ... Using CATALINA_HOME:F:\Tomcat5 Using CATALINA_BASE:F:\Tomcat5 Using JAVA_HOME:C:\Program Files\Java\jre1.5.0_10 Using JVM: auto The system cannot execute the specified program. Failed installing 'Tomcat5' service I've made sure the tomcat5 service is completely removed by using sc \\servername delete tomcat5 but I receive the same message running the service install. Should I be specifying any parameters for this? -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: 18 January 2007 14:01 To: Tomcat Users List Subject: Re: Tomcat 5.5 and x64 Windows Darren Kukulka wrote: Mladen, The binary versions you mentioned are the same ones I have already tried. 2 questions; - how do you install the Tomcat service manually? I install Tomcat using the binary download, i.e. apache-tomcat-5.5.20.exe which does not give you the option of NOT installing the Tomcat service. - I'm not sure what you mean by running the install.bat. As mentioned I install using the exe. .exe installer is 32 bit so it'll probably install as WOW64 (WindowsOnWindows64) Unistall the Tomcat. download apache-tomcat-5.5.20.zip and unpack to install dir of your choice. put tomcat5.exe.amd64 as tomcat5.exe inside install dir\bin put tomcat5w.exe.amd64 as tomcat5w.exe inside install dir\bin open cmd.exe (be sure it's 64 bit so, 'Start-run-cmd') cd to the install dir\bin service install That's is :) Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Connaught honoured AIM 'Decade of Excellence' Award Connaught awarded Partnering Contractor of the Year 2005 Connaught wins AIM 'Company of the Year' award 2004 West of England Business of the Year Award Winner 2003 Why not visit our website http://www.connaught.plc.uk Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Reinhard Moosauer IT Beratung - 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 5.5 and x64 Windows
Hi Everyone, I'm currently testing Tomcat 5.5.20 with SUN JVM 1.5.0.10 on a Windows 2003 Server x64 platform. Everything has installed fine but when I attempt to start Tomcat I get a service error. Trawling the Net I see that this is a common problem that is resolved either by using a service wrapper, compiling Tomcat or using pre-compiled binaries of some components. I have been down the latter path and located some pre-compiled 64-bit binary versions of tomcat5.exe, tomcat5w.exe and tc-native.dll (version 1.1.8) - all supposedly built for my particular x64 environment. Is it a simple case of replacing said binaries in the current installation of Tomcat? I have tried this and get a application configuration is incorrect error - e.g. for tomcat5w.exe Can anybody please point me in the right direction? What is best practice for getting Tomcat up and running in my environment? Thanks in advance, Darren Kukulka Connaught honoured AIM 'Decade of Excellence' Award Connaught awarded Partnering Contractor of the Year 2005 Connaught wins AIM 'Company of the Year' award 2004 West of England Business of the Year Award Winner 2003 Why not visit our website http://www.connaught.plc.uk Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
RE: Tomcat 5.5 and x64 Windows
Mladen, The binary versions you mentioned are the same ones I have already tried. 2 questions; - how do you install the Tomcat service manually? I install Tomcat using the binary download, i.e. apache-tomcat-5.5.20.exe which does not give you the option of NOT installing the Tomcat service. - I'm not sure what you mean by running the install.bat. As mentioned I install using the exe. Darren. -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: 18 January 2007 13:15 To: Tomcat Users List Subject: Re: Tomcat 5.5 and x64 Windows Darren Kukulka wrote: Hi Everyone, I'm currently testing Tomcat 5.5.20 with SUN JVM 1.5.0.10 on a Windows 2003 Server x64 platform. Everything has installed fine but when I attempt to start Tomcat I get a service error. On Win64 boxes the service must be installed manually. Next you will need to download the service executables for the amd64-bit platform http://svn.apache.org/viewvc/tomcat/connectors/trunk/procrun/bin/tomcat5 .exe.amd64?view=co Rename the tomcat5.exe.amd64 to tomcat5.exe and replace the one installed. In case the service still doesn't work use install.bat script with amd64 executable, because the standard install might get installed as WOW64. Also replace tomcat5w.exe with: http://svn.apache.org/viewvc/tomcat/connectors/trunk/procrun/bin/tomcat5 w.exe.amd64?view=co Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Connaught honoured AIM 'Decade of Excellence' Award Connaught awarded Partnering Contractor of the Year 2005 Connaught wins AIM 'Company of the Year' award 2004 West of England Business of the Year Award Winner 2003 Why not visit our website http://www.connaught.plc.uk Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - 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 5.5 and x64 Windows
Thanks for the pointers Mladen. I carried out the steps you outlined, however the service install command fails...as follows; F:\Tomcat5\binservice install Installing the service 'Tomcat5' ... Using CATALINA_HOME:F:\Tomcat5 Using CATALINA_BASE:F:\Tomcat5 Using JAVA_HOME:C:\Program Files\Java\jre1.5.0_10 Using JVM: auto The system cannot execute the specified program. Failed installing 'Tomcat5' service I've made sure the tomcat5 service is completely removed by using sc \\servername delete tomcat5 but I receive the same message running the service install. Should I be specifying any parameters for this? -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: 18 January 2007 14:01 To: Tomcat Users List Subject: Re: Tomcat 5.5 and x64 Windows Darren Kukulka wrote: Mladen, The binary versions you mentioned are the same ones I have already tried. 2 questions; - how do you install the Tomcat service manually? I install Tomcat using the binary download, i.e. apache-tomcat-5.5.20.exe which does not give you the option of NOT installing the Tomcat service. - I'm not sure what you mean by running the install.bat. As mentioned I install using the exe. .exe installer is 32 bit so it'll probably install as WOW64 (WindowsOnWindows64) Unistall the Tomcat. download apache-tomcat-5.5.20.zip and unpack to install dir of your choice. put tomcat5.exe.amd64 as tomcat5.exe inside install dir\bin put tomcat5w.exe.amd64 as tomcat5w.exe inside install dir\bin open cmd.exe (be sure it's 64 bit so, 'Start-run-cmd') cd to the install dir\bin service install That's is :) Regards, Mladen. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Connaught honoured AIM 'Decade of Excellence' Award Connaught awarded Partnering Contractor of the Year 2005 Connaught wins AIM 'Company of the Year' award 2004 West of England Business of the Year Award Winner 2003 Why not visit our website http://www.connaught.plc.uk Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JConsole query
HI There, Just a quick question regarding the JConsole tool we use to monitor Tomcat5 instances - 2 to be precise. We've noticed that within the Memory display window the breakdown of Heap usage shows three areas and their utilisation. The descriptions of each space differs between the servers, even though essentially they are configured identically. They are both running Tomcat 5.5.15 on a Windows 2003 Server and differ slightly with their JVM (one is running the server JVM, the other is running the client JVM). Server 1 - SUN JRE 1.5.0_06-b05 - shows Eden, Survivor and Tenured space names Server 2 - SUN JRE 1.5.0_06-b05 - shows PS Survivor, PS Eden and PS Old Gen space names. Can anybody explain this behaviour to me? Cheers, Darren Connaught honoured AIM 'Decade of Excellence' Award Connaught awarded Partnering Contractor of the Year 2005 Connaught wins AIM 'Company of the Year' award 2004 West of England Business of the Year Award Winner 2003 Why not visit our website http://www.connaught.plc.uk Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
RE: JConsole query
Thanks Jess. We suspected this was the case so we'll consolidate to server JVM. -Original Message- From: Jess Holle [mailto:[EMAIL PROTECTED] Sent: 15 September 2006 13:47 To: Tomcat Users List Subject: Re: JConsole query Darren Kukulka wrote: HI There, Just a quick question regarding the JConsole tool we use to monitor Tomcat5 instances - 2 to be precise. We've noticed that within the Memory display window the breakdown of Heap usage shows three areas and their utilisation. The descriptions of each space differs between the servers, even though essentially they are configured identically. They are both running Tomcat 5.5.15 on a Windows 2003 Server and differ slightly with their JVM (one is running the server JVM, the other is running the client JVM). Server 1 - SUN JRE 1.5.0_06-b05 - shows Eden, Survivor and Tenured space names Server 2 - SUN JRE 1.5.0_06-b05 - shows PS Survivor, PS Eden and PS Old Gen space names. Can anybody explain this behaviour to me? You're getting different different generations because Java 5 is recognizing Server 2 as a server class machine -- due to heap allocation, total memory on the machine and such -- and it's not doing this on Server 1. I must admit I'm a bit confused myself about when each occurs as the documented rules don't seem to actually quite be followed. -- Jess Holle - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Connaught honoured AIM 'Decade of Excellence' Award Connaught awarded Partnering Contractor of the Year 2005 Connaught wins AIM 'Company of the Year' award 2004 West of England Business of the Year Award Winner 2003 Why not visit our website http://www.connaught.plc.uk Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Perm Gen not being released in GC
Hi All, Throughput Garbage collection on a 5.5.15 Tomcat instance is failing to release Old Gen heap space when it becomes full on one of our Windows installations. For the most part GC does release memory - in a typical working day this is an upward trend in terms of the amount of heap reclaimed, gradually becoming a downward trend late in the day. Every now and then JConsole shows Old Gen as having flat-lined. Only a Tomcat restart can rectify the problem. Killing sessions followed by a manual GC does not seem to have an effect. Haven't yet determined whether we need to start looking at the young to old heap allocation ratios - is this the main area I should be looking into? Any thoughts would be appreciated. Cheers, Darren Kukulka Connaught honoured AIM 'Decade of Excellence' Award Connaught awarded Partnering Contractor of the Year 2005 Connaught wins AIM 'Company of the Year' award 2004 West of England Business of the Year Award Winner 2003 Why not visit our website http://www.connaught.plc.uk Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
PS Old Gen filling up...
Hi All, Got a situation here where PS Old Gen within the JVM heap is gradually filling up and locking to a point where GC will not release any of it and the application hangs. Running Tomcat 5.5.15 and SUN JDK 1.5_07. Machine is an 8GB dual Xeon processor Dell 2850. The JVM options are set as follows; -Dcatalina.home=F:\tomcat5 -Dcatalina.base=F:\tomcat5 -Djava.endorsed.dirs=F:\tomcat5\common\endorsed -Djava.io.tmpdir=F:\tomcat5\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=F:\tomcat5\conf\logging.properties -Duser.language=en -Duser.country=GB -Xms1330m -Xmx1330m -XX:+UseParallelGC -XX:ParallelGCThreads=2 -XX:+UseParallelOldGC -XX:+UseAdaptiveSizePolicy -XX:NewSize=400m -XX:MaxNewSize=400m -XX:PermSize=128m -XX:MaxPermSize=128m Has anyone had similar behaviour or can you point me in the right direction? Thanks in advance. Darren Kukulka Connaught honoured AIM 'Decade of Excellence' Award Connaught awarded Partnering Contractor of the Year 2005 Connaught wins AIM 'Company of the Year' award 2004 West of England Business of the Year Award Winner 2003 Why not visit our website http://www.connaught.plc.uk Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
Problem with JVM Old-Gen heap and setting JVM Memory Pool
Hi There! I have a problem with a legacy Tomcat application running on a windows environment where the Old Gen heap space is gradually hitting close to 100%, where it becomes immune to immediate garbage collection and causes the application to become unusable. The environment details are as follow; Platform Windows Server 2003 Enterprise Edition SP1 (8GB RAM) Apache/Tomcat Version 5.5.15 JVM Version 1.5.07 (Server JVM) Database SQL Server 2005 (separate server) Database Connector jTDS 1.2 JDBC driver Tomcat is installed as a service so all JVM parameters are controlled via the Tomcatw.exe. They are as follows -Dcatalina.home=F:\tomcat5 -Dcatalina.base=F:\tomcat5 -Djava.endorsed.dirs=F:\tomcat5\common\endorsed -Djava.io.tmpdir=F:\tomcat5\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=F:\tomcat5\conf\logging.properties -Duser.language=en -Duser.country=GB -Xms1500m -Xmx1500m -XX:+UseParallelGC -XX:ParallelGCThreads=2 -XX:+UseParallelOldGC -XX:+UseAdaptiveSizePolicy -XX:NewSize=400m -XX:MaxNewSize=400m -XX:PermSize=128m -XX:MaxPermSize=128m -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=1234 -Dcom.sun.management.jmxremote.password.file=C:\Program Files\Java\jre1.5.0_06\jre\lib\management\jmxremote.password All of these parameters are entered in the Java Options space in the Tomcat Management tool. Note below that the active values for -Xms and -Xmx appear to be the ones stipulated in Initial Memory Pool and Maximum Memory Pool. One thing I have been trying is to increase the JVM memory pool to take advantage of the memory in this server (nothing else runs on the box). The highest I appear to be able to set it to is about 1350 MB. Reading through some doco I see references to this saying to set it to multiples of 1024. I attempted to set to 2048 MB as the server has more than enough memory to cope. Tomcat refuses to take anything more than 1350 MB! As you can see by my judicious use of GC parameters (!) I have also tried tuning the garbage collector to aggressively clean the Old Gen heap. This settled things down for a while but if the JVM is left unattended for a few hours the Old Gen builds up and sometimes freezes as explained before. Sometimes a manual GC with JConsole helps but this is hardly ideal! GC sure is a barrel-o-fun! Can anybody offer some suggestions to resolve this? Cheers, Darren Kukulka IT Infrastructure Consultant Conntrol Connaught PLC Connaught honoured AIM 'Decade of Excellence' Award Connaught awarded Partnering Contractor of the Year 2005 Connaught wins AIM 'Company of the Year' award 2004 West of England Business of the Year Award Winner 2003 Why not visit our website http://www.connaught.plc.uk Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]