Forums

Home » Liferay Portal » English » Liferay Legacy

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Terry Latanville
Long Tomcat Startup Times
December 21, 2006 5:56 AM
Answer

Terry Latanville

Rank: New Member

Posts: 3

Join Date: December 21, 2006

Recent Posts

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:

113: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.

1INFO: 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)
Michael Young
RE: Long Tomcat Startup Times
December 21, 2006 6:23 AM
Answer

Michael Young

LIFERAY STAFF

Rank: Liferay Master

Posts: 842

Join Date: August 4, 2004

Recent Posts

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
RE: Long Tomcat Startup Times
December 21, 2006 7:19 AM
Answer

Terry Latanville

Rank: New Member

Posts: 3

Join Date: December 21, 2006

Recent Posts

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

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

every time I shut tomcat down (following the instructions to the letter)
Terry Latanville
RE: Long Tomcat Startup Times
December 21, 2006 8:19 AM
Answer

Terry Latanville

Rank: New Member

Posts: 3

Join Date: December 21, 2006

Recent Posts

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
 1<portlet>
 2 <portlet-name>EXT_2</portlet-name>
 3 <display-name>JSP Portlet Introduction</display-name>
 4 <portlet-class>com.liferay.portlet.JSPPortlet</portlet-class>
 5 <init-param>
 6  <name>view-jsp</name>
 7  <value>/portlet/ext/jsp_portlet/view.jsp</value>
 8 </init-param>
 9 <expiration-cache>0</expiration-cache>
10 <supports>
11  <mime-type>text/html</mime-type>
12 </supports>
13 <resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle>
14 <security-role-ref>
15  <role-name>power-user</role-name>
16 </security-role-ref>
17 <security-role-ref>
18  <role-name>user</role-name>
19 </security-role-ref>
20</portlet>


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


ext/ext-web/docroot/html/portlet/ext/jsp_portlet/view.jsp
1<html>
2 <head />
3 <body>
4  <h4>JSP Portlet!</h4>
5  <p><% out.print("Hello World"); %></p>
6 </body>
7</html>


1C:\LR-Dev\ext> 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.
Sagadon Gafringo
RE: Long Tomcat Startup Times
February 6, 2007 5:17 AM
Answer

Sagadon Gafringo

Rank: New Member

Posts: 11

Join Date: January 19, 2007

Recent Posts

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
RE: Long Tomcat Startup Times
March 13, 2007 8:14 PM
Answer

Michael Mikuta

Rank: New Member

Posts: 7

Join Date: March 13, 2007

Recent Posts

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
RE: Long Tomcat Startup Times
March 14, 2007 4:23 AM
Answer

Francis Townsend

Rank: New Member

Posts: 4

Join Date: November 14, 2006

Recent Posts

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
RE: Long Tomcat Startup Times
October 24, 2012 12:42 AM
Answer

tabtim naja

Rank: New Member

Posts: 7

Join Date: October 21, 2012

Recent Posts

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.