Overriding Close method of a Output print writer through HttpServletResponseWrapper

2013-02-02 Thread Arnab Ghosh
Hi, I need a help for the following problem -  I have a web application where cookies are getting added multiple times and because of that response header is becoming big containing many duplicate cookies. Now the web application is so big that it is nearly impossible to correct those cookie

Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread chris derham
In the Java world, most people would only call it a consider it a cluster if the app servers actually know about each other -- for instance, if you are using session replication. IMO session replication is a dog, and there are better ways to achieve similar goals that yield much higher

Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread Miguel González Castaños
On 01/02/2013 20:08, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zoran, On 1/31/13 8:36 PM, Zoran Avtarovski wrote: We have a application running on the latest Tomcat7 and we are getting a server crash or becoming unresponsive. This occur every few days at no

Re: Different webapp paths on different hosts

2013-02-02 Thread bxqdev
On 1/28/2013 7:13 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 bxqdev, On 1/26/13 1:09 AM, bxqdev wrote: On 1/26/2013 1:05 AM, Christopher Schultz wrote: Dude, On 1/25/13 12:38 AM, bxqdev wrote: i want to have one instance of webapp, No problem.

Re: Different webapp paths on different hosts

2013-02-02 Thread bxqdev
On 1/28/2013 7:11 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 bxqdev, On 1/26/13 3:04 PM, bxqdev wrote: On 1/26/2013 9:36 PM, Caldarale, Charles R wrote: From: cjder...@gmail.com [mailto:cjder...@gmail.com] On Behalf Of chris derham Subject: Re: Different

Re: Different webapp paths on different hosts

2013-02-02 Thread chris derham
To my mind if you deploy the app as ROOT.war, as long as DNS is configured correctly, that single context will serve responses to http://app1.com/ and http://app2.com/. This appears solves the explicit requirement stated above. But the OP refuses to supply any information about why that's

Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread Zoran Avtarovski
Thanks for the advice. All libraries are within the apps WEB-INF folder. It also doesn't appear to be a memory leak. Typically I would expect memory use to increase over time with a memory leak, but our app shows no increase just a sharp spike to max allocated memory prior to becoming

Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread Edson Richter
Em 03/02/2013 01:35, Zoran Avtarovski escreveu: Thanks for the advice. All libraries are within the apps WEB-INF folder. It also doesn't appear to be a memory leak. Typically I would expect memory use to increase over time with a memory leak, but our app shows no increase just a sharp spike to

Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread Zoran Avtarovski
I'm using the Sun JVM 1.6.0_31-b04. We had other performance issues with openJDK. Z. On 3/02/13 2:41 PM, Edson Richter edsonrich...@hotmail.com wrote: Em 03/02/2013 01:35, Zoran Avtarovski escreveu: Thanks for the advice. All libraries are within the apps WEB-INF folder. It also doesn't

Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread Zoran Avtarovski
Thanks for the reply Chris, The crash is more a hang than a crash as we don't get OOME. The app just stops responding and the monitoring data shows spikes in memory and CPU to 100% and then nothing. I can't find anything in the linux system logs or in the tomcat or java logs. My hope is that

Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread Zoran Avtarovski
Hi Edson, We do have some background threads as we use Quartz for scheduling tasks but we haven't had any issues with it in the past. I also checked the monitoring and I'm seeing anything strange during the execution of the scheduled tasks. Z.

Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread Edson Richter
Em 03/02/2013 02:01, Zoran Avtarovski escreveu: Hi Edson, We do have some background threads as we use Quartz for scheduling tasks but we haven't had any issues with it in the past. I also checked the monitoring and I'm seeing anything strange during the execution of the scheduled tasks. Z.

Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread Zoran Avtarovski
Thanks Miguel, This is what I also suspect, but I can't see any evidence. The server has gone 10 days under heavy loads without a glitch and then it will hang a couple of times in the next few days with no apparent rhyme or reason. Z. On 3/02/13 5:56 AM, Miguel González Castaños

Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread Zoran Avtarovski
Hi Howard, The move to linux was part of a move in-house for our client as the web services are only accessible behind the firewall. My gut feeling is that the issue isn't related to the WS as they run on a scheduled task 3 times a day. I think the issue lies in our app and struggling with not

Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread Edson Richter
Just occurred to me: Linux has one feature that Windows doesn't: the OOM killer. When happens, normally you get a message in log. Have you checked that? If not, there is a little introduction here: http://linuxdevcenter.com/pub/a/linux/2006/11/30/linux-out-of-memory.html?page=1 Also, I had

Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread Mark Eggers
On 2/2/2013 8:07 PM, Zoran Avtarovski wrote: Thanks Miguel, This is what I also suspect, but I can't see any evidence. The server has gone 10 days under heavy loads without a glitch and then it will hang a couple of times in the next few days with no apparent rhyme or reason. Z. On

Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread Igor Cicimov
On 03/02/2013 3:17 PM, Zoran Avtarovski zo...@sparecreative.com wrote: Hi Howard, The move to linux was part of a move in-house for our client as the web services are only accessible behind the firewall. My gut feeling is that the issue isn't related to the WS as they run on a scheduled