Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
Dan Le
Liferay login slow
21 dicembre 2010 18.08

Dan Le

Punteggio: New Member

Messaggi: 1

Data di Iscrizione: 21 dicembre 2010

Messaggi recenti

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:

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

 4 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
 5 *
 6 * This library is free software; you can redistribute it and/or modify it under
 7 * the terms of the GNU Lesser General Public License as published by the Free
 8 * Software Foundation; either version 2.1 of the License, or (at your option)
 9 * any later version.
10 *
11 * This library is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14 * details.
15 */
18<%@ page import="com.liferay.portal.kernel.servlet.HttpHeaders" %>
19<%@ page import="com.liferay.portal.model.LayoutSet" %>
20<%@ page import="com.liferay.portal.util.PortalUtil" %>
21<%@ page import="com.liferay.portal.util.WebKeys" %>
25// According to a semicolon in
26// the URL for a meta-refresh tag does not work in IE 6.
28// To work around this issue, we use a URL without a session id for meta-refresh
29// and rely on the load event on the body element to properly rewrite the URL.
31String redirect = null;
33LayoutSet layoutSet = (LayoutSet)request.getAttribute(WebKeys.VIRTUAL_HOST_LAYOUT_SET);
34redirect = PortalUtil.getPathMain();
36response.setHeader(HttpHeaders.LOCATION, redirect);
37response.setHeader(HttpHeaders.CONNECTION, HttpHeaders.CONNECTION_CLOSE_VALUE);
45    <title></title>
46    <meta content="0; url=<%= PortalUtil.getPathMain () %>" http-equiv="refresh" />
49<body onload="javascript:location.replace('<%= PortalUtil.getPathMain () %>')">

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
RE: Liferay login slow
27 aprile 2012 3.24

streambigs streambigs

Punteggio: New Member

Messaggi: 8

Data di Iscrizione: 27 aprile 2012

Messaggi recenti

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.
Sandeep Nair
RE: Liferay login slow
27 aprile 2012 5.30

Sandeep Nair

Punteggio: Liferay Legend

Messaggi: 1732

Data di Iscrizione: 5 novembre 2008

Messaggi recenti

Have you set the follwoing property in

streambigs streambigs
RE: Liferay login slow
30 aprile 2012 9.53

streambigs streambigs

Punteggio: New Member

Messaggi: 8

Data di Iscrizione: 27 aprile 2012

Messaggi recenti

Hi Sandeep, sorry for my late,

Yes I set the context exactly in file.

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

I created a new thread at :

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

Thanks in advance.

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!