Re: Tomcat 8 DB Connection Pooling

2015-06-11 Thread Filip Hanik
Configuration reference: https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html On Thu, Jun 11, 2015 at 6:58 PM, Filip Hanik wrote: > set the properties > > logAbandoned="true" > removeAbandoned="true" > removeAbandonedTimeout="60" (value is in

Re: Tomcat 8 DB Connection Pooling

2015-06-11 Thread Filip Hanik
set the properties logAbandoned="true" removeAbandoned="true" removeAbandonedTimeout="60" (value is in seconds, should be larger than your longest running transaction) timeBetweenEvictionRunsMillis="15000" (value is in milliseconds) if you have a leak (meaning your code is not returning the conne

Re: Connection leak Tomcat7 and Oracle

2015-02-24 Thread Filip Hanik
unless DBCP changed of course. I would add ​the following property to your element​ factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html On Tue, Feb 24, 2015 at 3:47 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -

Re: Tomcat 8 SQL Connection Problems

2015-02-10 Thread Filip Hanik
Try http://tomcat.apache.org/tomcat-8.0-doc/jdbc-pool.html On Tue, Feb 10, 2015 at 10:22 AM, Jerry Malcolm wrote: > Has something changed on TC 8 requiring some different configuration for > SQL connections? I just installed 8.0.15 on three servers (see last week's > post regarding errors on 8.

Re: tomcat-jdbc PoolCleaner deadlock

2015-02-06 Thread Filip Hanik
! > > > > Thanks, > > > > Robert > > > > 2015-01-30 16:31 GMT-03:00 Filip Hanik : > > > > Robert, kindly let us know if disabling the pool cleaner does resolve > your > >> dead lock > >> > >> Filip > >> > &

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Filip Hanik
idationQuery()!=null); return result;" [1] > > Best regards. > > > [1] > > https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/tomcat/jdbc/pool/PoolConfiguration.html#isPoolSweeperEnabled() > > 2015-01-30 16:13 GMT-03:00 Filip Hanik : > > > Are you seeing tha

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Filip Hanik
pool cleaner it should yield better results. > >> > >> The documention[1] says: > >> > >> "This value should not be set under 1 second" > >> > >> Isn't true? > >> > >> > >> > >> 2015-01-30 15:07 GMT-03:00 Filip Hani

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Filip Hanik
fhanik/jdbc-pool/jdbc-pool.html > > 2015-01-30 15:15 GMT-03:00 Robert Anderson : > > > Filip, > > > > however, disabling the pool cleaner it should yield better results. > > > > The documention[1] says: > > > > "This value should not be set under

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Filip Hanik
since intersys already does pooling however, disabling the pool cleaner it should yield better results. On Fri, Jan 30, 2015 at 11:02 AM, Filip Hanik wrote: > Disable the pool cleaner > > timeBetweenEvictionRunsMillis=0 > > >

Re: tomcat-jdbc PoolCleaner deadlock

2015-01-30 Thread Filip Hanik
Disable the pool cleaner timeBetweenEvictionRunsMillis=0

Re: Occasional long wait for a JDBC connection

2015-01-14 Thread Filip Hanik
The timeout happens in your SocketRead, this is configurable (default is forever) http://dev.mysql.com/doc/connector-j/en/connector-j-reference-configuration-properties.html what appears to be happening is that somewhere there isn't a reset packet sent from the server to the JDBC driver. Setting a

Re: Help! Tomcat crashing on takeoff

2014-12-12 Thread Filip Hanik
ce" export JAVA_OPTS and hopefully that way it takes into effect On Fri, Dec 12, 2014 at 6:47 PM, James H. H. Lampert < jam...@touchtonecorp.com> wrote: > On 12/12/14 5:36 PM, Filip Hanik wrote: > > ​We're not looking for change, we're looking for the output, that may

Re: Help! Tomcat crashing on takeoff

2014-12-12 Thread Filip Hanik
On Fri, Dec 12, 2014 at 3:55 PM, James H. H. Lampert < jam...@touchtonecorp.com> wrote: > > On Fri, Dec 12, 2014 at 2:26 PM, Filip Hanik wrote: > >> >> possibly add >>> >>> -verbose:class >>> >>> to your JVM options and see if that

Re: Help! Tomcat crashing on takeoff

2014-12-12 Thread Filip Hanik
or -Dibm.cl.verbose=ClassToTrace On Fri, Dec 12, 2014 at 2:26 PM, Filip Hanik wrote: > possibly add > > -verbose:class > > to your JVM options and see if that yields anything > > On Fri, Dec 12, 2014 at 1:44 PM, Christopher Schultz < > ch...@christopherschultz.net&

Re: Help! Tomcat crashing on takeoff

2014-12-12 Thread Filip Hanik
possibly add -verbose:class to your JVM options and see if that yields anything On Fri, Dec 12, 2014 at 1:44 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > James, > > On 12/12/14 3:19 PM, James H. H. Lampert wrote: > > On

Re: Help! Tomcat crashing on takeoff

2014-12-12 Thread Filip Hanik
Couple of things that comes to mind 1. the 'java' binary that gets executed is actually not the one you think it is 2. the file /wintouch/tomcat/bin/bootstrap.jar is corrupted or not readable by the JVM hence it can't find the class Filip On Fri, Dec 12, 2014 at 11:27 AM, James H. H. Lampert

Re: Tomcat JDBC connection pool: Using initSql together with validatorClassName

2014-12-03 Thread Filip Hanik
You should be able to run init SQL commands yourself in your custom validator https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/tomcat/jdbc/pool/Validator.html On Wed, Dec 3, 2014 at 11:42 AM, Wes Clark wrote: > These actions seems to incorrectly conflated in the code. I'd also like >

Re: Tomcat JDBC pool - too many connections in TIME_WAIT state

2014-11-05 Thread Filip Hanik
this is part of the TCP lifecycle, you can adjust this timeout yourself on the Operating system level http://www.cs.northwestern.edu/~agupta/cs340/project2/TCPIP_State_Transition_Diagram.pdf cat /proc/sys/net/ipv4/tcp_fin_timeoutecho 15 > /proc/sys/net/ipv4/tcp_fin_timeout On Wed, Nov 5, 2014 a

Re: Debugging Tomcat JDBC pool disconnects.

2014-09-24 Thread Filip Hanik
If you implement a JdbcInterceptor, the method JdbcInterceptor.disconnected will always be called. If the disconnect is permanent, then JdbcInterceptor.reset(null,null) will be called after disconnected On Tue, Sep 23, 2014 at 9:41 AM, Todd Chapman wrote: > Hi, > > My application uses the Tomcat

Re: [ANN] New committer: Felix Schumacher

2014-09-19 Thread Filip Hanik
Welcome aboard!! Start committing :) On Fri, Sep 19, 2014 at 6:28 AM, Tim Funk wrote: > +1 Awesome! Welcome! > > -Tim > > On Fri, Sep 19, 2014 at 3:49 AM, Rainer Jung wrote: > > > On behalf of the Tomcat committers I am pleased to announce that > > Felix Schumacher (fschumacher) has been voted

Re: Connection count explosion due to thread http-nio-80-ClientPoller-x death

2014-09-18 Thread Filip Hanik
wrote: > > > -----BEGIN PGP SIGNED MESSAGE- > > Hash: SHA256 > > > > Filip, > > > > On 6/27/14, 11:36 AM, Filip Hanik wrote: > > > Are there any log entries that would indicate that the poller > > > thread has died? This/these thread/s s

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Filip Hanik
't added any > > resource links, so technically there are no resources available to your > > application through JNDI. See the Introduction section here, which > states > > why resource links are necessary. > > > > > > > > > http://tomcat.apache.org/tomcat-7.0-d

Re: Global JNDI resources lookup behavior difference between version 6.0.39 and 6.0.41/7.0.55

2014-09-03 Thread Filip Hanik
can you post your configuration file. that will be the only way we can help you fix it, as I doubt tomcat will go back to pre 6.0.41 days :) Filip On Wed, Sep 3, 2014 at 9:36 AM, Robert Anderson wrote: > Hi, > > > In a privileged context, a have the following jsp to test a global jndi > resou

Re: java.lang.IllegalArgumentException at java.nio.Buffer.limit

2014-08-07 Thread Filip Hanik
if you could capture the XML that you are trying to write, we can put it into a test case and reproduce. Filip On Thu, Aug 7, 2014 at 3:24 PM, Terence M. Bandoian wrote: > On 8/7/2014 10:04 AM, John Smith wrote: > >> TC 7.0.54 / RHEL 6 / JDK 1.7.0_60 >> >> I'm getting a pretty consistent erro

Re: Query timeouts using tomcat jdbc pool

2014-07-23 Thread Filip Hanik
detected not using setQueryTimeout > method, but by the tomcat pool settings (setMaxAge or > setTimeBetweenEvictionRunsMillis), it means that no exception can be thrown > at all? > > Vasily > > > > 2014-07-23 12:14 GMT+04:00 Filip Hanik : > > > Vasily, the e

Re: Query timeouts using tomcat jdbc pool

2014-07-23 Thread Filip Hanik
Vasily, the exception depends on where the timeout occurs. If the timeout is triggered by the driver, because you hit the setQueryTimeout limit http://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#setQueryTimeout(int) then yes, as per javadoc, it is up to the JDBC driver to throw an ex

Re: Help with Tomcat 7 clustering using BIO receiver

2014-07-03 Thread Filip Hanik
Joao, try channelSendOptions="6" this will mean that 1. You wish to use ACK's (option 2) 2. You wish the ACK to be synchronous If you don't have the 0x0002 option enabled, it wont use ACKs at all. Filip On Thu, Jul 3, 2014 at 4:44 PM, João Sávio wrote: > If I set channelSendOptions="8" (def

Re: Help with Tomcat 7 clustering using BIO receiver

2014-07-03 Thread Filip Hanik
did you post your server.xml cause I can't find it? On Thu, Jul 3, 2014 at 4:25 PM, João Sávio wrote: > Hello Filip > > I'm using channelSendOptions="4", which is supposed to be synchronous > > Regards > João >

Re: Help with Tomcat 7 clustering using BIO receiver

2014-07-03 Thread Filip Hanik
A race condition could happen if you set replication to happen async. But I do have a memory of the configuration specifying synchronous replication, which would guarantee that the replication changes have happened before the request is complete. On Thu, Jul 3, 2014 at 3:51 PM, Christopher Schu

Re: Help with Tomcat 7 clustering using BIO receiver

2014-07-03 Thread Filip Hanik
Ok, at least the stack trace is clear. The session has been invalidated somehow. We would need to figure out when and how this happens, is it possible that you are doing a clean shutdown of a tomcat instance and that instance expires all the sessions? If that is the case, kill the tomcat with 'kill

Re: Help with Tomcat 7 clustering using BIO receiver

2014-07-03 Thread Filip Hanik
gt; server, and from the second request should hit the node where the > conference is. > > > Thanks a lot > João > > > 2014-07-03 15:40 GMT-03:00 Filip Hanik : > > > you mention NIO and say maxThreads, that sounds like the > > configuration, but the BIO recei

Re: Help with Tomcat 7 clustering using BIO receiver

2014-07-03 Thread Filip Hanik
you mention NIO and say maxThreads, that sounds like the configuration, but the BIO receiver is on the cluster, and it a completely different component that also has an applicable NIO configuration. are you confusing the two? I'm saying that you should use the NIO receiver on the cluster componen

Re: Issue with spring when migrating from 7.0.50 to 7.0.52-53-54

2014-07-03 Thread Filip Hanik
These errors may happen when you have two libraries that both contain the class javax.persistence.spi.PersistenceProvider search the libraries (*.jar) in both tomcat and your WAR file, and see if there are multiple instances of the above named class On Thu, Jul 3, 2014 at 9:28 AM, Xavier Outhier

Re: Help with Tomcat 7 clustering using BIO receiver

2014-07-03 Thread Filip Hanik
I'd be more inclined to continue down the path of the NIO connector, it has been tested and used more. What are the errors you get when running with NIO? On Thu, Jul 3, 2014 at 8:51 AM, Konstantin Kolinko wrote: > 2014-07-03 18:46 GMT+04:00 João Sávio : > > Unfortunately it's not working yet >

Re: Error in DBCP Connection Pool with tomcat 6.x

2014-07-01 Thread Filip Hanik
Looks like your code already called java.sql.Connection.close() and then attempts to use the connection again Filip On Tue, Jul 1, 2014 at 8:09 AM, Propes, Barry L wrote: > > > -Original Message- > From: Vijendra Pachoriya [mailto:vijendra.pachor...@indegene.com] > Sent: Tuesday, July

Re: Connection count explosion due to thread http-nio-80-ClientPoller-x death

2014-06-27 Thread Filip Hanik
Are there any log entries that would indicate that the poller thread has died? This/these thread/s start when Tomcat starts. and a stack over flow on a processing thread should never affect the poller thread. Filip On Thu, Jun 26, 2014 at 4:01 PM, Christopher Schultz < ch...@christopherschultz.

Re: Connection count explosion due to thread http-nio-80-ClientPoller-x death

2014-06-19 Thread Filip Hanik
"Our sites still functions normally with no cpu spikes during this build up until around 60,000 connections, but then the server refuses further connections and a manual Tomcat restart is required." yes, the connection limit is a 16 bit short count minus some reserved addresses. So your system sho

Re: catalina.out is 13G

2014-04-22 Thread Filip Hanik
check out /usr/bin/truncate truncate --size 0 /path/to/fil On Tue, Apr 22, 2014 at 8:28 AM, Randhir Singh wrote: > Thanks for your answer Leon. The space should be freed immediately on the > system, can the catalina.out be truncated on an running system? > > Regards > > -Original Message--

Re: catalina.out is 13G

2014-04-22 Thread Filip Hanik
http://www.tomcatexpert.com/knowledge-base/rotating-catalinaout-log-files On Tue, Apr 22, 2014 at 8:20 AM, Randhir Singh wrote: > Hi, > > I have a immediate concern as the mount point on which Tomcat is placed is > 99% and on checking I found that catalina.out is 13GB. I wanted to > implement a

Re: PooledConnection.getConnection - Tomcat JDBC Pool

2014-03-26 Thread Filip Hanik
Jonathan opened up the following bug https://issues.apache.org/bugzilla/show_bug.cgi?id=56310 and I do believe our pool is incorrectly implementing the ConnectionPoolDatasource. I do believe it shouldn't implement that interface at all. On Wed, Mar 26, 2014 at 10:41 AM, Christopher Schultz < ch

Re: PooledConnection.getConnection - Tomcat JDBC Pool

2014-03-25 Thread Filip Hanik
Please open a bug, and we will get this taken care of. I do have one question,Aries library, on which call does it expect to return the connection to the pool? XAConnection.close() or XAConnection.getConnection().close(); ? On Tue, Mar 25, 2014 at 6:05 AM, Jonathan Pierce wrote: > I am trying

Re: DBCP2 connection pool leak?

2014-02-28 Thread Filip Hanik
you can try out tomcat-jdbc, and see if that solves your problem, it may help you narrow it down. http://tomcat.apache.org/tomcat-8.0-doc/jdbc-pool.html On Fri, Feb 28, 2014 at 11:26 AM, Mark Thomas wrote: > On 28/02/2014 18:22, Felipe Jaekel wrote: > > Hi, > > > > Today I tried to migrate my

Re: Tomcat 7.0.50 - Starting tomcat get this error "overrides final method start."

2014-02-20 Thread Filip Hanik
If I remember correctly, IIRC, those adapters have been removed from Spring security. If you upgrade your Tomcat, try to upgrade your Spring Security version too http://64.20.104.11/spring-security/spring-security/commit/e2062bbe79033b214f55f7c2ce03542a70f29a78 On Thu, Feb 20, 2014 at 7:20 AM, P

Re: What is the best connector configuration for thousands of mostly idle users?

2014-02-10 Thread Filip Hanik
Jesse, mostly idle users and you wish to conserve resources. Use the JkOptions +DisableReuse on the mod_jk module. This will close connections after the request has been completed. Many will tell you this will slow down your system since new connections have to be created for each request. Usually,

Re: Tomcat JNDI Datasource

2014-02-06 Thread Filip Hanik
Yes, define the connection pool in server.xml, then in context.xml define a That binds the shared connection pool to each context. On Thursday, February 6, 2014, David Newman wrote: > I have defined a JNDI JDBC datasource as a resource in the global > context.xml file. I was under the impre

Re: Tomcat 7 / Java 7

2014-01-27 Thread Filip Hanik
Yes it is compatible, and no, there is nothing you really need to do except to test your applications that they work too. On Mon, Jan 27, 2014 at 9:37 AM, Singh, Ragini wrote: > Hello, > > Is Tomcat 7.0.42 compatible with Java 7?< > http://stackoverflow.com/questions/9294355/is-tomcat-7-now-com

Re: [OT] Out of memory exception - top posting

2014-01-24 Thread Filip Hanik
Since this is part of a thread, neither top nor bottom posting makes sense, why include the previous post if we all have access to it in our conversation thread. the only time it makes sense to include it, would be when you reply in line to multiple questions with multiple answers. there, that sho

Re: Weird issue setting up SSL on a WinDoze box

2014-01-22 Thread Filip Hanik
delete the file tcnative-1.dll and tomcat reverts to java based ssl and keystores. On Wednesday, January 22, 2014, James H. H. Lampert < jam...@touchtonecorp.com> wrote: > On 1/22/14 5:26 PM, Caldarale, Charles R wrote: > >> You have installed and enabled the APR connector, but are trying to use

Re: Error when performing a reset of the server

2014-01-08 Thread Filip Hanik
; and the only way that she resolves it is to reboot the windows server. >>> >>> I will read through the site that you have sent and see what I can >>> figure out. >>> >>> Thanks, >>> >>> Chuck >>> >>> Chuck John

Re: Error when performing a reset of the server

2014-01-08 Thread Filip Hanik
Chuck, does this happen upon startup, restart or shutdown of the service? That would be the first part of tracking it down. here is some general configuration options available to you as a service http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html On Wed, Jan 8, 2014 at 1:57 PM

Re: Poller & CometPoller general questions

2012-07-17 Thread Filip Hanik Mailing Lists
In http://tomcat.apache.org/tomcat-7.0-doc/config/http.html you can read about pollerThreadCount and useComet flags for the APR implementation. You don't need Comet unless you applications specifically are using it, most likely they are not. Filip - Original Message - > From: "Jeffrey

Re: Exception Message:org.apache.tomcat.dbcp.dbcp.BasicDataSource cannot be cast to org.apache.tomcat.dbcp.dbcp.BasicDataSource

2012-07-09 Thread Filip Hanik
That's what's wrong. Remove them all from web-inf/lib Sent from my iPad, pardon any brevity. Filip Hanik On Jul 9, 2012, at 10:58, vijay.gan...@subk.co.in wrote: > yes in both CATALINA_HOME/lib and app/WEB-INF/lib, > tomcat-dbcp.jar,ojdbc14.jar and lasses12.jar fil

RE: Tomcat 7.0.28 connection pool issue

2012-06-29 Thread Filip Hanik (mailing lists)
An update on this issue. Yassir tested with a JAR I built against trunk. What this could mean is that the bug https://issues.apache.org/bugzilla/show_bug.cgi?id=53367 somehow didn't make it into the build of 7.0.28 I will double check it. Filip > -Original Message- > From:

RE: Multicast fails when mcastBindAddress is explicitly set

2012-06-29 Thread Filip Hanik (mailing lists)
t; > At this point in time we do not know if the issue is because of apache > tribes or it is just related to HV configuration. > > Best Regards, > Madhav > > On Fri, Jun 29, 2012 at 9:36 PM, Filip Hanik (mailing lists) < > devli...@hanik.com> wrote: > > > Sou

RE: Multicast fails when mcastBindAddress is explicitly set

2012-06-29 Thread Filip Hanik (mailing lists)
Sounds like you need to enable multicasting. This would be a VM/hypervisor configuration issue. Filip > -Original Message- > From: Madhav Bhargava [mailto:unmarsh...@gmail.com] > Sent: Friday, June 29, 2012 10:04 AM > To: users@tomcat.apache.org > Subject: Re: Multicast fails when mcastB

RE: Tomcat 7.0.28 connection pool issue

2012-06-28 Thread Filip Hanik (mailing lists)
do, is lower your concurrency. > Recommended is > > of course to increase maxActive if the database supports it. > > > > Filip > > > > > > > -Original Message- > > > From: Yasser [mailto:yarafa...@gmail.com] > > > Sen

RE: Tomcat 7.0.28 connection pool issue

2012-06-28 Thread Filip Hanik (mailing lists)
nal Message- > From: Yasser [mailto:yarafa...@gmail.com] > Sent: Thursday, June 28, 2012 11:33 AM > To: Tomcat Users List > Subject: Re: Tomcat 7.0.28 connection pool issue > > That was the issue with Tomcat 7.0.26 and they fixed it in 7.0.28 > > > On Thu, Jun 28, 2012

RE: Tomcat 7.0.28 connection pool issue

2012-06-28 Thread Filip Hanik (mailing lists)
Could you have run into https://issues.apache.org/bugzilla/show_bug.cgi?id=53367 ? You could try out http://people.apache.org/~fhanik/jdbc-pool/bz53367-jdbc-pool.jar > -Original Message- > From: Yasser [mailto:yarafa...@gmail.com] > Sent: Thursday, June 28, 2012 9:39 AM > To: Tomcat Us

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: -Original Message- > From: Christian Finckler [mailto:christian.finck...@gmx.de] > Sent: Thursday, May 31, 2012 11:45 AM > To: Tomcat Users List > Subject: Re: non blocking Websockets? > > > > Am 3

Re: encrypt the database password

2012-05-24 Thread Filip Hanik Mailing Lists
yes, there is, search http://tomcat.markmail.org for the same org.apache.tomcat.util.digester.PROPERTY_SOURCE is a system property where you can add the code that digests properties in server.xml This code can 'decode' your encoded properties - Original Message - > From: "Bill Wang" >

Re: Tomcat 7. MX4J

2012-05-23 Thread Filip Hanik Mailing Lists
http://tomcat.apache.org/tomcat-6.0-doc/config/listeners.html#JMX_Remote_Lifecycle_Listener_-_org.apache.catalina.mbeans.JmxRemoteLifecycleListener - Original Message - > From: "Vadzim Mikhalenak" > To: "Tomcat Users List" > Sent: Tuesday, May 22, 2012 4:06:52 PM > Subject: Re: Tomcat

Re: DefaultServlet socketWrite hang

2012-05-21 Thread Filip Hanik Mailing Lists
if you look deeper under the hood of Java NET/IO you will see that there is no configurable timeout for writing blocking IO. The best thing you can do is upgrade to Tomcat 6, and use the NIO connector (protocol="org.apache.coyote.http11.Http11NioProtocol") as that has a configurable timeout for

RE: Start Tomcat6 service with StartMode as java

2012-05-08 Thread Filip Hanik (mailing lists)
The Java Service Wrapper does this for you, if you want to try an alternative http://wrapper.tanukisoftware.com/doc/english/download.jsp > -Original Message- > From: Venkata R Madugundu [mailto:venkataraman...@in.ibm.com] > Sent: Tuesday, May 08, 2012 8:07 AM > To: Venkata R Madugundu > C

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-03 Thread Filip Hanik Mailing Lists
found it, check the logs at startup for the error and post it here. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-03 Thread Filip Hanik Mailing Lists
reading this on my phone, but does your element have a name attribute? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

RE: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Filip Hanik (mailing lists)
using > BoneCP ?? > > com.jolbox.bonecp.BoneCPDataSource implements DataSource, > *ObjectFactory , > * > *isnot it a JNDI factory ? > * > On Thu, May 3, 2012 at 10:30 AM, Filip Hanik (mailing lists) < > devli...@hanik.com> wrote: > > > BoneCP doesn't have a JNDI factory

RE: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Filip Hanik (mailing lists)
BoneCP doesn't have a JNDI factory AFAICT, and it's also missing a lot of critical features, like validation etc Filip > -Original Message- > From: zuxiong lin [mailto:linzuxiong1...@gmail.com] > Sent: Wednesday, May 02, 2012 7:36 PM > To: Tomcat Users List > Subject: Re: How to config t

RE: Tomcat 7 NIO Socket accept failed - Too many open files

2012-05-02 Thread Filip Hanik (mailing lists)
Ok, lsof -p (IIRC) should do the trick, it will tell all the handles open for that process, and you can deduce where the problem stems from > -Original Message- > From: David Wall [mailto:d.w...@computer.org] > Sent: Wednesday, May 02, 2012 2:48 PM > To: users@tomcat.apache.org > Subject

RE: Web Socket Issue

2012-05-02 Thread Filip Hanik (mailing lists)
to send ping once to open the socket > after that it should depend on user when he wants to close the > connection. > Cannot I explicitly call some method to set timeout forever on client or > server side. Or any other mechanism..?? > > On Wed, May 2, 2012 at 10:04 AM, Fil

RE: Web Socket Issue

2012-05-02 Thread Filip Hanik (mailing lists)
Have the client send a ping message every 10 seconds > -Original Message- > From: umar farooq [mailto:umarfarooq...@gmail.com] > Sent: Tuesday, May 01, 2012 6:06 PM > To: users@tomcat.apache.org > Subject: Web Socket Issue > > Hi All, >I am trying to use Chat example of WebSocket

RE: How to config the Tomcat 7.x JNDI datasource by using BoneCP ??

2012-05-02 Thread Filip Hanik (mailing lists)
http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html > -Original Message- > From: zuxiong lin [mailto:linzuxiong1...@gmail.com] > Sent: Wednesday, May 02, 2012 2:35 AM > To: Tomcat Users List > Subject: Re: How to config the Tomcat 7.x JNDI datasource by using > BoneCP ?? > > See append

RE: Tribes coordinator

2012-05-01 Thread Filip Hanik (mailing lists)
ange the > coordinator only if the existing coordinator fails? [Filip Hanik] It was a while ago I wrote that. Non blocking coordinator means that Change of coordination can be happen while other activities take place. I think the NonBlocking coordinator builds on the absolute order algorithm for se

RE: Signing and Encrypting messages using Apache tribes

2012-05-01 Thread Filip Hanik (mailing lists)
back ( > http://tomcat.10.n6.nabble.com/Securing-Tomcat-cluster-communication- > td1973779.html > ) > > It is recommended that encryption/decryption of messages be done using a > custom interceptor or using a stunnel, the former approach being the > preferred approach. [Fil

Re: dbcp datasource encryption

2012-04-23 Thread Filip Hanik Mailing Lists
- Original Message - > > http://wiki.apache.org/tomcat/FAQ/Password > > > In short, no. > > Encrypting your database, database user, and database password buys > you virtually (and most people would say actually) nothing. "virtually nothing" is the opposite of what I would call it.

Re: Tribes coordinator

2012-04-23 Thread Filip Hanik Mailing Lists
http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/tribes/group/interceptors/package-summary.html Take a look at SimpleCoordinator and NonBlockingCoordinator Equally simple to implement your own based on the requirement you have for leader election. It does depend on what you need

RE: Bug in Tomcat AJP Connector?

2012-04-05 Thread Filip Hanik (mailing lists)
pecting you > > to defibrillate yourself. It works in theory, but not in practice. > > > > Yes. It reminds me of that Bond movie [Filip Hanik] I would not discard this as a joke, software is headed that way, there are solutions for this today, and more of them will come tomor

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Filip Hanik Mailing Lists
riginal Message - > From: "Hermes Flying" > To: "Filip Hanik Mailing Lists" , "Tomcat Users List" > > Sent: Wednesday, April 4, 2012 10:56:10 AM > Subject: Re: Discrepancy between Tomcat's connection pool and tomcat's report > on memory lea

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Filip Hanik Mailing Lists
report > on memory leaks > > But if I set 'minIdle=0' all the connections would close imediatelly, > right? > So why would I need a connection pool in the first place if I do > this? > > > > From: Filip Hanik Mailing List

Re: Discrepancy between Tomcat's connection pool and tomcat's report on memory leaks

2012-04-04 Thread Filip Hanik Mailing Lists
just set minIdle=0 and enable the eviction process to take care of it. Filip - Original Message - > From: "Hermes Flying" > To: "Daniel Mikusa" > Cc: users@tomcat.apache.org > Sent: Wednesday, April 4, 2012 9:53:30 AM > Subject: Re: Discrepancy between Tomcat's connection pool and tomc

Re: Tomcat6 thread pool questions

2012-04-04 Thread Filip Hanik Mailing Lists
In Tomcat 6, the default thread pool ignores minSpareThreads, but if you use and then From: llow...@oreillyauto.com > To: users@tomcat.apache.org > Sent: Wednesday, April 4, 2012 7:50:24 AM > Subject: Tomcat6 thread pool questions > > > Greetings, > > I was wondering if someone could help me und

Re: [JDBC Pool] PoolCleaner creates some sort of memory

2012-04-04 Thread Filip Hanik Mailing Lists
sers List" > Sent: Friday, March 30, 2012 2:05:50 AM > Subject: RE: [JDBC Pool] PoolCleaner creates some sort of memory > > Konstantin Kolinko wrote: > > 2012/3/30 Osipov, Michael : > >> Filip Hanik (mailing lists) wrote: > >>> http://svn.apache.org/viewv

Re: jdbc pool properties

2012-04-04 Thread Filip Hanik Mailing Lists
> There are some databases that do go in and periodically kill off > connections, aside from the Tomcat settings. you may want to explore the maxAge option for this, as we can disconnect and create new connections before the DB does kills it as long lived - Original Message - > From: "Ba

RE: [JDBC Pool] PoolCleaner creates some sort of memory

2012-03-29 Thread Filip Hanik (mailing lists)
http://svn.apache.org/viewvc?view=revision&revision=1306946 > -Original Message- > From: Osipov, Michael [mailto:michael.osi...@siemens.com] > Sent: Thursday, March 29, 2012 1:36 AM > To: Tomcat Users List > Subject: RE: [JDBC Pool] PoolCleaner creates some sort of memory > -

RE: Accessing static resource during loading of webapp

2012-03-28 Thread Filip Hanik (mailing lists)
Are you trying to read a file in the same webapp or another? > -Original Message- > From: Farrukh Najmi [mailto:farr...@wellfleetsoftware.com] > Sent: Wednesday, March 28, 2012 4:34 PM > To: users@tomcat.apache.org > Subject: Accessing static resource during loading of webapp > > > I hav

RE: [JDBC Pool] PoolCleaner creates some sort of memory

2012-03-28 Thread Filip Hanik (mailing lists)
: SHA1 > > Filip, > > On 3/28/12 12:00 PM, Filip Hanik (mailing lists) wrote: > > PoolCleaner is a static singleton. The pool cleaner thread will not > > be removed until all JDBC pools have been stopped. So, yes, one > > application can be the one that starts the t

RE: tomcat dbcp encryption

2012-03-28 Thread Filip Hanik (mailing lists)
Or pay a vendor to do it for you :) http://pubs.vmware.com/vfabric5/index.jsp?topic=/com.vmware.vfabric.tc-server.2.6/admin/manual-encrypt-passwords.html > -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Wednesday, March 28, 2012 10:25 AM > To

RE: [JDBC Pool] PoolCleaner creates some sort of memory

2012-03-28 Thread Filip Hanik (mailing lists)
PoolCleaner is a static singleton. The pool cleaner thread will not be removed until all JDBC pools have been stopped. So, yes, one application can be the one that starts the thread, but not necessarily the one that stops it Filip > -Original Message- > From: Osipov, Michael [mailto:mic

Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-22 Thread Filip Hanik Mailing Lists
AutoCommit="false" maxActive="1" maxIdle="1" minIdle="1" maxWait="1" testOnBorrow="true" validationQuery="SELECT 1" I also have yet to see any "abandoned" log messages. Should the pool always have at least 1 busy or i

Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-22 Thread Filip Hanik Mailing Lists
ly so I can kill > it > easily to try and simulation connection timeouts. I won't really > feel this > is resolved until I can recreate the original issue. > > > Thanks, > Colin > > On Wed, Mar 21, 2012 at 11:20 AM, Filip Hanik Mailing Lists < > devli...@ha

Re: Operation has timed out(3000 ms.).;

2012-03-22 Thread Filip Hanik Mailing Lists
take a look at the attribute http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-sender.html - Original Message - > From: "Dhaval Jaiswal" > To: "Tomcat Users List" > Sent: Wednesday, March 21, 2012 10:35:14 PM > Subject: Operation has timed out(3000 ms.).; > > Receiving below er

Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-21 Thread Filip Hanik Mailing Lists
being abandoned. I also made the max > pool > size pretty small.. my application would have failed quickly if all > the > connections we're being incorrectly held up. > > Anything else I can try? Thanks again for your help. > > -- Colin > > On Wed, Mar 21, 2012

Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-21 Thread Filip Hanik Mailing Lists
Got it, thank you. The other way this can happen is if the application checks out a connection and then never returns it, and expects it to be used. For this you will want to enable removeAbandonedTimeout="60" removeAbandoned="true" logAbandoned="true" this should tell you pretty quickly if you

Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-21 Thread Filip Hanik Mailing Lists
- Original Message - > From: "Colin Ingarfield" > To: users@tomcat.apache.org > Sent: Wednesday, March 21, 2012 6:25:54 AM > Subject: Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32) > > iirc I copied the version number from the > tomcat-jdbc.jar/META-INF/MANIFEST.M

Re: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-21 Thread Filip Hanik Mailing Lists
80) > ~[spring-jdbc-3.0.5.RELEASE.jar:3.0.5.RELEASE] > ... 22 common frames omitted > Caused by: java.net.ConnectException: Connection timed out > at java.net.PlainSocketImpl.socketConnect(Native Method) > ~[na:1.6.0_29] > at java.net.PlainSocketImpl.doConnect(PlainSock

RE: Need a sample server.xml file for the session replication using backup manager

2012-03-20 Thread Filip Hanik (mailing lists)
Take the sample from the tomcat site, change DeltaManager to BackupManager > -Original Message- > From: Dhaval Jaiswal [mailto:dhaval.jais...@via.com] > Sent: Monday, March 19, 2012 4:32 AM > To: users@tomcat.apache.org > Cc: Shrinivas Devarkonda > Subject: Need a sample server.xml file fo

RE: how to enable debug logging for Tomcat jdbc pool (Tomcat 6.0.32)

2012-03-20 Thread Filip Hanik (mailing lists)
Define "connection timeouts" so that we can understand your problem to suggest for how to trace it down. What are you trying to search for. Errors would be logged as errors, and should show up with the standard configuration Filip > -Original Message- > From: Colin Ingarfield [mailto:coli

Re: Configure SSL under Tomcat 7

2012-03-19 Thread Filip Hanik Mailing Lists
ok, keystore is for Java connectors. but you have chosen to use the APR connector. so you should use the certificate format that is used for that connector - Original Message - > From: "ayouB __" > To: users@tomcat.apache.org > Sent: Monday, March 19, 2012 11:00:59 AM > Subject: RE: Con

RE: Configure SSL under Tomcat 7

2012-03-16 Thread Filip Hanik Mailing Lists
The logs show that you don't have Tcnative installed - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Configure SSL under Tomcat 7

2012-03-16 Thread Filip Hanik Mailing Lists
ok, check your logs for errors. You must have APR libraries with OpenSSL installed, and you must specify the SSLCertificateFile & SSLCertificateKeyFile attributes. All errors will be in the logs Filip - Original Message - > From: "ayouB __" > To: users@tomcat.apache.org > Sent: Friday,

Re: Configure SSL under Tomcat 7

2012-03-16 Thread Filip Hanik Mailing Lists
set SSLEnabled="true" in your element, that turns on SSL. After that, if you don't have keystoreFile or keystorePass set, it will throw errors Filip - Original Message - > From: "ayouB __" > To: users@tomcat.apache.org > Sent: Friday, March 16, 2012 9:58:49 AM > Subject: Configure SSL

  1   2   3   4   5   6   7   8   9   10   >