Tomcat is taking too much time to deploy web application while start up
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
After setting export JAVA_OPTS='-Xms512M -Xmx2048M-XX:MaxPermSize=512M', my tomcat starts and stops with no issues.But i am executing this export command every time when i restart tomcat, as export command set variable temporarily.
so can anyone suggests me, under which file i have to add this entry so that this JAVA_OPTS will remain permanent in my os.
This is going to work only if you want to login as root and then start tomcat.
If you want tomcat to start on system boot it's not going to work. You have to set JAVA_OPTS as I told you above
I have got the tomcat issue again. but this time its different and its in another server. when i tried to restart my tomcat i got these
Using CATALINA_BASE: /usr/local/apache-tomcat-6.0.20/
Using CATALINA_HOME: /usr/local/apache-tomcat-6.0.20/
Using CATALINA_TMPDIR: /usr/local/apache-tomcat-6.0.20//temp
Using JRE_HOME: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/
Aug 3, 2010 6:54:53 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:176)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java
:163)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
at java.net.Socket.connect(Socket.java:546)
at java.net.Socket.connect(Socket.java:495)
at java.net.Socket.<init>(Socket.java:392)
at java.net.Socket.<init>(Socket.java:206)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:422)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:337)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
My tomcat does not getting restarted.
These are the entries of logfile.
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
What should be the issue. suggestions please.
JAVA_OPTS='-Xms512M -Xmx1024M-XX:MaxPermSize=512M. This is the memory allocated.
What should be the issue.Any suggestions would be really helpful
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.