Fórumok

Long Tomcat Startup Times

Terry Latanville, módosítva 17 év-val korábban

Long Tomcat Startup Times

New Member Bejegyzések: 3 Csatlakozás dátuma: 2006.12.21. Legújabb bejegyzések
I completed Installation 1 - 4, Eclipse 1 - 2 and JSP Portlet 1 (as available on the Presentations Page) and managed (after a few hiccups) to get everything working.

I have run into an issue when I try to start tomcat; whenever I start tomcat it takes about 1/2 an hour to re-load, it just hangs on the following line:

13:26:49,140 INFO  [AutoDeployDir:76] Auto deploy scanner started for \home\liferay\deploy

Eventually it will load and I can navigate to http://localhost:8080 which gives me a homepage but it is quite annoying to have to wait 1/2 an hour whenever you make a change to your sample .JSP file.

INFO: Server startup in 1682250 ms


Please help!

My Setup:
Liferay 4.2.0
- liferay-portal-src-4.2.0.zip
- liferay-portal-tomcat-jdk5-4.2.0.zip

Eclipse 3.2.1 + Ant 3.1.100

Directories
- C:/Liferay/portal
- C:/Liferay/tomcat
- C:/Liferay/ext

Database
- MySQL 5 (v 14.12 Distrib 5.0.27)
thumbnail
Michael Young, módosítva 17 év-val korábban

RE: Long Tomcat Startup Times

Liferay Master Bejegyzések: 846 Csatlakozás dátuma: 2004.08.05. Legújabb bejegyzések
You must have something configure incorrectly. If you have sufficient RAM and a decent processor your startup times should not be any longer than 15 seconds.
Terry Latanville, módosítva 17 év-val korábban

RE: Long Tomcat Startup Times

New Member Bejegyzések: 3 Csatlakozás dátuma: 2006.12.21. Legújabb bejegyzések
I agree, tomcat should start up in 15 sec, and it did initially. As soon as I started adding the sample .JSP file the startup times were a constant 1/2 an hour.

I removed the sample .JSP and there was no change.

I'm going to try to setup the development environment (again!), but is anyone else having this problem?

Additionally, I get

Dec 21, 2006 10:15:41 AM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Dec 21, 2006 10:15:41 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
Failed to shut down: java.lang.NullPointerException

every time I shut tomcat down (following the instructions to the letter)
Terry Latanville, módosítva 17 év-val korábban

RE: Long Tomcat Startup Times

New Member Bejegyzések: 3 Csatlakozás dátuma: 2006.12.21. Legújabb bejegyzések
I've re-set up the development environment and as a stock installation tomcat starts up in about 50 sec.

I've added the following code as per the example .ppt file

ext/ext-web/docroot/WEB-INF/portlet-ext.xml
<portlet>
 <portlet-name>EXT_2</portlet-name>
 <display-name>JSP Portlet Introduction</display-name>
 <portlet-class>com.liferay.portlet.JSPPortlet</portlet-class>
 <init-param>
  <name>view-jsp</name>
  <value>/portlet/ext/jsp_portlet/view.jsp</value>
 </init-param>
 <expiration-cache>0</expiration-cache>
 <supports>
  <mime-type>text/html</mime-type>
 </supports>
 <resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle>
 <security-role-ref>
  <role-name>power-user</role-name>
 </security-role-ref>
 <security-role-ref>
  <role-name>user</role-name>
 </security-role-ref>
</portlet>


ext/ext-web/docroot/WEB-INF/liferay-portlet-ext.xml
<portlet>
 <portlet-name>EXT_2</portlet-name>
</portlet>


ext/ext-web/docroot/html/portlet/ext/jsp_portlet/view.jsp

 
 
  <h4>JSP Portlet!</h4>
  <p>&lt;% out.print("Hello World"); %&gt;</p>
 



C:\LR-Dev\ext&gt; ant deploy


It now starts up in about 1.5 minutes

This is quite an improvement over 1/2 an hour, I'll have to take a look at my other setup.
thumbnail
Sagadon Gafringo, módosítva 17 év-val korábban

RE: Long Tomcat Startup Times

New Member Bejegyzések: 11 Csatlakozás dátuma: 2007.01.19. Legújabb bejegyzések
I originally tried Liferay-JBoss-Tomcat and had consistent startup times of 5-6 minutes. After switching to Liferay-Tomcat, my startup times were over 1 minute every time. I had to remove all of the portlets provided with Liferay in order to break a 15 second startup time.

My Environment:

Liferay Portal Professional 4.2.1 (Machen / Build 3501 / January 10, 2007)
Intel Centrino - 2.13 GHz
2 GB RAM
WinXP


Suffice to say, if liferay developers are getting 15s startup times and liferay users are waiting 5 times longer, there is something fishy going on. One (or many) of the portlets are taking longer for some people. I even tried to turn up the debugging level with no luck. It is definitely immediately after the "Auto deploy scanner" message.
Michael Mikuta, módosítva 17 év-val korábban

RE: Long Tomcat Startup Times

New Member Bejegyzések: 7 Csatlakozás dátuma: 2007.03.14. Legújabb bejegyzések
Using LifeRay 4 Enterprise with JBoss. Experiencing 7 to 8 minute startup times. How does one "remove all the portlets" or remove non used LifeRay elements on startup? Getting start down to under 2 minutes would greatly help my development team.

Sagadon Gafringo:
I originally tried Liferay-JBoss-Tomcat and had consistent startup times of 5-6 minutes. After switching to Liferay-Tomcat, my startup times were over 1 minute every time. I had to remove all of the portlets provided with Liferay in order to break a 15 second startup time.

My Environment:

Liferay Portal Professional 4.2.1 (Machen / Build 3501 / January 10, 2007)
Intel Centrino - 2.13 GHz
2 GB RAM
WinXP


Suffice to say, if liferay developers are getting 15s startup times and liferay users are waiting 5 times longer, there is something fishy going on. One (or many) of the portlets are taking longer for some people. I even tried to turn up the debugging level with no luck. It is definitely immediately after the "Auto deploy scanner" message.
Francis Townsend, módosítva 17 év-val korábban

RE: Long Tomcat Startup Times

New Member Bejegyzések: 3 Csatlakozás dátuma: 2006.11.14. Legújabb bejegyzések
I have experienced this as well and tracked my particular issue down to the number of files in the document library.

I put the following in my portal-ext.properties file, it helped tremendously.

index.on.startup=false

See the FAQ on LiferayPedia:
Improving Startup Times
tabtim naja, módosítva 11 év-val korábban

RE: Long Tomcat Startup Times

New Member Bejegyzések: 7 Csatlakozás dátuma: 2012.10.22. Legújabb bejegyzések
do you know how to set liferay tomcat alway run until i log off from my server.
Ps. when i want liferay run ,,i will click startup.bat in bin folder.