Slow startup on Tomcat 7.0.57 because of SecureRandom

I faced same issue of tomcat being too slow to start. I followed this article on DigitalOcean and installed haveged instead of using urandom. haveged is a solution which will not compromise on security. haveged allows generating randomness based on variations in code execution time on a processor. Since it’s nearly impossible for one piece … Read more

Tomcat7 bind to port 80 fails in Ubuntu 14.04LTS

Following works: apt-get install authbind First, set AUTHBIND=yes in /etc/default/tomcat7 file sudo touch /etc/authbind/byport/80 sudo chmod 500 /etc/authbind/byport/80 sudo chown tomcat7 /etc/authbind/byport/80 There was a reference URL here, but the website has been hacked (marked as unsafe in Edge, and Chrome prompts me to install a browser extension).

How do I increase memory on Tomcat 7 when running as a Windows Service?

Assuming that you’ve downloaded and installed Tomcat as Windows Service Installer exe file from the Tomcat homepage, then check the Apache feather icon in the systray (or when absent, run Monitor Tomcat from the start menu). Doubleclick the feather icon and go to the Java tab. There you can configure the memory. Restart the service … Read more

What to do with annotations after setting metadata-complete=”true” (which resolved slow Tomcat 7 start-up)?

The slow startup is caused because every single class file in every single JAR file in /WEB-INF/lib is also scanned for Servlet 3.0 specific annotations. You apparently have a lot of (large) JAR files in /WEB-INF/lib. The metadata-complete=”true” indicates that the JAR files in /WEB-INF/lib doesn’t need to be scanned for Servlet 3.0 specific annotations, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)