Re: Usage of SynchronizedStack/Queue

2020-06-08 Thread Martin Grigorov
On Fri, Jun 5, 2020 at 6:29 PM Mark Thomas wrote: > On 05/06/2020 14:08, Martin Grigorov wrote: > > For load testing it I use wrk: wrk -c96 -t8 -d60s https://host:port/test > > The GC JVM arguments are: -Xloggc:./gc.log -XX:+PrintGCDetails > -verbose:gc > > JDK 1.8.0 b252 > > > > The GC logs are:

Re: Usage of SynchronizedStack/Queue

2020-06-05 Thread Mark Thomas
On 05/06/2020 14:08, Martin Grigorov wrote: > For load testing it I use wrk: wrk -c96 -t8 -d60s https://host:port/test > The GC JVM arguments are: -Xloggc:./gc.log -XX:+PrintGCDetails -verbose:gc > JDK 1.8.0 b252 > > The GC logs are: > - Tomcat 9.0.x (uses > SynchronizedQueue/Stack):  > https://gi

Re: Usage of SynchronizedStack/Queue

2020-06-05 Thread Rémy Maucherat
On Fri, Jun 5, 2020 at 3:08 PM Martin Grigorov wrote: > Hi, > > On Thu, Jun 4, 2020 at 9:28 PM Rémy Maucherat wrote: > >> On Thu, Jun 4, 2020 at 6:16 PM Mark Thomas wrote: >> >>> On 04/06/2020 16:33, Martin Grigorov wrote: >>> > Hi team, >>> > >>> > I am profiling our application and I've found

Re: Usage of SynchronizedStack/Queue

2020-06-05 Thread Martin Grigorov
Hi, On Thu, Jun 4, 2020 at 9:28 PM Rémy Maucherat wrote: > On Thu, Jun 4, 2020 at 6:16 PM Mark Thomas wrote: > >> On 04/06/2020 16:33, Martin Grigorov wrote: >> > Hi team, >> > >> > I am profiling our application and I've found that Tomcat uses its own >> > Synchronized Queue/Stack implementati

Re: Usage of SynchronizedStack/Queue

2020-06-04 Thread Rémy Maucherat
On Thu, Jun 4, 2020 at 6:16 PM Mark Thomas wrote: > On 04/06/2020 16:33, Martin Grigorov wrote: > > Hi team, > > > > I am profiling our application and I've found that Tomcat uses its own > > Synchronized Queue/Stack implementations which synchronize on instance > > level, i.e. their methods are

Re: Usage of SynchronizedStack/Queue

2020-06-04 Thread Mark Thomas
On 04/06/2020 16:33, Martin Grigorov wrote: > Hi team, > > I am profiling our application and I've found that Tomcat uses its own > Synchronized Queue/Stack implementations which synchronize on instance > level, i.e. their methods are 'synchronized'. ~8 years ago when I was profiling Tomcat and w

Usage of SynchronizedStack/Queue

2020-06-04 Thread Martin Grigorov
Hi team, I am profiling our application and I've found that Tomcat uses its own Synchronized Queue/Stack implementations which synchronize on instance level, i.e. their methods are 'synchronized'. The javadoc for those two classes say that they are preferred because they are GC-friendlier than ja