Re: Classloading Behavior in Embedded Tomcat

2020-07-25 Thread Chirag Dewan
om class loader. Is there any other way to make this work? Thanks, Chirag On Thu, Jul 23, 2020 at 11:32 PM Chirag Dewan wrote: > Hey Mark, > > Any clues, how to proceed with this for embedded? > > Thanks > Chirag > > > On Wed, 22 Jul, 2020, 7:31 pm Chirag Dewan, &

Re: Classloading Behavior in Embedded Tomcat

2020-07-23 Thread Chirag Dewan
Hey Mark, Any clues, how to proceed with this for embedded? Thanks Chirag On Wed, 22 Jul, 2020, 7:31 pm Chirag Dewan, wrote: > I tried that with standalone Tomcat and it works. I can deploy Jersey-1 > and Jersey-2 apps together. > > I was wondering whether Loader with delegate=f

Re: Classloading Behavior in Embedded Tomcat

2020-07-22 Thread Chirag Dewan
I tried that with standalone Tomcat and it works. I can deploy Jersey-1 and Jersey-2 apps together. I was wondering whether Loader with delegate=false work in context for embedded? Thanks Chirag On Wed, 22 Jul, 2020, 5:03 pm Mark Thomas, wrote: > On 22/07/2020 11:35, Chirag Dewan wr

Re: Classloading Behavior in Embedded Tomcat

2020-07-22 Thread Chirag Dewan
Thanks for a very quick reply Mark. The Tomcat version is 8.5.46. Though I do plan to upgrade to 9.0.36 in the coming weeks. Chirag On Wed, 22 Jul, 2020, 4:03 pm Mark Thomas, wrote: > On 22/07/2020 11:18, Chirag Dewan wrote: > > Hi, > > > > Due to some backward compatibi

Classloading Behavior in Embedded Tomcat

2020-07-22 Thread Chirag Dewan
Hi, Due to some backward compatibility concerns, I need to support both Jersey-1 and Jersey-2 on the same Tomcat instance. This is an embedded tomcat which runs inside a JVM application. Since, Jersey-1 and Jersey-2 have different JAXRS versions, I tried to remove both jsr311 and javax.ws.rs-2 f

Re: Connection Closure due to Fatal Stream with HTTP2

2020-06-27 Thread Chirag Dewan
> On 26/06/2020 12:48, Mark Thomas wrote: > > On 26/06/2020 12:45, Chirag Dewan wrote: > >> Absolutely Mark. Shouldn't take long. > > > > Great. I think I have found a potential root cause. If I am right, NIO > > will show the same issues NIO2 did. >

Re: Connection Closure due to Fatal Stream with HTTP2

2020-06-26 Thread Chirag Dewan
Absolutely Mark. Shouldn't take long. On Fri, 26 Jun, 2020, 4:16 pm Mark Thomas, wrote: > Aha! > > h2c could be the significant factor here. Let me take a look. > > Are you in a position to test against a dev build if the need arises? > > Mark > > > On 2

Re: Connection Closure due to Fatal Stream with HTTP2

2020-06-26 Thread Chirag Dewan
een NIO and NIO2 are very small. > > - How long does a single request take to process? > > Thanks, > > Mark > > On 26/06/2020 09:24, Chirag Dewan wrote: > > Thanks Mark. > > > > *What is the typical response size for one of these requests? * > >

Re: Connection Closure due to Fatal Stream with HTTP2

2020-06-26 Thread Chirag Dewan
u to > experiment with. > > Some additional questions that might aid understanding: > > - What is the typical response size for one of these requests? > - How long does a typical test take to process? > - What are the GC roots for those RequestInfo objects? > > Thank

Re: Connection Closure due to Fatal Stream with HTTP2

2020-06-25 Thread Chirag Dewan
Hi Mark, Its the default APR connector with 150 Threads. Chirag On Thu, 25 Jun, 2020, 7:30 pm Mark Thomas, wrote: > On 25/06/2020 11:00, Chirag Dewan wrote: > > Thanks for the quick check Mark. > > > > These are the images I tried referring to: > > > > htt

Re: Connection Closure due to Fatal Stream with HTTP2

2020-06-25 Thread Chirag Dewan
On 24/06/2020 12:17, Mark Thomas wrote: > > On 22/06/2020 11:06, Chirag Dewan wrote: > >> Hi, > >> > >> Update: We found that Tomcat goes OOM when a client closes and opens new > >> connections every second. In the memory dump, we see a lot of > >>

Re: Connection Closure due to Fatal Stream with HTTP2

2020-06-22 Thread Chirag Dewan
uch a situation. Thanks in advance. On Sun, Jun 14, 2020 at 11:30 AM Chirag Dewan wrote: > Hi, > > This is without load balancer actually. I am directly sending to Tomcat. > > Update: > > A part issue I found was to be 9.0.29. I observed that when request were > timed

Re: Connection Closure due to Fatal Stream with HTTP2

2020-06-13 Thread Chirag Dewan
:42 schrieb Chirag Dewan: > > Hi, > > > > We are observing that under high load, my clients start receiving a > GoAway > > frame with error: > > > > *Connection[{id}], Stream[{id}] an error occurred during processing that > > was fatal to the connection.* >

Connection Closure due to Fatal Stream with HTTP2

2020-06-12 Thread Chirag Dewan
Hi, We are observing that under high load, my clients start receiving a GoAway frame with error: *Connection[{id}], Stream[{id}] an error occurred during processing that was fatal to the connection.* Background : We have implemented our clients to close connections after every 500-1000 requests

Re: Performance Comparison HTTP1 vs HTTP2 in Tomcat 9.0.29

2020-05-22 Thread Chirag Dewan
22, 2020 at 4:29 PM Mark Thomas wrote: > On 22/05/2020 11:23, Chirag Dewan wrote: > > Hi, > > > > I am trying to move to HTTP2 based APR connector from my HTTP1 based > > connector because of some customer requirements. > > > > I am trying to form some so

Performance Comparison HTTP1 vs HTTP2 in Tomcat 9.0.29

2020-05-22 Thread Chirag Dewan
Hi, I am trying to move to HTTP2 based APR connector from my HTTP1 based connector because of some customer requirements. I am trying to form some sort of throughput benchmark for HTTP2 in comparison to HTTP1. I have a simple Jersey service that accepts a JSON request and sends 200 with some head

Re: HTTP2 Pseudo Headers in HttpServletRequest

2020-04-15 Thread Chirag Dewan
Hi Mark, Thanks for the quick update. That would work. Thank you, Chirag On Wed, 15 Apr, 2020, 1:00 PM Mark Thomas, wrote: > On 15/04/2020 06:32, Chirag Dewan wrote: > > Hi, > > > > I have a Jersey application deployed on an Embedded Tomcat 9.0.29. I have > > ena

HTTP2 Pseudo Headers in HttpServletRequest

2020-04-14 Thread Chirag Dewan
Hi, I have a Jersey application deployed on an Embedded Tomcat 9.0.29. I have enabled the APR connector with HTTP2 Upgrade Protocol to support HTTP2 requests. Now when I try to get :authority and :path header from the HttpServletRequest, I get null. I debugged this and saw that the coyoteRequest

Re: Issue while using SSL with Embedded Tomcat 6.0.37

2013-10-10 Thread Chirag Dewan
Hi All, Thanks a lot for your assistance. I enabled these protocols but that dint help. Finally after 24 hours of digging in I figured out the problem. We found out that the clients connection timeout was close to around 80mins(which is inexplicable) and there is a firewall in between the clien

Re: Issue while using SSL with Embedded Tomcat 6.0.37

2013-10-09 Thread Chirag Dewan
Hi , A small update. The customers client is C++ client,which uses OpenSSL. And I found that client hello message is SSLv2 protocol. And the server response(server hello) is a TLSv1 protocol. Is there something I am missing? Chirag On Wednesday, 9 October 2013 9:25 PM, Chirag Dewan wrote

Re: Issue while using SSL with Embedded Tomcat 6.0.37

2013-10-09 Thread Chirag Dewan
Chris, This is a legacy code and do need some tweaks for sure. Regarding the issue,for some other Cipher as well the handshaking is failing. I get a TCP_ZERO_WINDOW in my snoops. And thus resulting in Server sending a RST to client. Chirag Sent from Yahoo! Mail on Android

Re: Issue while using SSL with Embedded Tomcat 6.0.37

2013-10-09 Thread Chirag Dewan
t running. Chris,"cipherSet" is a configurable parameter. I am usually using TLS_DHE_RSA_WITH_AES_128_CBC_SHA for testing purpose. Thanks! Chirag On Wednesday, 9 October 2013 7:17 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chirag, On

Re: Issue while using SSL with Embedded Tomcat 6.0.37

2013-10-09 Thread Chirag Dewan
tion. I am now setting cipher,as you can see. And it is selecting the specified cipher,so that way I can limit the cipher sets to be selected by Server. On Wednesday, 9 October 2013 5:45 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chirag, On 10/8/13 9:48 PM

Re: Issue while using SSL with Embedded Tomcat 6.0.37

2013-10-08 Thread Chirag Dewan
hirag On Tuesday, 8 October 2013 9:10 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chirag, On 10/8/13 6:01 AM, Chirag Dewan wrote: > I am using Embedded Tomcat 6.0.37. I have a servlet which is > running over HTTPS using SSL Connector. I have a Ja

Re: Issue while using SSL with Embedded Tomcat 6.0.37

2013-10-08 Thread Chirag Dewan
Hi, For this particular cipher, the server sends a RST to the client after the certificate exchange is done. And the handshaking fails,for the first time only. Second request onwards handshaking happens and the traffic flows as usual. What I understand is,I can provide a set of ciphers to the c

Issue while using SSL with Embedded Tomcat 6.0.37

2013-10-08 Thread Chirag Dewan
cypher suite? Or any other way that I can resolve this issue. Thanks a lot. Chirag Dewan

Re: OOME issue in Tomcat 6.0.18(with SSL)

2013-06-12 Thread Chirag Dewan
entation,which creates sockets. Chirag. From: Christopher Schultz To: Tomcat Users List Sent: Wednesday, 12 June 2013 8:14 PM Subject: Re: OOME issue in Tomcat 6.0.18(with SSL) -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chirag, On 6/12/13 1:01 AM, Chirag Dewan wrote: >

Re: OOME issue in Tomcat 6.0.18(with SSL)

2013-06-11 Thread Chirag Dewan
AM Subject: RE: OOME issue in Tomcat 6.0.18(with SSL) > From: Chirag Dewan [mailto:chirag.dewa...@yahoo.in] > Subject: OOME issue in Tomcat 6.0.18(with SSL) > I am using Embedded Tomcat 6.0.18. Which is nearly five years old.  Many, many fixes (including serious security-related on

OOME issue in Tomcat 6.0.18(with SSL)

2013-06-11 Thread Chirag Dewan
Hi All, I am facing an Out of Memory Issue with my application. I am using Embedded Tomcat 6.0.18. I have a simple servlet deployed which does nothing but set the HTTPResponse and return it. Now I have 2 testing clients Client 1: HTTPClient 3.1 with MultiThreadedHttpConnectionManager with SSL

Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7

2013-05-24 Thread Chirag Dewan
Chris, Sorry I should have posted the data first. I probably missed the most important part of a load test. I will do it shortly. And I am not using Jmeter now,I am using an http client for load test. I am testing it on Solaris x86 server 64bit JVM. And i have collected the samples for Tomcat

Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7

2013-05-23 Thread Chirag Dewan
ist Sent: Friday, 24 May 2013 3:24 AM Subject: Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7 -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chirag, On 5/23/13 1:21 PM, Chirag Dewan wrote: > With c=1 it is 70k req/sec and with c=2 it is 35k in both i.e the &g

Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7

2013-05-23 Thread Chirag Dewan
Chris, With c=1 it is 70k req/sec and with c=2 it is 35k in both i.e the total req/sec cannot be scaled beyond 70k. With Tomcat 6 it is 60k in both clients i.e total of 120k. I do not expect more than 75k req/sec being served by Tomcat 7,but its the benchmark set by Tomcat 6 which I can't over

Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7

2013-05-23 Thread Chirag Dewan
: SHA256 Chirag, On 5/21/13 11:03 PM, Chirag Dewan wrote: > I was monitoring the CPU utilization specifically. I can > compromise on 1 less transactions/sec,but 80-90% utilization is > not good. While it's nice to reduce resource utilization as much as possible, why would you want

Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7

2013-05-22 Thread Chirag Dewan
PGP SIGNED MESSAGE- Hash: SHA256 Chirag, On 5/21/13 11:03 PM, Chirag Dewan wrote: > I was monitoring the CPU utilization specifically. I can > compromise on 1 less transactions/sec,but 80-90% utilization is > not good. While it's nice to reduce resource utilization as mu

Re: RE: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7

2013-05-21 Thread Chirag Dewan
Yes.  With same JVM on both Solaris and Linux i.e Java 1.6.39. It is 64 bit version. Thanks. Sent from Yahoo! Mail on Android

Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7

2013-05-21 Thread Chirag Dewan
. From: Christopher Schultz To: Tomcat Users List Sent: Tuesday, 21 May 2013 9:08 PM Subject: Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7 -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chirag, On 5/20/13 10:38 AM, Chirag Dewan

Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7

2013-05-21 Thread Chirag Dewan
?  Thanks. From: Chirag Dewan To: Tomcat Users List Sent: Monday, 20 May 2013 8:08 PM Subject: Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7 I ran my test client on  Hello World example servlet on Tomcat 7.0.30. It was 12K req/sec

Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7

2013-05-20 Thread Chirag Dewan
: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7 On 20/05/2013 06:59, Chirag Dewan wrote: > Hi, > > I have profiled the application using JProfiler,and it seems to me > that its my servlet which is taking the majority of time. > > > Though the time i

Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7

2013-05-19 Thread Chirag Dewan
throughput? Thanks. From: Chirag Dewan To: "users@tomcat.apache.org" ; "ma...@apache.org" Sent: Friday, 17 May 2013 6:30 PM Subject: Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7 I am running it on Solaris x

Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7

2013-05-17 Thread Chirag Dewan
I am running it on Solaris x86 server. I haven't even changed my code much. Let me add a profiler,will post the results. Thanks. Sent from Yahoo! Mail on Android

Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7

2013-05-17 Thread Chirag Dewan
Another important factor is the CPU utilization.  Earlier for same trans/sec it was 40% now its close to 80%. And yes,the OS,JVM and memory setting are unchanged. Thanks. Sent from Yahoo! Mail on Android

Re: Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7

2013-05-17 Thread Chirag Dewan
I am comparing tomcat 6.0.18 with tomcat 7.0.30. Would adding NIO or APR connector help? Currently I am using default(BIO) connector. Thanks. Sent from Yahoo! Mail on Android

Performance Issue while upgrading from Embedded Tomcat 6 to Tomcat 7

2013-05-17 Thread Chirag Dewan
Hi All, I have upgraded my application from Embedded Tomcat 6 to Embedded Tomcat 7. With Tomcat 6, I was getting around 7 Transactions per sec with a simple HTTP service,which sets the HTTPResponse and returns it. Now with Tomcat 7,I am getting 54000 transactions per sec. Going through th

Unable to deploy web service on Embedded Tomcat 7.0.30

2013-05-16 Thread Chirag Dewan
__ From: Mark Thomas To: Tomcat Users List Sent: Thursday, 16 May 2013 3:04 PM Subject: Re: Embedded Tomcat 7 SSL Properties On 16/05/2013 04:09, Chirag Dewan wrote: > > > Sorry for the previous mail. Adding Subject. > > ----- Forwarded Message

Embedded Tomcat 7 SSL Properties

2013-05-15 Thread Chirag Dewan
Sorry for the previous mail. Adding Subject. - Forwarded Message - From: Chirag Dewan To: Tomcat Users List Sent: Thursday, 16 May 2013 8:37 AM Subject: Hi All, I am upgrading my Embedded Tomcat 6 to Tomcat 7. I am adding an HTTPS connector to my service. Code for Tomcat 6

Re: Port still busy after removing connector in Embedded Tomcat 7.0.30

2013-05-13 Thread Chirag Dewan
ent: Tuesday, 14 May 2013 2:41 AM Subject: Re: Port still busy after removing connector in Embedded Tomcat 7.0.30 On 13/05/2013 16:34, Chirag Dewan wrote: > Hi, > > I am embedding  Apache Tomcat 7.0.30 in my application. I am using the Tomcat > class,and my application requires dynam

Re: Port still busy after removing connector in Embedded Tomcat 7.0.30

2013-05-13 Thread Chirag Dewan
Monday, 13 May 2013 10:13 PM Subject: Re: Port still busy after removing connector in Embedded Tomcat 7.0.30 Chirag Dewan wrote: >> How do you observe that the connector is still bound to the port? > > Yes. I used netstat to observe that. Plus when I try to add another context &

Re: Port still busy after removing connector in Embedded Tomcat 7.0.30

2013-05-13 Thread Chirag Dewan
edded Tomcat 7.0.30 -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chirag, On 5/13/13 11:34 AM, Chirag Dewan wrote: > I am embedding  Apache Tomcat 7.0.30 in my application. I am using > the Tomcat class,and my application requires dynamic addition and > removal of connectors(HTTP).

Port still busy after removing connector in Embedded Tomcat 7.0.30

2013-05-13 Thread Chirag Dewan
Hi, I am embedding  Apache Tomcat 7.0.30 in my application. I am using the Tomcat class,and my application requires dynamic addition and removal of connectors(HTTP). Now while removing the connectors,the application gets undeployed but the port remains occupied and the connector continue to li