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
schultz.net> 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 outperfo

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 pool

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

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/cassand

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 recommend

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 and get following stack trace: ubuntu@db1:/opt/test/apache-tomcat-7.0.50/bin$ ./catalina.sh run Using CATALINA_BASE: /opt/test/apache-tomcat-7.0.50 Using CATALINA_HOME: /opt/test/apache-tomcat-7.

Re: backupManager - backup on all nodes and slowly

2014-02-07 Thread Ja kub
On Tue, Feb 4, 2014 at 12:08 PM, Neven Cvetkovic wrote: > On Tue, Feb 4, 2014 at 4:08 AM, Ja kub 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 sessi

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 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 o

Re: backupManager - backup on all nodes and slowly

2014-02-03 Thread Ja kub
other nodes memory also increased about 100 Mb. Is it not strange ? I would expect about 35-50 Mb of memory increase on each of 3 backup nodes. Now memory consumption is the same as with Delta Manager. On Mon, Feb 3, 2014 at 12:36 PM, Mark Thomas wrote: > On 03/02/2014 11:31, Ja kub wr

Re: backupManager - backup on all nodes and slowly

2014-02-03 Thread Ja kub
ackup node, 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 wrote: > On 03/02/2014 11:03, Ja kub wrote: > > Good question, sorry I didn't tell ear

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 wrote: > On 03/02/2014 08:33, Ja kub wrote: > > I have configured no loadbalancer, > > > > I accesse

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 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 n

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 seco

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 log

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.

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 certificat

Re: class from jar in tomcat/lib not found

2014-01-29 Thread Ja kub
as 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

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 net/sf/hajdbc/sql/DriverDatab

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 when I put ha-jdbc-3.0.jar into lib directory class net.sf.hajdbc.sql.Driver is found, but when I put ha-jdbc-2.0.16.jar into lib directory I get Caused by: java.lang.NoClassDefFoundError: Could not initialize class n

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 wrote: > On Jan 13, 2014, at 7:48 PM, Ja kub wrote: > > > I modified conf/context.xml > > I hoped

Re: tomcat gracefull shutdown problem

2014-01-14 Thread Ja kub
2014 at 1:48 AM, Ja kub wrote: > I modified conf/context.xml > 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

tomcat gracefull shutdown problem

2014-01-13 Thread Ja kub
I modified conf/context.xml 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 https://github.com/spring-proje

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 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 f

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

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 J

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

2013-08-23 Thread Ja kub
Mark Thomas wrote: > On 23/08/2013 11:02, Ja kub wrote: > > Hallo > > > > I use https with client cert authentication > > > > > scheme="https" secure="true" clientAuth="true" sslProtocol="TLS" > > keystor

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 AccessLogValve cannot be placed inservice, only in engine (host, context), but if client has bad/untrusted cert or no cert at all, possibly connector doesn't pass him to engine and to AccessLogValve. How can I log such access attempts with tomc

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 >

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:/

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

2013-06-13 Thread Ja kub
t; Jakob, > > On 6/11/13 5: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

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

2013-06-11 Thread Ja kub
stopher Schultz < 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 &g

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 somet