RE: VanillaLiferay 6.2 Community Edition startup time take more than 20 min

Vishal Shah, modified 5 Years ago. Junior Member Posts: 33 Join Date: 2/1/12 Recent Posts
Hi,Vanila Liferay 6.2 Community Edition startup time take more than 20 minutes
Only setup Oracle database 12c with vanilla Liferay 6.2 Community edition.
It take time on " org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time."
On this line its take more than 5 to 10 minutes some time take more than 20 minutes.What I have to check and what I have to do?
thumbnail
David H Nebinger, modified 5 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
Are you claiming this for the first time startup or do you think it consistently takes 20 mins?

There's a lot of information missing here... Did you adjust memory settings or is it doing a lot of GCs? is the DB available on a slow link or a fast one? Is the system sufficiently powered or is it a low end 686?  Are you using the latest version from 6.2 or is the the 6.2.0 GA?

I mean, it's easy to claim nonsense like "it takes 20 minutes to launch" but that was never a reality the product faced. Anything you're seeing is likely going to point back to your own environment.
Amos Fong, modified 5 Years ago. Junior Member Posts: 33 Join Date: 2/1/12 Recent Posts
Hi David,Are you claiming this for the first time startup or do you think it consistently takes 20 mins?This happen every time even after database table created.
Did you adjust memory settings or is it doing a lot of GCs?
No settings doing for memory and GCs. - Just start vanilla tomcat with with Oracle database connectivity no one war deploy in tomcat.
is the DB available on a slow link or a fast one? 
DB link speed average <= 0.300ms
Is the system sufficiently powered or is it a low end 686? 
Not getting - What exact information need?
Are you using the latest version from 6.2 or is the the 6.2.0 GA?
Liferay CE 6.2 GA 6
thumbnail
David H Nebinger, modified 5 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
I would start by bumping the memory up to 4 or 8gb. I think the bundle at that time was only using 1g or 2g which was always kind of tight, imho.
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
Vishal Shah:

Hi David,Are you claiming this for the first time startup or do you think it consistently takes 20 mins?This happen every time even after database table created.
I don't understand that one.
Do you mean, when the Liferay server is initially setup? Or when you create a table yourself on the server and restart the Liferay server?
How did you configure the database connection? In portal*.properties? Or JNDI? Or ...
If you compare the startup time with and without an oracle database connection string, is there a difference?
Do you have high CPU/no CPU/... in that time? No CPU could mean, the server is waiting for something.
I once had an issue, I fear, I don't remember it in detail, that the oracle server had a connection limit of 1. For some reason, when I restarted the service, it was not closed correctly and the client needed to wait 10 minutes or so to be able to reconnect. (I don't remember what the exact problem was)
If you are on Linux, could you do a kill -3 on the Liferay process? It should create a threaddump into the logfile. It should show you, where the process is hanging. You might also try to use some java vm monitoring tool to narrow it down.
Could you check all logfiles? e.g. on Windows there are multiple logfiles written and .err and .out. Maybe you find something in there.
thumbnail
Fernando Fernandez, modified 5 Years ago. Expert Posts: 401 Join Date: 8/22/07 Recent Posts
Hi Vishal ,

I'd suggest also that you check network and storage response times. If you're running in a VM, check the real availability of resources - maybe other VMs are using all CPU&disk? If possible, migrate the data to a real machine with a local DB on local disk. I once did this simple test and my small computer was 7 times faster than the super expensive vmware+shared network storage the customer had.
HTH
Fernando