Re: nio connector

2016-05-24 Thread Ja kub
Christopher, Great Thanks. BR Jakub On Tue, May 24, 2016 at 4:33 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Jakub, > > On 5/23/16 8:03 PM, Ja kub wrote: > > Christopher, Thx for respon

Re: nio connector

2016-05-23 Thread Ja kub
wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Jakub, > > On 5/23/16 11:38 AM, Ja kub wrote: > > In which scenario nio connector will outerform basic io connector > > and vice versa ? > > In Tomcat 8.5 and higher, NIO will always outperform the BIO conn

nio connector

2016-05-23 Thread Ja kub
Hello, In which scenario nio connector will outerform basic io connector and vice versa ? What would be high level design of corresponding performance tests showing advantages of each connector ? BR Jakub

Re: web.xml authentication and Tomcat Realm

2014-09-08 Thread Ja kub
Christopher, could You please explain why: Note that using JDBCRealm will give you terrible performance: use a DataSourceRealm instead with a JNDI DataSource. Is this because JDBCRealm will create a new connection to database each time (will it?), and DataSourceRealm will use a connection

port-offset

2014-02-25 Thread Ja kub
Hi Do you know if in Tomcat is something similar to jboss port-offset ? -Djboss.socket.binding.port-offset=100 It would be convinient for starting several tomcats on the same operating system. No need to change ports in server.xml BR Jakub

recommended external/plugin session manager based on redis/cassandra/memcache

2014-02-20 Thread Ja kub
Hello Has anybody tried using redis/cassandra/memcache as session manager ? Are there any mature plugins available ? Is there an interest in such plugin ? Maybe it is hard to integrate such external cache solution because of servlet spec requirements ? Please give links to projects worth

Re: recommended external/plugin session manager based on redis/cassandra/memcache

2014-02-20 Thread Ja kub
Thx for reply. BR Jakub On Thu, Feb 20, 2014 at 7:11 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jakub, On 2/20/14, 4:57 AM, Ja kub wrote: Has anybody tried using redis/cassandra/memcache as session manager ? I believe

tomcat cluster on amazon ec2 - SEVERE: Unable to start cluster receiver

2014-02-09 Thread Ja kub
I wget latest tomcat.tgz, unpack it and catalina.sh run start ok. now in server.xml I uncomment Cluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/ and get following stack trace: ubuntu@db1:/opt/test/apache-tomcat-7.0.50/bin$ ./catalina.sh run Using CATALINA_BASE:

Re: backupManager - backup on all nodes and slowly

2014-02-07 Thread Ja kub
, 2014 at 12:08 PM, Neven Cvetkovic neven.cvetko...@gmail.comwrote: On Tue, Feb 4, 2014 at 4:08 AM, Ja kub jjaku...@gmail.com wrote: in Manager app I see: after ab -k -n 100 -p post.txt http://localhost:18080/petclinic/session/fill on 18080 in petclinic 100 sessions on 28080

Re: backupManager - backup on all nodes and slowly

2014-02-04 Thread Ja kub
configuration. What can be the cause ? On Mon, Feb 3, 2014 at 1:46 PM, Mark Thomas ma...@apache.org wrote: On 03/02/2014 11:59, Ja kub wrote: Ok, thx, 2 questions: 1) If I will have only one very large session (about 100Mb), will memory increase only on one backup node, and on 2 other nodes

Re: backupManager - backup on all nodes and slowly

2014-02-03 Thread Ja kub
(about 100MB), it was increase after gc . Thx, Jakub On Mon, Feb 3, 2014 at 9:04 AM, Mark Thomas ma...@apache.org wrote: On 02/02/2014 22:59, Ja kub wrote: With below BackupManager backup manager configuration in server.xml heap memory increases over 100MB on each of four nodes

Re: backupManager - backup on all nodes and slowly

2014-02-03 Thread Ja kub
Good question, sorry I didn't tell earlier, its tomcat 7.0.50 on linux, zip or tgz from download page, not from rpm. On Mon, Feb 3, 2014 at 11:17 AM, Mark Thomas ma...@apache.org wrote: On 03/02/2014 08:33, Ja kub wrote: I have configured no loadbalancer, I accessed tomcat directly

Re: backupManager - backup on all nodes and slowly

2014-02-03 Thread Ja kub
, but here it is increasing on all 4 nodes in cluster. Should BackupManager be working as I write above, or do I understand it wrong ? On Mon, Feb 3, 2014 at 12:13 PM, Mark Thomas ma...@apache.org wrote: On 03/02/2014 11:03, Ja kub wrote: Good question, sorry I didn't tell earlier, its

Re: backupManager - backup on all nodes and slowly

2014-02-03 Thread Ja kub
, Ja kub wrote: But time is not such a great problem for me. Time of execution was mentioned only in addition - there are 100 k requests. I am mainly interested in memory, and how BackupManager works. I hoped, that with BackupManager memory will increase on node which is queried and ONLY

backupManager - backup on all nodes and slowly

2014-02-02 Thread Ja kub
With below BackupManager backup manager configuration in server.xml heap memory increases over 100MB on each of four nodes in cluster. In addition time of ab -c 10 -n 10 -p post.txt http://localhost:18080/petclinic/session/fill is about 150 seconds with default DeltaManager it is about 15

application loggers not visible in jconsole

2014-01-31 Thread Ja kub
changing logging level in logging properties works fine, but my custom logger is not visible in jconsole under java.util.logging - loggerNames, I can't change logging level dynamically by jconsole I add into logging properties test.logging.LoggingTest .level = FINE and it successfully changes

ssl without keystorePass in open text in server.xml

2014-01-30 Thread Ja kub
is it possible not to write keystorePass in open text server.xml, and make tomcat to ask for it at startup ? or specify only some hash of it (rather not possible) ? BR J.

Re: class from jar in tomcat/lib not found

2014-01-29 Thread Ja kub
it was in ... 34 common frames omitted how can I unfold this 34 common frames ? BR Jakub On Wed, Jan 29, 2014 at 4:04 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jakub, On 1/28/14, 6:17 PM, Ja kub wrote: Problem dissapeared when I

ssl keystore from windows certficate manager not from file

2014-01-29 Thread Ja kub
Is it possible under windows to use define keystore in windows certificate manager instead of filesystem file, eg: instead of usual keystore=conf/cert/tomcat.p12 I would like to use certificate stored in windows vault: keystore=certmgr:tomcat.p12 is it possible, or I have to export certificate

class from jar in tomcat/lib not found

2014-01-28 Thread Ja kub
Hallo I try to define database resource in tomcat/conf/context.xml Resource name=jdbc/petclinic auth=Container type=javax.sql.DataSource username=root password=xxx driverClassName=net.sf.hajdbc.sql.Driver url=jdbc:ha-jdbc:cluster-petclinic/ when I put

Re: class from jar in tomcat/lib not found

2014-01-28 Thread Ja kub
Problem dissapeared when I added ha-jdbc-2.0.16 dependencies into tomcat/lib ! j@j-Dell-System-XPS-L702X:/szkolenie/tomcat/lib_hajdbc$ unzip -v ../hajdbc3.0_lib/ha-jdbc-3.0.0.jar | grep net.sf.hajdbc.sql.Driver 3429 Defl:N 1646 52% 2013-12-31 10:17 55394556

Re: tomcat gracefull shutdown problem

2014-01-14 Thread Ja kub
On Tue, Jan 14, 2014 at 1:48 AM, Ja kub jjaku...@gmail.com wrote: I modified conf/context.xml Context unloadDelay=6 I hoped tomcat would wait 60 seconds for request to end. But there are some problems with spring app, I get HTTP Status 503 - Servlet jsp is currently unavailable: I use

Re: tomcat gracefull shutdown problem

2014-01-14 Thread Ja kub
Thx for reply, Do You think it would be hard to implement it in Tomcat ? It seems to be quite a useful feature. Regards Jakub On Tue, Jan 14, 2014 at 3:26 PM, Daniel Mikusa dmik...@gopivotal.comwrote: On Jan 13, 2014, at 7:48 PM, Ja kub jjaku...@gmail.com wrote: I modified conf

tomcat gracefull shutdown problem

2014-01-13 Thread Ja kub
I modified conf/context.xml Context unloadDelay=6 I hoped tomcat would wait 60 seconds for request to end. But there are some problems with spring app, I get HTTP Status 503 - Servlet jsp is currently unavailable: I use tomcat 7.42 64 bit on windows 7 steps to reproduce: use app from

expired crl file

2014-01-04 Thread Ja kub
When I place expired crl file tomcat starts without any visible stack trace in logs, but I cannot login with valid certificates. Is there any solution for this feature? BTW, how can I check validity/expiration date of crl file ? Regards Jakub

Re: expired crl file

2014-01-04 Thread Ja kub
generates crl_file. First part of question concerning tomcat is still valid. On Sat, Jan 4, 2014 at 9:18 AM, Ja kub jjaku...@gmail.com wrote: When I place expired crl file tomcat starts without any visible stack trace in logs, but I cannot login with valid certificates. Is there any solution

crlFile update

2013-11-12 Thread Ja kub
Hello, Is there any way to revoke certificate without restarting tomcat ? http://tomcat.apache.org/tomcat-7.0-doc/config/http.html : crlFile The certificate revocation list to be used to verify client certificates. is this file reloaded by tomcat, or it is read only once at startup ? regards

how to log unauthorized https access attempts (secure=true clientAuth=true)

2013-08-23 Thread Ja kub
Hallo I use https with client cert authentication Connector protocol=...Http11NioProtocol SSLEnabled=true scheme=https secure=true clientAuth=true sslProtocol=TLS keystoreFile=...jks key..Pass=... keystoreType=JKS truststoreFile=...jks trust..Pass=.. / AccessLogValve cannot be

Re: how to log unauthorized https access attempts (secure=true clientAuth=true)

2013-08-23 Thread Ja kub
Thomas ma...@apache.org wrote: On 23/08/2013 11:02, Ja kub wrote: Hallo I use https with client cert authentication Connector protocol=...Http11NioProtocol SSLEnabled=true scheme=https secure=true clientAuth=true sslProtocol=TLS keystoreFile=...jks key..Pass

Re: http request (no only session) replication in cluster

2013-06-18 Thread Ja kub
Kumar ravindra.vangapa...@hp.com wrote: Ja kub, Looks like you are re-inventing wheel here. All you are looking for is a fault tolerance system, you should consider exploring hystrix - latency and fault tolerance for distributed systems library. https://github.com/Netflix/Hystrix -Ravi

Re: http request (no only session) replication in cluster

2013-06-18 Thread Ja kub
PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jakub, On 6/18/13 3:27 AM, Ja kub wrote: Ravindra, Thx for idea, I will read about it, but at first glance it looks like with 5000 pending servlet requests I will have 5000

Re: http request (no only session) replication in cluster

2013-06-13 Thread Ja kub
:04 PM, Ja kub wrote: requirement is system should be possible to process 160 req/sec (200 is better to multiply) and system is kind of failover proxy itself there are 2 backing webservices, each can answer max 20s, it there is timeout on first, I must call the second

http request (no only session) replication in cluster

2013-06-11 Thread Ja kub
What can be done to guarantee failover in below scenario: 2 tomcats behind cisco loadbalancer 1 http request can last very long about 50 seconds - response from webservice can take so long load is 200 requests per second I must response in max 4 seconds more than backing webservice is there

Re: http request (no only session) replication in cluster

2013-06-11 Thread Ja kub
ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 6/11/13 11:32 AM, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ja, On 6/11/13 9:54 AM, Ja kub wrote: What can be done to guarantee