Hi Koti, There is not much between a daemon and not daemon thread in the JVM so until you:
* start tomcat in an already (over)loaded environment (OSGi, multi-server instances) or * have some agent or plugin using AttachCurrentThreadAsDaemon extension point there is no reason using yield would help. So high level I think it makes sense for you to create instructions to reproduce the issue (you create a github repository with scripts or a readme to explain how to evaluate and identity this slowness for anyone willing to help on this topic) cause technically it looks like you don't fix the root cause of your issue but a side effect. Regards, Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance> Le lun. 15 janv. 2024 à 09:45, koteswara Rao Gundapaneni < koti.gundapan...@gmail.com> a écrit : > On Sun, 14 Jan 2024, 18:13 koteswara Rao Gundapaneni, < > koti.gundapan...@gmail.com> wrote: > > > hi > > > > Daemon threads have identified the performance issue inorder to complete > . > > > > > Thread which is set as daemon by default has performance bottleneck > > I explain that as below > > myeg.setDaemon(true); > myeg.start(); > > > the above start() method is taking long time to complete which is by > default performance bottleneck > > > > > so bootstrap has its performance issue as this loader thread is using > > daemon thread. > > > > > In our code base we have lot of places where we have the code as below as > mentioned above. > > myeg.setDaemon(true); > myeg.start(); > > > > > inorder to resolve the issue we will yield the corresponding thread > > > > > Inorder to limit the time taking for above line of code we have the > solution like below > > myeg.setDaemon(true); > myeg.start(); > myeg.yield(); > > > the yield method declared as above will reduce the time taking for start > method > > > > Hope this will make sense if not I will write it in my own language telugu. > > > > regards, > > koti > > > > > > On Sun, Jan 14, 2024 at 4:13 AM Mark Thomas <ma...@apache.org> wrote: > > > >> You have yet to provide an explanation of the problem you are trying to > >> solve. > >> > >> Unless and until you provide the information requested, further messages > >> from you on this topic will be ignored. > >> > >> Mark > >> > >> > >> On 14/01/2024 12:05, koteswara Rao Gundapaneni wrote: > >> > hi team > >> > > >> > before clicking the link or check new private window in mozilla > >> > > >> > image.png > >> > > >> > > >> > > >> > when we browse the following link > >> > > >> > > >> > https://github.com/KoteswararaoGundapaneni/KotiSpringRepository/tree/master > >> < > >> > https://github.com/KoteswararaoGundapaneni/KotiSpringRepository/tree/master > >> > > >> > > >> > > >> > image.png > >> > > >> > Here the code page is shown as above > >> > > >> > > >> > > >> > On Fri, Jan 12, 2024 at 6:41 PM koteswara Rao Gundapaneni > >> > <koti.gundapan...@gmail.com <mailto:koti.gundapan...@gmail.com>> > wrote: > >> > > >> > > >> > hi mark, > >> > > >> > please check if the code is now available at your end I verified > >> > from my end it can be visible > >> > > >> > On Fri, Jan 12, 2024 at 1:28 AM koteswara Rao Gundapaneni > >> > <koti.gundapan...@gmail.com <mailto:koti.gundapan...@gmail.com>> > >> wrote: > >> > > >> > > >> > Sorry for the inconvenience as its been a private repo just > now > >> > i committed my changes to a new public repo > >> > > >> > > >> > https://github.com/KoteswararaoGundapaneni/KotiSpringRepository/tree/master > >> < > >> > https://github.com/KoteswararaoGundapaneni/KotiSpringRepository/tree/master > >> > > >> > > >> > Please find my attested changes in whole file > 'Bootstrap.java'. > >> > > >> > > >> > > >> > On Fri, Jan 12, 2024 at 12:24 AM Mark Thomas < > ma...@apache.org > >> > <mailto:ma...@apache.org>> wrote: > >> > > >> > On 12/01/2024 08:16, koteswara Rao Gundapaneni wrote: > >> > > Hi Team, > >> > > > >> > > As its milestone contribution for me I have added my > >> > branch along with the > >> > > pr created, > >> > > > >> > > Please add the reviewer here to commit the changes. > >> > > > >> > > Comparing > >> singlemanager...KoteswararaoGundapaneni-patch-1 · > >> > > KoteswararaoGundapaneni/MYREPO (github.com > >> > <http://github.com>) > >> > > > >> > < > >> > https://github.com/KoteswararaoGundapaneni/MYREPO/compare/singlemanager...KoteswararaoGundapaneni-patch-1 > >> < > >> > https://github.com/KoteswararaoGundapaneni/MYREPO/compare/singlemanager...KoteswararaoGundapaneni-patch-1 > >> >> > >> > > >> > That URI returns a 404. > >> > > >> > Unless and until you provide the information requested, > >> > further messages > >> > from you on this topic are likely to be ignored. > >> > > >> > Mark > >> > > >> > > >> > > >> > > > >> > > > >> > > ---------- Forwarded message --------- > >> > > From: Mark Thomas <ma...@apache.org > >> > <mailto:ma...@apache.org>> > >> > > Date: Sat, Jan 6, 2024 at 2:05 AM > >> > > Subject: Re: Supposed to provide performance at daemon > >> > thread in tomcat > >> > > To: <dev@tomcat.apache.org <mailto: > dev@tomcat.apache.org > >> >> > >> > > > >> > > > >> > > Please read my previous response and follow the > >> > instructions you were given. > >> > > > >> > > Mark > >> > > > >> > > > >> > > On 06/01/2024 06:26, koteswara Rao Gundapaneni wrote: > >> > >> Hi All, > >> > >> > >> > >> Somebody helps to give permissions to create the pull > >> > request as I have > >> > >> been trying to give the change at latest. > >> > >> > >> > >> regards, > >> > >> Koti > >> > >> > >> > >> On Fri, Jan 5, 2024 at 12:12 AM Mark Thomas > >> > <ma...@apache.org <mailto:ma...@apache.org>> wrote: > >> > >> > >> > >>> On 05/01/2024 05:15, koteswara Rao Gundapaneni wrote: > >> > >>>> It seems there are further permissions to be added > at > >> > Github > >> > >>>> > >> > >>>> *Error received via Github is as : **Pull request > >> > creation failed. > >> > >>>> Validation failed: must be a collaborator* > >> > >>> > >> > >>> Anyone can submit a pull request to the Tomcat > >> > repository. The only > >> > >>> exception is users who have been blocked for > >> spam/abuse. > >> > >>> > >> > >>>> Actually i tried creating the pull request for > >> > providing the solution > >> > > for > >> > >>>> daemon thread performance issue > >> > >>> > >> > >>> Please provide a link to your branch with the > proposed > >> fix. > >> > >>> > >> > >>> Please also provide a better description of the > problem > >> > you are trying > >> > >>> to solve. > >> > >>> > >> > >>> Mark > >> > >>> > >> > >>>> daemonthread background processing of the thread > >> > activity, and it's > >> > >>> taking > >> > >>>> significant amount of time during the tomcat launch. > >> > >>>> > >> > >>>> Simple hint over the next step of the solution is > just > >> > like > >> > >>>> > >> > >>>> yield() provides the greater performance to the > daemon > >> > thread startup. > >> > >>>> > >> > >>>> > >> > >>>> Regards, > >> > >>>> Koti > >> > >>>> > >> > >>> > >> > >>> > >> > > >> --------------------------------------------------------------------- > >> > >>> To unsubscribe, e-mail: > >> > dev-unsubscr...@tomcat.apache.org > >> > <mailto:dev-unsubscr...@tomcat.apache.org> > >> > >>> For additional commands, e-mail: > >> > dev-h...@tomcat.apache.org <mailto: > >> dev-h...@tomcat.apache.org> > >> > >>> > >> > >>> > >> > >> > >> > > > >> > > > >> > > >> --------------------------------------------------------------------- > >> > > To unsubscribe, e-mail: > >> dev-unsubscr...@tomcat.apache.org > >> > <mailto:dev-unsubscr...@tomcat.apache.org> > >> > > For additional commands, e-mail: > >> > dev-h...@tomcat.apache.org <mailto: > >> dev-h...@tomcat.apache.org> > >> > > > >> > > >> > > >> --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > >> > <mailto:dev-unsubscr...@tomcat.apache.org> > >> > For additional commands, e-mail: > dev-h...@tomcat.apache.org > >> > <mailto:dev-h...@tomcat.apache.org> > >> > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org > >> For additional commands, e-mail: dev-h...@tomcat.apache.org > >> > >> >