Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-16 Thread Pid
On 16/11/2010 05:08, Brian wrote: I still have to find the reason of the leak. Tomcat attempts to find notify you of potential memory leaks. You reported messages in your logs at app reload. Did you tell us what they are yet? p 0x62590808.asc Description: application/pgp-keys

Re: Tomcat Going down Frequently

2010-11-16 Thread Pid
On 16/11/2010 07:34, Amol Puglia wrote: Hello Pid, Thanks for the updates.It would be great if you could let us know whether the issue is in application server or application. Well, the problem class isn't in an org.apache package, it's in a com.ericsson package. Is that your code?

Re: Tomcat Going down Frequently

2010-11-16 Thread André Warnier
Amol Puglia wrote: Hello Pid, Thanks for the updates.It would be great if you could let us know whether the issue is in application server or application. Also we are using apache to load balance tomcat instances using following modules. You most probably are /not/ using all of the

RE: the tomcat encoding

2010-11-16 Thread Rob Gregory
Hi Xu, Encoding is/can be a real pain. You have to ensure it is consistent throughout the web application to stand any chance. Start with the server.xml with the following declaration:- Connector port=80 redirectPort=443 URIEncoding=UTF-8 useBodyEncodingForURI=true / I also use a filter to set

Re: After manager says that there was a leak, how to use a profiler?

2010-11-16 Thread Mark Thomas
On 16/11/2010 04:12, Brian wrote: Maybe my question sounded too vague and repetitive. What I meant is something like this Is the a class loader (or something like that) than I should start analyzing? I mean, is there a route I should follow in order to see which objects are stucked? If the

Re: the tomcat encoding

2010-11-16 Thread Mark Thomas
On 16/11/2010 05:59, xu cheng wrote: so ,does anyone know how to got to encoding of the tomcat. or it was just iso-8859-1 and cannot be changed? http://wiki.apache.org/tomcat/FAQ/CharacterEncoding Mark - To unsubscribe,

Re: Tomcat Going down Frequently

2010-11-16 Thread Amol Puglia
Hello Andre, Thanks for the updates. I am not using mod_jk , I am using proxy modules for redirecting request from apache to tomcat. As you said that there is problem in application code, Is there anything we can point out where exactly is the problem in the code or configuration? --- On Tue,

RE: Shutting down one instance of tomcat 6 from a listener

2010-11-16 Thread Patrick Sauts
It works just fine doing it from the ServletContextListener. Thx a lot. But I was wondering how to do it outside of the application itself? Patrick Sauts. -Original Message- From: Pid [mailto:p...@pidster.com] Sent: lundi 15 novembre 2010 12:44 To: Tomcat Users List Subject: Re:

Re: Tomcat Going down Frequently

2010-11-16 Thread André Warnier
Amol Puglia wrote: Hello Andre, Thanks for the updates. I am not using mod_jk , I am using proxy modules for redirecting request from apache to tomcat. Ok, sorry, I confused your post with another one. But anyway, your configuration shows a whole lot of proxy modules, many of which do not

Re: Shutting down one instance of tomcat 6 from a listener

2010-11-16 Thread Pid
On 16/11/2010 10:46, Patrick Sauts wrote: It works just fine doing it from the ServletContextListener. Thx a lot. But I was wondering how to do it outside of the application itself? Assuming you can tell if the app is in a fault condition, you can use JMX to start, stop reload apps. p

Re: Client not able with perform client-cert authentication with Tomcat 6.0.29 on APR

2010-11-16 Thread Goo Sam Kong
Hi Mark, Thank you for the settings. I am not sure what is the APR/native connector version, I am using the default APR/native connector in 6.0.29 (I do not set/change APR on my Windows machine). I am not sure why the client certificate authentication failed when my client certificate was signed

RE: After manager says that there was a leak, how to use a profiler?

2010-11-16 Thread Brian
Hi Mark, I read your information, which I will quote here: 1. Find an app that you can't reload without OOME 2. Get a profiler - I like Yourkit Full disclosure: they give ASF committers a free copy 3. Reload you app once 4. Use the profiler to look for instances of WebappClassLoader 5. Look

RE: Shutting down one instance of tomcat 6 from a listener

2010-11-16 Thread Patrick Sauts
-Original Message- From: Pid [mailto:p...@pidster.com] Sent: mardi 16 novembre 2010 13:34 To: Tomcat Users List Subject: Re: Shutting down one instance of tomcat 6 from a listener On 16/11/2010 10:46, Patrick Sauts wrote: It works just fine doing it from the ServletContextListener.

Tomcat 6.0.29 Cookie.getMaxAge() always returns -1 regardless of actual value of maximum age

2010-11-16 Thread Igor Barkon
I run Tomcat 6.0.29 on Windows XP and IE 8.0.6001.18702. I noticed that getMaxAge() method of any cookie always returns -1 even for persistent cookie with real positive value of maximum age. IE treats this cookie correctly: cookie persists for amount of seconds specified by setMaxAge method.

Re: Usage of Tomcat SSL in client-side class

2010-11-16 Thread André Warnier
Moley Harey wrote: Hello folks, I have a set of web services installed in Tomcat 6.0.26 that I would like to access using HTTPs, I have following the instructions in Tomcat web side to set up JSSE support and now I can access the web services using SSH. My question is what do I have to do in

Re: Tomcat Going down Frequently

2010-11-16 Thread André Warnier
Ok, so now we know roughly what your configuration is like, and there is not something obviously wrong with it (to me). Now the question is back as follows : In WARNING: Exception processing manager org.apache.catalina.session.standardmana...@a20981 background process

Buffer Overflow

2010-11-16 Thread Tyson Lowery
I'm running Tomcat 6.0.29 I'm seeing this in my catalina.out log file. I've been able to narrow the problem to a single JSP page, and the problem only happens with a single user when that user is using Windows XP/FireFox 3.6.12. I've tested the page with XP/Firefox 3.6.3 and can't

Re: the tomcat encoding

2010-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob, On 11/16/2010 4:31 AM, Rob Gregory wrote: I also use a filter to set the following:- request.setCharacterEncoding(UTF-8); response.setContentType(text/html; charset=UTF-8); response.setCharacterEncoding(UTF-8); FWIW, you shouldn't

Re: After manager says that there was a leak, how to use a profiler?

2010-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 11/16/2010 10:42 AM, Brian wrote: If I choose the report of Paths from GC roots from it, I see LOTS of items! And all of them have the loader of indication. All the items are classes programmed by me, so I guess I'm guilty, and not the

Re: Tomcat Going down Frequently

2010-11-16 Thread Pid
On 16/11/2010 14:59, Amol Puglia wrote: Hello Andre, We are proxying request from apache to tomcat using mod_proxy and mod_proxy_ajp Following is the load balancer configuration in apache. kindly let me know in case you need further details. # Port 80 Listen server_name:80

Re: Tomcat 6.0.29 Cookie.getMaxAge() always returns -1 regardless of actual value of maximum age

2010-11-16 Thread Pid
On 16/11/2010 16:58, Igor Barkon wrote: I run Tomcat 6.0.29 on Windows XP and IE 8.0.6001.18702. I noticed that getMaxAge() method of any cookie always returns -1 even for persistent cookie with real positive value of maximum age. IE treats this cookie correctly: cookie persists for

Re: Tomcat 6.0.29 Cookie.getMaxAge() always returns -1 regardless of actual value of maximum age

2010-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Igor, On 11/16/2010 11:58 AM, Igor Barkon wrote: I run Tomcat 6.0.29 on Windows XP and IE 8.0.6001.18702. I noticed that getMaxAge() method of any cookie always returns -1 even for persistent cookie with real positive value of maximum age. IE

RE: Using mod_jk in cluster environment responds HTTP 500

2010-11-16 Thread Anthony J. Biacco
worker.list=loadbal_hub_prod,jkstatus,hub0,hub1 This is wrong. If the workers are already balanced (by the loadbal_hub_prod balancer), then they should not be separately listed in worker.list. Correct : worker.list=loadbal_hub_prod,jkstatus Well, assuming he doesn't have any

RE: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-16 Thread Brian
Hu Pid, Now that I looked, I did find something! Nov 15, 2010 8:37:28 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the

Re: Tomcat 6.0.29 Cookie.getMaxAge() always returns -1 regardless of actual value of maximum age

2010-11-16 Thread Igor Barkon
Sorry, may be I use too many words to explain the problem. I just tried to be more specific. I run development. Everything (including Tomcat itself) is located in the same computer. Tomcat is configured to port . I used example software provided by Tomcat and located in Tomcat webapps

Re: Tomcat 6.0.29 Cookie.getMaxAge() always returns -1 regardless of actual value of maximum age

2010-11-16 Thread Igor Barkon
I created cookie as a parameter on IE and sent it to Tomcat. On server the parameter was transformed to a cookie and sent back to IE. Next time when IE sent new request to the server, the old cookie is part of Request (now it is cookie, nort parameter), so I can display this information to

Re: Tomcat Going down Frequently

2010-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/16/2010 1:21 PM, André Warnier wrote: WARNING: Exception processing manager org.apache.catalina.session.standardmana...@a20981 background process java.lang.IllegalStateException: getAttributeNames: Session already invalidated

RE: After manager says that there was a leak, how to use a profiler?

2010-11-16 Thread Brian
All my JARs are in the shared directory that Tomcat has. I don't upload them in the WAR everytime I deploye again my app. Is that a problem? I have just read somewhere do it could actually be a problem, that when they are shared among the apps, bad things happen. I have basically two apps running,

RE: After manager says that there was a leak, how to use a profiler?

2010-11-16 Thread Caldarale, Charles R
From: Brian [mailto:bbprefix-m...@yahoo.com] Subject: RE: After manager says that there was a leak, how to use a profiler? All my JARs are in the shared directory that Tomcat has. Is that a problem? Yes, that's a problem. You very likely have some references in the shared classes that

Re: Using mod_jk in cluster environment responds HTTP 500

2010-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rikslovein, On 11/15/2010 12:47 AM, rikslovein wrote: Server.xml Connector port=8009 address=localhost enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Is redirectPort=8443 correct for your environment? This has nothing to do with your

Re: Using mod_jk in cluster environment responds HTTP 500

2010-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rikslovein, On 11/15/2010 5:33 AM, rikslovein wrote: None of my tomcat is configured with HTTP connector. They are configured only for AJP. Does the jkmanager requires this HTTP port? Do you mean the manager webapp that comes with Tomcat? No, it

Re: Tomcat 6.0.29 using more and more RAM until it collapses?

2010-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 11/16/2010 3:23 PM, Brian wrote: Nov 15, 2010 8:37:28 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [] is still processing a request that has yet to finish. This is very likely to

Re: Tomcat 6.0.29 Cookie.getMaxAge() always returns -1 regardless of actual value of maximum age

2010-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Igor, On 11/16/2010 3:40 PM, Igor Barkon wrote: I created cookie as a parameter on IE and sent it to Tomcat. On server the parameter was transformed to a cookie and sent back to IE. Next time when IE sent new request to the server, the old

Re: Usage of Tomcat SSL in client-side class

2010-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Moley, On 11/16/2010 9:33 AM, Moley Harey wrote: My question is what do I have to do in my Java client-side classes to work with HTTPS requests [to] Tomcat? Do I have to accept somehow the certificate provided by Tomcat in my Java classes? Yes.

Re: Buffer Overflow

2010-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tyson, First, let me say that I know almost nothing about the AJP protocol, but reading-through the code from the inside out has triggered a memory. See below. On 11/16/2010 1:26 PM, Tyson Lowery wrote: I'm running Tomcat 6.0.29 Thanks! I'm

Re: Tomcat log files

2010-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tobias, On 11/15/2010 10:43 AM, Tobias Crefeld wrote: Am Tue, 09 Nov 2010 16:06:14 -0500 schrieb Christopher Schultz ch...@christopherschultz.net: Have you correctly replaced lib/tomcat-juli.jar and installed lib/tomcat-juli-adapters.jar? If

Re: Tomcat Going down Frequently

2010-11-16 Thread Pid
On 16/11/2010 21:15, Christopher Schultz wrote: 2. There is no way for a client to check the validity of an HttpSession object before calling getAttribute (or setAttribute for that matter) The HttpSession interface javadoc says For session that are invalidated or expire, notifications are

RE: After manager says that there was a leak, how to use a profiler?

2010-11-16 Thread Brian
Thanks a lot for the info Konstantin. I will read it asap! -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Monday, November 15, 2010 11:08 PM To: Tomcat Users List Subject: Re: After manager says that there was a leak, how to use a profiler?

Re: the tomcat encoding

2010-11-16 Thread xu cheng
hi: thanks, the problem is that my tomcat interact with other server and the server use somekind of encoding that is different. and after the encoding is transfered .it works now thanks 2010/11/17 Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Placing JARs in ..../tomcat/shared/lib causes leaks when stopping apps?

2010-11-16 Thread Brian
Hi, I'm using Tomcat 6.0.29. I have two identical apps running at the same time. I mean, they use exactly the same WAR, but each one runs in a different web domain. When I stop/redeploy one of the apps, very often I get the famous leak problem, because of the webclassloader not being able

RE: Placing JARs in ..../tomcat/shared/lib causes leaks when stopping apps?

2010-11-16 Thread Caldarale, Charles R
From: Brian [mailto:bbprefix-m...@yahoo.com] Subject: Placing JARs in /tomcat/shared/lib causes leaks when stopping apps? Something like this for each app, the webapploader pretendes to unload all the classes, and if they are shared it is not possible and then the leak happens.

RE: Placing JARs in ..../tomcat/shared/lib causes leaks when stopping apps?

2010-11-16 Thread Brian
Thanks chuck, now I understand it. My JARs are the regular type of JAR, that doesn't have to be shared by all the apps for some reason. I didn't understand the real pourpose of that directory indeed. I will change it now. -Original Message- From: Caldarale, Charles R

Re: Using mod_jk in cluster environment responds HTTP 500

2010-11-16 Thread rikslovein
Chris all, Thanks for your help and your responses once again. I now solved the problem. The problem was with the jkmanager URL I was using in the code. I think there is a change in URL attributes from older version. The current version uses vwa, vwr and vwf (which was coded as wa, wr wf

Request count increases drastically in tomcat 6.0.29

2010-11-16 Thread rujin raj
Hi, I am using an application in tomcat 6.0.29 and the java version is 1.6 64 bit. I am facing the problem in my application when the request count is more(this i am watching through Lambda probe). Please give me some idea why this request count is keeps increasing and how to destroy the idle

Re: Placing JARs in ..../tomcat/shared/lib causes leaks when stopping apps?

2010-11-16 Thread Mikolaj Rydzewski
On Tue, 16 Nov 2010 22:55:10 -0500, Brian bbprefix-m...@yahoo.com wrote: I have two identical apps running at the same time. I mean, they use exactly the same WAR, but each one runs in a different web domain. [...] You should rather change your application to be aware of domain it runs