Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This tutorial is great… only problem: Tomcat7 takes roughly 5 minutes to start. Any idea why?
In looking at the Tomcat logs, I see:
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [211,911] milliseconds.
Then, Google Foo helped me find:
http://wiki.apache.org/tomcat/HowTo/FasterStartUp
I’m considering a move to the Oracle JDK unless anyone thinks it’s worth digging around and changing the random stuff as described?
Actually, by setting the following in /etc/default/tomcat7, I was fine: <pre> JAVA_OPTS=“-Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true -Xmx1024m -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC” </pre>
Hello I have an issue with my tomcat. After completing the first half of the tutorial everything was fine. I edited the webpage to say “It CHANGED !” instead of “It Works!” and it seemed fine. Then after creating the admin user and restarted the server the page load took about 5 minutes to load the plain “It Works !” page that I only hardly modified.
I have now noticed that this happens every single time i restart the tomcat7 service.
@carsonwevans: To speed up the restarting of Tomcat, checkout Brock’s comment above.
As for losing your changes when restarting, what file exactly are you editing? <pre> /var/lib/tomcat7/webapps/ROOT/index.html </pre>
under example link WebSocket (JSR356) Examples are not working I am always getting Info: WebSocket connection closed. Can some one help ?
To avoid pulling in a bunch of X11 and Gnome packages…
$ sudo apt-get --no-install-recommends install default-jdk
Hi I successfully installed tomcat7 in the localhost but when i open “http://localhost:8080/manager/html” it asking to enter username and password, i am entered the username and password which are defined in “tomcat-users.xml”, but it didn’t display the manager page still asking username and password.
can any one help.
// this written in /etc/tomcat7/tomcat-users.xml ``<?xml version=‘1.0’ encoding=‘utf-8’?>
<tomcat-users> <role rolename=“manager-gui”/> <tomcat-user> <user username=“username” password=“password” roles=“manager-gui,admin-gui” /> </tomcat-user> </tomcat-users>```
I am also facing same issue as Krishna. Hi Krishna…did you find any resolution to this?
Hello,
Try to clear the browser history (cookies, etc), and then try again to access the manager page.