Foren

Liferay tomcat not loading

thumbnail
Mani kandan, geändert vor 11 Jahren.

Liferay tomcat not loading

Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
Hi all,

My liferay page not getting load, once I restart the tomcat then it will get loading.

This is happening 2 to 3 times in a day.

When I restart the server, there is a memory leak error showing in the logs.

What is the problem for this problem?
thumbnail
Paul ., geändert vor 11 Jahren.

RE: Liferay tomcat not loading

Liferay Master Beiträge: 522 Beitrittsdatum: 29.08.11 Neueste Beiträge
Could you check you portal-ext.properties for any special configurations that you might have done. Also check if the problem is in you default installation or with something you implementation. Do post the stack trace as well.
thumbnail
Mani kandan, geändert vor 11 Jahren.

RE: Liferay tomcat not loading

Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
Thanks for the reply, Here I have attached my logs and portal-ext.properties file.
thumbnail
Paul ., geändert vor 11 Jahren.

RE: Liferay tomcat not loading

Liferay Master Beiträge: 522 Beitrittsdatum: 29.08.11 Neueste Beiträge
Could you deploy your plugins on liferay one at a time and check which one does not deploy correctly? May not be the best way to check it, just a suggestion
thumbnail
Mani kandan, geändert vor 11 Jahren.

RE: Liferay tomcat not loading

Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
Everything deploying correctly, Is there any connections or maxactive problem? my maxactive=100
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: Liferay tomcat not loading

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Try setting following tomcat settings to true:

clearReferencesStopThreads
clearReferencesStopTimerThreads

http://tomcat.apache.org/tomcat-7.0-doc/config/context.html
thumbnail
Mani kandan, geändert vor 11 Jahren.

RE: Liferay tomcat not loading

Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
Hitoshi Ozawa:

clearReferencesStopThreads
clearReferencesStopTimerThreads


Where I need to set this?
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: Liferay tomcat not loading

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Refer to "Defining a context" in the Tomcat reference page I gave.

liferay-portal-6.1.1-ce-ga2\tomcat-7.0.27\conf\context.xml

<Context clearReferencesStopThreads="true" clearReferencesStopTimerThreads="true" >
</Context>

Note, that this may make your tomcat unstable. If the problem is with your portlet, the best way is to terminate threads using ServletContextListener.
thumbnail
Mani kandan, geändert vor 11 Jahren.

RE: Liferay tomcat not loading

Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
I tried what you gave here, but still having problem. Liferay blank page itself not loading, daily it needs to restart the server. Once restart it then its loading.
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: Liferay tomcat not loading

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Sorry but out of ideas. I have liferay with tomcat in production without any problem. Hope somebody else can help you.
thumbnail
Mani kandan, geändert vor 11 Jahren.

RE: Liferay tomcat not loading

Expert Beiträge: 492 Beitrittsdatum: 15.09.10 Neueste Beiträge
If many people use our site its getting stuck, its keep loading till restart the server.

Liferay blank page itself not loading.

Once restart the server then all the pages are loading.
thumbnail
David H Nebinger, geändert vor 11 Jahren.

RE: Liferay tomcat not loading

Liferay Legend Beiträge: 14917 Beitrittsdatum: 02.09.06 Neueste Beiträge
I'd suggest running it in profile mode in the Liferay IDE.

It should give you some perspective on the threads that are running and help diagnose which one(s) aren't shutting down.