Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2012-05-31 Thread Pid *
On 30 May 2012, at 23:19, André Warnier a...@ice-sa.com wrote: On Wed, May 30, 2012 at 10:07 AM, Christopher Schultz ch...@christopherschultz.net wrote: .. If my environment and requirements match yours, you'd need 1 * max_pool_size * 66KiB at peak usage. That's about 640MiB for each

Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2012-05-31 Thread Pid *
On 31 May 2012, at 00:49, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 5/30/12 6:18 PM, André Warnier wrote: Taking the same hypothetical case and figures : Assuming that you need a total of (1 * 4 connections) =

non blocking Websockets?

2012-05-31 Thread Christian Finckler
Hello, as far I understood, the websocket implementation of tomcat is using one thread per client. Is there also a possibility to configure it to use non blocking IO? Then it should be easier to serve lots of connections without creating unlimited threads. Thank you, Chris

Re: non blocking Websockets?

2012-05-31 Thread Mark Thomas
On 31/05/2012 10:02, Christian Finckler wrote: Hello, as far I understood, the websocket implementation of tomcat is using one thread per client. Is there also a possibility to configure it to use non blocking IO? No. That has not yet been implemented. It shouldn't be too hard provided that

Re: how to test hash collision security fix in tomcat 7.1

2012-05-31 Thread Konstantin Kolinko
2012/5/31 manjesh manjes...@gmail.com: Hi, The exact version of tomcat I am working with is 7.0.27 I am verifying the fix discussed here http://news.softpedia.com/news/Apache-Tomcat-Workaround-for-Hashtable-Collision-DoS-Vulnerability-243544.shtml Here is the snippet of implementation  [

Re: thread dump of Tomcat7.0.27.exe on is not working

2012-05-31 Thread Konstantin Kolinko
2012/5/30 Takeshi.Yoshida takeshi.yoshid...@yahoo.com: Hi, I installed Tomcat7.0.27.exe on Windows7 and Windows2008R2. The Tomcat almost works fine. However, when I right click on the Tomcat service icon on system tray and select menu Thread Dump, I get a windows message and it's saying:

Re: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-31 Thread Konstantin Kolinko
2012/5/30 Hedrick, Brooke - 43 brooke.hedr...@rainhail.com: (...) So far, my options point to making changes to the BasicDataSource to provide a way to set closed=false or make the private method below public with a change to set closed=false.    /**     * Not used currently     */    

Fix for java.lang.VerifyError in tomcat 7.0.19 all the way thru tomcat 7.0.27!!

2012-05-31 Thread Anjan Bacchu
Hi all, I've been a tomcat user for about 10 years -- starting with 3.x. So thanks the user and dev community for all the help. I recently tried moving our appserver from 5.5 to 7. as soon as I deployed our webapp to tomcat 7.0.27 and tried the app, I got a java.lang.VerifyError. down below is

Re: tomcat jdbc pool, creating a pool of pools, single connection memory footprint

2012-05-31 Thread S Ahmed
It would be easier if all databases were hosted by a single instance of MySQL -- then you could use Tomcat-pool's feature of being able to provide credentials when obtaining connections from the pool -- and get the right database. That way, a much smaller number of connections could be maintained

Re: Fix for java.lang.VerifyError in tomcat 7.0.19 all the way thru tomcat 7.0.27!!

2012-05-31 Thread Konstantin Kolinko
2012/5/31 Anjan Bacchu anjan@gmail.com: Hi all,  I've been a tomcat user for about 10 years -- starting with 3.x. So thanks the user and dev community for all the help. I recently tried moving our appserver from 5.5 to 7. as soon as I deployed our webapp to tomcat 7.0.27 and tried the

Re: thread dump of Tomcat7.0.27.exe on is not working

2012-05-31 Thread Takeshi.Yoshida
Hi, Thanks for your replies and help, Chris and Konstantin. I watch below link from now on. Best Regards, Takeshi Yoshida (2012/05/31 20:56), Konstantin Kolinko wrote: 2012/5/30 Takeshi.Yoshidatakeshi.yoshid...@yahoo.com: Hi, I installed Tomcat7.0.27.exe on Windows7 and Windows2008R2. The

RE: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-31 Thread Hedrick, Brooke - 43
Chris, We don't have high load applications for the most part so it is pretty common to have a MaxActive set to around 5 or 10. We monitor applications to watch for high-water marks to make sure we keep 10-20% headroom on for free datasource connections. Our release cycle has us releasing

RE: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-31 Thread Hedrick, Brooke - 43
Thanks Konstantin. I made the change locally, slightly different than what I suggested. I performed some load tests and called the now public restart() method. I didn't encounter any exceptions and the pools reset as expected. This is my work-around though. How do you reset or resize

Re: Fix for java.lang.VerifyError in tomcat 7.0.19 all the way thru tomcat 7.0.27!!

2012-05-31 Thread Anjan Bacchu
Hi Konstatin, Thanks very much for the quick response. ChLogin.jsp : It is our own code -- mostly does some simple java scriptlet which do jsp:forwarding to other JSPs. -- about 150 lines of code. No, we don't precompile the JSPs. We deployed other apps to this same tomcat and they work just

transport CONFIDENTIAL based on remote ip/host filter?

2012-05-31 Thread Timothy J Schumacher
Hi, We are using Apache Tomcat 6.0.35 with # java -version java version 1.6.0_30 Java(TM) SE Runtime Environment (build 1.6.0_30-b12) Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing) in redhat linux. I am wondering if there is a way to use transport CONFIDENTIAL for all

Re: non blocking Websockets?

2012-05-31 Thread Christian Finckler
Am 31.05.2012 11:09, schrieb Mark Thomas: On 31/05/2012 10:02, Christian Finckler wrote: Hello, as far I understood, the websocket implementation of tomcat is using one thread per client. Is there also a possibility to configure it to use non blocking IO? No. That has not yet been

RE: non blocking Websockets?

2012-05-31 Thread Filip Hanik (mailing lists)
You can achieve that right now. Use the NIO connector, And then set up the write buffer: Connector protocol=org.apache.coyote.http11.Http11NioProtocol socket.txBufSize=set socket buffer size in bytes here The only blocking aspect the connector actually has is to put the

Re: Fix for java.lang.VerifyError in tomcat 7.0.19 all the way thru tomcat 7.0.27!!

2012-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anjan, On 5/31/12 12:28 PM, Anjan Bacchu wrote: Do you suggest that the Eclipse compiler developers be told about this bug so they can fix it in the next release ? You're talking to them already ;) - -chris -BEGIN PGP SIGNATURE- Version:

RE: jk 1.2.36 throwing 503/sendfull/cping errors

2012-05-31 Thread Anthony J. Biacco
Thanks for the fix btw -Tony -Original Message- From: Mladen Turk [mailto:mt...@apache.org] Sent: Tuesday, May 29, 2012 11:39 AM To: users@tomcat.apache.org Subject: Re: jk 1.2.36 throwing 503/sendfull/cping errors On 05/29/2012 07:28 PM, Anthony J. Biacco wrote: Trunk works. Cool.

Re: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brooke, On 5/31/12 11:51 AM, Hedrick, Brooke - 43 wrote: Our release cycle has us releasing many applications on many JVMs every week. From time to time, these applications have issues in them where someone has made a code change that requires

Re: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brooke, On 5/31/12 11:56 AM, Hedrick, Brooke - 43 wrote: /** * Not used currently */ protected boolean restarting = false; // bth new public void restart() { try { restarting = true; // bth new try { close(); } finally { restarting = false;

Re: transport CONFIDENTIAL based on remote ip/host filter?

2012-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 5/31/12 1:16 PM, Timothy J Schumacher wrote: I am wondering if there is a way to use transport CONFIDENTIAL for all hosts that are not localhost? I am guessing the servlet spec does not allow this, it seems to be all or none in the

Re: transport CONFIDENTIAL based on remote ip/host filter?

2012-05-31 Thread Konstantin Kolinko
2012/5/31 Timothy J Schumacher tim.schumac...@colorado.edu: Hi, We are using Apache Tomcat 6.0.35 with # java -version java version 1.6.0_30 Java(TM) SE Runtime Environment (build 1.6.0_30-b12) Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing) in redhat linux. I am

RE: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-31 Thread Hedrick, Brooke - 43
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, May 31, 2012 2:27 PM To: Tomcat Users List Subject: Re: Question about resetting datasources and changes to the BasicDataSource.close() method -BEGIN PGP SIGNED MESSAGE-

Re: Question about resetting datasources and changes to the BasicDataSource.close() method

2012-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brooke, On 5/31/12 3:53 PM, Hedrick, Brooke - 43 wrote: Are you just concerned about the restart() being called by more than 1 thread since the restarting member variable isn't protected? Yes. If so, I was looking for a short term, simple, fix.

Re: transport CONFIDENTIAL based on remote ip/host filter?

2012-05-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 5/31/12 3:30 PM, Konstantin Kolinko wrote: 2012/5/31 Timothy J Schumacher tim.schumac...@colorado.edu: Hi, We are using Apache Tomcat 6.0.35 with # java -version java version 1.6.0_30 Java(TM) SE Runtime Environment (build

mod_jk2 question

2012-05-31 Thread 이재만
Thanks in advance.Currently my site is being used in the tomcat + apache.Version 2.0 uses Apache, Tomcat will use the point-to-5.Airline reservation system, which during use, the customer booking the reservation there is a duplicate of the trouble it hurts.During which we use mod_jk2, default

Re: mod_jk2 question

2012-05-31 Thread Konstantin Kolinko
2012/6/1 이재만 leejaeman...@naver.com: Thanks in advance.Currently my site is being used in the tomcat + apache.Version 2.0 uses Apache, Tomcat will use the point-to-5.Airline reservation system, which during use, the customer booking the reservation there is a duplicate of the trouble it

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-05-31 Thread Kiran Badi
Ok I did it this way in TC 7.0.27 as I decided not to touch Netbeans setup with 7.0.11( I had messed up TC7.0.11 after doing several trial and error stuff,felt real pain) I have TC7.0.27 running as window service which I use it deploy my latest build everyday. In server xml, I added below

Re: Fix for java.lang.VerifyError in tomcat 7.0.19 all the way thru tomcat 7.0.27!!

2012-05-31 Thread Anjan Bacchu
Hi Chris, Thank you. Do you/they need any additional info to help fix the bug ? Thanks again, BR, ~A On Thu, May 31, 2012 at 11:42 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anjan, On 5/31/12 12:28 PM, Anjan Bacchu