Re: Massive Startup Time after Server Reboot
Sorry, you seem to be lost on a Windows Server... ...haveged won't help you in this situation. Markus Am 18.05.19 um 23:39 schrieb i...@flyingfischer.ch: > Try > > apt-get install haveged > update-rc.d haveged defaults > > This increases the system entropy for random generation and reduces boot > time for Tomcat considerably. > > Markus > > > Am 18.05.19 um 22:18 schrieb Rainer Jung: >> Most likely it hangs waiting for enough entropy for random number >> generator seeding. >> >> Try whether the problem goes away if you add >> >> -Djava.security.egd=file:/dev/urandom >> >> to you process flags. If you are using older Java than Java 8 (not >> possible for Tomcat 9 but just in case you also have older software >> stacks running), then it would be >> >> -Djava.security.egd=file:/dev/./urandom >> >> The cryptic /./ is not a typo, you would need it for Java before Java 8. >> >> If this doesn't help, then you should try capturing a few stack dumps >> (thread dumps) during the long startup time. People here can help >> interpret them. >> >> Regards, >> >> Rainer >> >> Am 18.05.2019 um 21:55 schrieb Jerry Malcolm: >>> This is a weird one. It started a few months ago. I have TC 9 >>> running on Windows Server 16. After I reboot the entire server, >>> Tomcat takes forever on startup. It normally starts in about 30 >>> seconds. But after a server reboot it takes up to 15 minutes... >>> chugging along at a snail's pace starting up all of the apps on all >>> of the virtual hosts. It always finally gets there with everything >>> successfully running. Other servers on the same box (Apache, JAMES, >>> ISC BIND, MySQL) don't have any problem starting up. CPU, Disk, >>> Memory, etc. usages are barely showing on the performance graphs. >>> There's nothing in the Catalina log or system.err other than showing >>> a couple of minute gap in the time stamp between each app as it >>> starts up. If I need to reboot again later, it boots again in about >>> 30 sec as expected. >>> >>> First question... any ideas off the top of your head that might be >>> causing this? >>> >>> Second question... is there any other logging I can turn on that >>> might explain what TC is blocking on? >>> >>> Thanks. >>> >>> Jerry >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Massive Startup Time after Server Reboot
Try apt-get install haveged update-rc.d haveged defaults This increases the system entropy for random generation and reduces boot time for Tomcat considerably. Markus Am 18.05.19 um 22:18 schrieb Rainer Jung: > Most likely it hangs waiting for enough entropy for random number > generator seeding. > > Try whether the problem goes away if you add > > -Djava.security.egd=file:/dev/urandom > > to you process flags. If you are using older Java than Java 8 (not > possible for Tomcat 9 but just in case you also have older software > stacks running), then it would be > > -Djava.security.egd=file:/dev/./urandom > > The cryptic /./ is not a typo, you would need it for Java before Java 8. > > If this doesn't help, then you should try capturing a few stack dumps > (thread dumps) during the long startup time. People here can help > interpret them. > > Regards, > > Rainer > > Am 18.05.2019 um 21:55 schrieb Jerry Malcolm: >> This is a weird one. It started a few months ago. I have TC 9 >> running on Windows Server 16. After I reboot the entire server, >> Tomcat takes forever on startup. It normally starts in about 30 >> seconds. But after a server reboot it takes up to 15 minutes... >> chugging along at a snail's pace starting up all of the apps on all >> of the virtual hosts. It always finally gets there with everything >> successfully running. Other servers on the same box (Apache, JAMES, >> ISC BIND, MySQL) don't have any problem starting up. CPU, Disk, >> Memory, etc. usages are barely showing on the performance graphs. >> There's nothing in the Catalina log or system.err other than showing >> a couple of minute gap in the time stamp between each app as it >> starts up. If I need to reboot again later, it boots again in about >> 30 sec as expected. >> >> First question... any ideas off the top of your head that might be >> causing this? >> >> Second question... is there any other logging I can turn on that >> might explain what TC is blocking on? >> >> Thanks. >> >> Jerry > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Massive Startup Time after Server Reboot
Most likely it hangs waiting for enough entropy for random number generator seeding. Try whether the problem goes away if you add -Djava.security.egd=file:/dev/urandom to you process flags. If you are using older Java than Java 8 (not possible for Tomcat 9 but just in case you also have older software stacks running), then it would be -Djava.security.egd=file:/dev/./urandom The cryptic /./ is not a typo, you would need it for Java before Java 8. If this doesn't help, then you should try capturing a few stack dumps (thread dumps) during the long startup time. People here can help interpret them. Regards, Rainer Am 18.05.2019 um 21:55 schrieb Jerry Malcolm: This is a weird one. It started a few months ago. I have TC 9 running on Windows Server 16. After I reboot the entire server, Tomcat takes forever on startup. It normally starts in about 30 seconds. But after a server reboot it takes up to 15 minutes... chugging along at a snail's pace starting up all of the apps on all of the virtual hosts. It always finally gets there with everything successfully running. Other servers on the same box (Apache, JAMES, ISC BIND, MySQL) don't have any problem starting up. CPU, Disk, Memory, etc. usages are barely showing on the performance graphs. There's nothing in the Catalina log or system.err other than showing a couple of minute gap in the time stamp between each app as it starts up. If I need to reboot again later, it boots again in about 30 sec as expected. First question... any ideas off the top of your head that might be causing this? Second question... is there any other logging I can turn on that might explain what TC is blocking on? Thanks. Jerry - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Massive Startup Time after Server Reboot
This is a weird one. It started a few months ago. I have TC 9 running on Windows Server 16. After I reboot the entire server, Tomcat takes forever on startup. It normally starts in about 30 seconds. But after a server reboot it takes up to 15 minutes... chugging along at a snail's pace starting up all of the apps on all of the virtual hosts. It always finally gets there with everything successfully running. Other servers on the same box (Apache, JAMES, ISC BIND, MySQL) don't have any problem starting up. CPU, Disk, Memory, etc. usages are barely showing on the performance graphs. There's nothing in the Catalina log or system.err other than showing a couple of minute gap in the time stamp between each app as it starts up. If I need to reboot again later, it boots again in about 30 sec as expected. First question... any ideas off the top of your head that might be causing this? Second question... is there any other logging I can turn on that might explain what TC is blocking on? Thanks. Jerry - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat Authentication + Spring Security J2EEPreAuthentication
Am 2019-05-17 um 19:11 schrieb Nacho Ganguli: HELP, I NEED SOMEBODY, NOT JUST ANYBODY! HELP (It all started weeks ago when I tried unsuccessfully to use Tomcat's SSO Valve and decided to try pre-authentication...) We are developing a subscription-based "portal" webapp that we use to authenticate users and perform authentication flows such as expired passwords, expired subscriptions, forgot password, etc. Then, based on authorization role annotations, users are able to launch specific webapps via an API that uses a redirect. To do this, my "portal" webapp uses spring security configured to perform these authentication flows. MY PROBLEM: How do I configure Tomcat's container-based authentication to recognize authentication performed by Spring Security? I am afraid that this is not possible. Spring Security uses a filter the decorate the request for #getRemoteUser() and #isUserInRole() while Tomcat CMS operates on internal classes. Different approaches. Tomcat source code has to be modified to understand Spring Security's classes. I went away from Spring Security due to its complexity and to CAS only by passing with security:jee and using my custom Tomcat authentication implementation. If someone knows better, I'd be glad to hear his/her approach. Michael - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org