Foros de discusión

Liferay login slow

Dan Le, modificado hace 13 años.

Liferay login slow

New Member Mensaje: 1 Fecha de incorporación: 22/12/10 Mensajes recientes
Hi, I'm having some problem with liferay login with AD LDAP.
I have liferay on a linux server, and another database server.
When developing, I use IP address, which works fine.
But when I use DNS, login take a long time, which may up to 24 secs.
I checked with firebug for the request and saw that, when user login, the "Get c" request takes up to 19 secs.
But when I put both liferay and my db into my desktop, everything works fine, login only takes about 1.5 secs.
So I tried modify some configuration on my actual server and got a funny result: after a slow login (about 30 secs) is a faster login (about 4 to 8 secs).
Here is the config I modified:

web.xml:

<welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
</welcome-file-list>

index.jsp:

&lt;%
/**
 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
%&gt;

&lt;%@ page import="com.liferay.portal.kernel.servlet.HttpHeaders" %&gt;
&lt;%@ page import="com.liferay.portal.model.LayoutSet" %&gt;
&lt;%@ page import="com.liferay.portal.util.PortalUtil" %&gt;
&lt;%@ page import="com.liferay.portal.util.WebKeys" %&gt;

&lt;%

// According to http://www.webmasterworld.com/forum91/3087.htm a semicolon in
// the URL for a meta-refresh tag does not work in IE 6.

// To work around this issue, we use a URL without a session id for meta-refresh
// and rely on the load event on the body element to properly rewrite the URL.

String redirect = null;

LayoutSet layoutSet = (LayoutSet)request.getAttribute(WebKeys.VIRTUAL_HOST_LAYOUT_SET);
redirect = PortalUtil.getPathMain();

response.setHeader(HttpHeaders.LOCATION, redirect);
response.setHeader(HttpHeaders.CONNECTION, HttpHeaders.CONNECTION_CLOSE_VALUE);

response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
%&gt;




	<title></title>
	<meta content="0; url=<%= PortalUtil.getPathMain () %>" http-equiv="refresh">









I think this could be a result of some misconfig of the dns server, but I still need to check for other problems that may occur.
So can anyone please explain to me how liferay login function work?(when user click login, which action will first occur, which page will be called for a redirect)?

Many thanks And sorry for my bad English
streambigs streambigs, modificado hace 11 años.

RE: Liferay login slow

New Member Mensajes: 8 Fecha de incorporación: 27/04/12 Mensajes recientes
Hello Everybody

We are running liferay 6.0.6 CE on tomcat 6.0.18.

We deployed liferay war file on tomcat because we have others applications running on the same server like web sites

Now we have a login problem :

1. the admin user can login no problem

2. any others users can't login because liferay does not respond , it truns arrond for 1 or 2 minute before return this message :
---------
Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /sicl/fr/c.

Reason: Error reading from remote server
---------


"sicl" is the context of our liferay deployed.


Any hel is welcome.

Thanks in advance.
thumbnail
Sandeep Nair, modificado hace 11 años.

RE: Liferay login slow

Liferay Legend Mensajes: 1744 Fecha de incorporación: 6/11/08 Mensajes recientes
Have you set the follwoing property in portal-ext.properties

portal.ctx=/sicl
streambigs streambigs, modificado hace 11 años.

RE: Liferay login slow

New Member Mensajes: 8 Fecha de incorporación: 27/04/12 Mensajes recientes
Hi Sandeep, sorry for my late,

Yes I set the context exactly in portal-ext.properties file.

Now I am working on upgrade to 6.1.0 GA1 , but no success.

I created a new thread at :
http://www.liferay.com/community/forums/-/message_boards/message/13717479

Could you please read it and tell me what I miss .


Thanks in advance.