Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Manikandan S
Liferay tomcat not loading
September 17, 2012 1:52 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

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?
Bart Simpson
RE: Liferay tomcat not loading
September 17, 2012 2:00 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

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.
Manikandan S
RE: Liferay tomcat not loading
September 17, 2012 2:34 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Thanks for the reply, Here I have attached my logs and portal-ext.properties file.
Attachments: logs.txt (73.0k), portal-ext.properties (2.3k)
Bart Simpson
RE: Liferay tomcat not loading
September 17, 2012 2:49 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

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
Manikandan S
RE: Liferay tomcat not loading
September 17, 2012 5:11 AM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Everything deploying correctly, Is there any connections or maxactive problem? my maxactive=100
Hitoshi Ozawa
RE: Liferay tomcat not loading
September 17, 2012 6:39 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Try setting following tomcat settings to true:

clearReferencesStopThreads
clearReferencesStopTimerThreads

http://tomcat.apache.org/tomcat-7.0-doc/config/context.html
Manikandan S
RE: Liferay tomcat not loading
September 17, 2012 9:22 PM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

Hitoshi Ozawa:

clearReferencesStopThreads
clearReferencesStopTimerThreads


Where I need to set this?
Hitoshi Ozawa
RE: Liferay tomcat not loading
September 18, 2012 3:54 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

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.
Manikandan S
RE: Liferay tomcat not loading
October 3, 2012 10:21 PM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

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.
Hitoshi Ozawa
RE: Liferay tomcat not loading
October 3, 2012 11:10 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Sorry but out of ideas. I have liferay with tomcat in production without any problem. Hope somebody else can help you.
Manikandan S
RE: Liferay tomcat not loading
October 4, 2012 10:23 PM
Answer

Manikandan S

Rank: Expert

Posts: 492

Join Date: September 15, 2010

Recent Posts

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.
David H Nebinger
RE: Liferay tomcat not loading
October 4, 2012 11:07 PM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11046

Join Date: September 1, 2006

Recent Posts

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.