Re: DBCP abandoned trace - unable to understand the leak

2010-11-10 Thread Pid
On 10/11/2010 06:51, sasidhar prabhakar wrote: After changing time out value now I am getting this problem org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object Shall we guess what you set it to? My guess is 7. Am I right? What

Re: DBCP abandoned trace - unable to understand the leak

2010-11-10 Thread sasidhar prabhakar
Sorry for that. I changed it 300 seconds. On Wed, Nov 10, 2010 at 2:12 AM, Pid p...@pidster.com wrote: On 10/11/2010 06:51, sasidhar prabhakar wrote: After changing time out value now I am getting this problem org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot get a connection, pool

Re: DBCP abandoned trace - unable to understand the leak

2010-11-10 Thread Pid
On 10/11/2010 08:29, sasidhar prabhakar wrote: Sorry for that. I changed it 300 seconds. OK What else did you change? [hint hint] p 0x62590808.asc Description: application/pgp-keys signature.asc Description: OpenPGP digital signature

Re: Single webapp multiple contexts

2010-11-10 Thread André Warnier
Hi. Quite apart from all the other answers you already got, check the UrlRewriteFilter at www.tuckey.org, to see if it does not provide an alternative way of doing what you want. Rob Gregory wrote: Hello Tomcat Users, I am trying to create multiple 'dynamic' contexts using just a single

Re: setenv.sh in an individual tomcat catalina base

2010-11-10 Thread André Warnier
Hi Ziggy. Sorry then. I was too lazy to go back to check, and I must have confused your post with another one. Ziggy wrote: Hi Andre, I am using a standard Tomcat installation downloaded from tomcat.apache.org. I am confused as to how you determined that am using a packaged version of

Re: DBCP abandoned trace - unable to understand the leak

2010-11-10 Thread Pid
On 10/11/2010 09:41, sasidhar prabhakar wrote: private static DataSource dataSource; Getting the DataSource shouldn't be an expensive operation, so 'optimising' by retaining a static reference to it doesn't make much sense. Try just getting a fresh DataSource every time - your DB queries are

Re: [OT] Re: DBCP abandoned trace - unable to understand the leak

2010-11-10 Thread Pid
On 04/11/2010 11:09, Peter Crowther wrote: On 4 November 2010 10:54, Mark Thomas ma...@apache.org wrote: On 04/11/2010 05:01, sasidhar prabhakar wrote: I have one doubt. You have a question not a doubt I see this on many forums, and have come to realise it's associated with speakers of at

Re: DBCP abandoned trace - unable to understand the leak

2010-11-10 Thread Pid
On 04/11/2010 15:41, Mikolaj Rydzewski wrote: On Thu, 4 Nov 2010 10:37:25 -0500, Propes, Barry L barry.l.pro...@citi.com wrote: Not sure if it matters or not, but in your SponserSummaryDAO method, it appears you establish the rs as null, but don't ever close it? You might specifically

Re: DBCP abandoned trace - unable to understand the leak

2010-11-10 Thread Mark Thomas
On 10/11/2010 09:02, Pid wrote: On 04/11/2010 12:04, sasidhar prabhakar wrote: dataSource = ConnectionUtil.getDataSource(); } Is the class you posted the only DAO? Could the leak be from another class? Can you post ConnectionUtil.java? Given the SQL seen so far and that some queries

Re: DBCP abandoned trace - unable to understand the leak

2010-11-10 Thread Pid
On 04/11/2010 07:50, sasidhar prabhakar wrote: We are using struts and following DAO pattern. This is the code public String getCountryName(long ipSum){ String name = null; Connection connection = null; PreparedStatement pstmt = null; ResultSet rs = null;

Re: DBCP abandoned trace - unable to understand the leak

2010-11-10 Thread Pid
On 04/11/2010 12:04, sasidhar prabhakar wrote: dataSource = ConnectionUtil.getDataSource(); } Is the class you posted the only DAO? Could the leak be from another class? Can you post ConnectionUtil.java? p 0x62590808.asc Description: application/pgp-keys signature.asc Description:

Re: DBCP abandoned trace - unable to understand the leak

2010-11-10 Thread sasidhar prabhakar
On Wed, Nov 10, 2010 at 3:02 AM, Pid p...@pidster.com wrote: On 04/11/2010 12:04, sasidhar prabhakar wrote: dataSource = ConnectionUtil.getDataSource(); } Is the class you posted the only DAO? Could the leak be from another class? Some other DAOs are there. Which takes more than

Re: DBCP abandoned trace - unable to understand the leak

2010-11-10 Thread sasidhar prabhakar
When I get this problem, I tried the query in DB manually by this query *select count(*) from v$process;* * * The count some times very less, like if total connections are 200 it shows * * some times 60,40,162 like this. On Wed, Nov 10, 2010 at 3:20 AM, Mark Thomas ma...@apache.org wrote: On

Tomcat 7 Feedback on memory leak detection/prevention

2010-11-10 Thread Rohit Kelapure
Dear Tomcat users, I'm impressed by the level of in-depth analysis and actions that have been taken to build leak detection, prevention and remediation in Tomcat 7. I was wondering if users had any feedback on how effective the memory leak detection/prevention features has been in

Tomcat application with memory leak

2010-11-10 Thread Robillard, Greg L
Version: 6.0.26 I currently have 2 apps deployed in my tomcat container. I originally was running tomcat with 1024M of memory. The symptom was the applications would stop responding after approximately 5 days. The log stated there was out of memory errors. Symptoms: 1. Users could not

RE: Tomcat application with memory leak

2010-11-10 Thread Caldarale, Charles R
From: Robillard, Greg L [mailto:greg.l.robill...@lmco.com] Subject: Tomcat application with memory leak In an attempt to resolve the problem, I increased memory to 2048. That doesn't resolve it, it merely postpones it - as you discovered. How can I run 2 tomcat containers on the same

Re: Tomcat application with memory leak

2010-11-10 Thread Pid
On 10/11/2010 14:50, Robillard, Greg L wrote: Version: 6.0.26 I currently have 2 apps deployed in my tomcat container. I originally was running tomcat with 1024M of memory. The symptom was the applications would stop responding after approximately 5 days. The log stated there was out of

Re: Tomcat cluster error (null pointer exc ept) on NioReceiver.java:266 [Solved]

2010-11-10 Thread s.suzzi
Hi, finally i found that people from Security have started a security agent that was killing/screening connection on port 4000, and I didn't know anything, they drive me mad Stefano. Da: Stefano Suzzi s.su...@protesa.it A: Tomcat Users List users@tomcat.apache.org Cc: Data: Tue, 26 Oct 2010

Re: Tomcat 7 Feedback on memory leak detection/prevention

2010-11-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rohit, On 11/10/2010 9:40 AM, Rohit Kelapure wrote: I'm impressed by the level of in-depth analysis and actions that have been taken to build leak detection, prevention and remediation in Tomcat 7. I was wondering if users had any feedback on how

Re: DBCP abandoned trace - unable to understand the leak

2010-11-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sasidhar, On 11/10/2010 3:29 AM, sasidhar prabhakar wrote: Sorry for that. I changed it 300 seconds. Perhaps you could post your entire configuration. It stops us from asking too many questions, and generally gets right to the problem. - -chris

Service Temporary Unavailable! and IIS6 Tomcat 6.0 Connector (isapi_redirect)

2010-11-10 Thread odeneho
My website has crashed again and coming up with the following error when the website and jakarta virtual directories are set up to use the same application pool: Service Temporary Unavailable! The server is temporarily unable to service your request due to maintenance downtime or capacity

CARGO: A tool for easy manipulation of your Java EE server(s)

2010-11-10 Thread S. Ali Tokmen
Hello, Tomcat enthusiasts This is S. Ali Tokmen from the Codehaus CARGO team. I'm sending this short e-mail to tell you about the immediate availability of CARGO 1.0.4. First question, what is CARGO? CARGO is an open source application that can start, stop, configure and deploy applications as

Re: DBCP abandoned trace - unable to understand the leak

2010-11-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 11/10/2010 3:51 AM, Pid wrote: finally { DB.close(rs); DB.close(ps); DB.close(cn); } I've gone further in our code: DB.close(cn, ps, rs); - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using

Re: [OT] SecurityManager and Java Policy Files

2010-11-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I'm resurrecting this thread because I'd like to return my attention to running my webapp under a SecurityManager. On 3/25/2010 4:03 PM, Christopher Schultz wrote: This is off-topic in that it doesn't really have anything to do specifically

Re: [OT] SecurityManager and Java Policy Files

2010-11-10 Thread Mark Thomas
On 10/11/2010 21:15, Christopher Schultz wrote: I'm looking for references that explain the interaction between the SecurityManager itself, the policy, signed code, and the use of AccessController/PrivilegedAction. Online resources and articles as well as dead trees would be fine. My

Re: [OT] SecurityManager and Java Policy Files

2010-11-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 11/10/2010 4:29 PM, Mark Thomas wrote: On 10/11/2010 21:15, Christopher Schultz wrote: Any help would be greatly appreciated. I don't recall ever finding anything that useful. What I can do is condense my limited knowledge into a few

Re: Any tools to detect tomcat services failure, and start it again automatically?

2010-11-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 11/7/2010 2:35 AM, Bill Wang wrote: Thanks to Christopher , Rainer, and Rainer again. I will try to understand the jsvc. But for SMF, because we don't run tomcat as root, I am not sure if SMF can be set and run by normal user. I need

Re: [OT] SecurityManager and Java Policy Files

2010-11-10 Thread Rainer Jung
For debugging purposes, this http://blogs.sun.com/xuelei/entry/fine_granularity_diagnosis_on_security might be useful. And once you succeeded there's always room for improvement, e.g. http://tomcat.apache.org/tomcat-7.0-doc/security-manager-howto.html ;) Regards, Rainer

Re: [OT] SecurityManager and Java Policy Files

2010-11-10 Thread Mark Thomas
On 10/11/2010 21:42, Christopher Schultz wrote: To be explicit, if I want a class (say, DbStuff) to be able to make a database connection yet prevent other classes from doing so, I need to do something like this: public class DbStuff { protected Connection getConnection() {