Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Dan Le
Liferay login slow
21. Dezember 2010 18:08
Antwort

Dan Le

Rang: New Member

Nachrichten: 1

Eintrittsdatum: 21. Dezember 2010

Neue Beiträge

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:
1
2<welcome-file-list>
3    <welcome-file>index.jsp</welcome-file>
4</welcome-file-list>

index.jsp:
 1
 2<%
 3/**
 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 */
16%>
17
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" %>
22
23<%
24
25// According to http://www.webmasterworld.com/forum91/3087.htm a semicolon in
26// the URL for a meta-refresh tag does not work in IE 6.
27
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.
30
31String redirect = null;
32
33LayoutSet layoutSet = (LayoutSet)request.getAttribute(WebKeys.VIRTUAL_HOST_LAYOUT_SET);
34redirect = PortalUtil.getPathMain();
35
36response.setHeader(HttpHeaders.LOCATION, redirect);
37response.setHeader(HttpHeaders.CONNECTION, HttpHeaders.CONNECTION_CLOSE_VALUE);
38
39response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
40%>
41
42<html>
43
44<head>
45    <title></title>
46    <meta content="0; url=<%= PortalUtil.getPathMain () %>" http-equiv="refresh" />
47</head>
48
49<body onload="javascript:location.replace('<%= PortalUtil.getPathMain () %>')">
50
51</body>
52
53</html>


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. April 2012 03:24
Antwort

streambigs streambigs

Rang: New Member

Nachrichten: 8

Eintrittsdatum: 27. April 2012

Neue Beiträge

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. April 2012 05:30
Antwort

Sandeep Nair

Rang: Liferay Legend

Nachrichten: 1691

Eintrittsdatum: 5. November 2008

Neue Beiträge

Have you set the follwoing property in portal-ext.properties

portal.ctx=/sicl
streambigs streambigs
RE: Liferay login slow
30. April 2012 09:53
Antwort

streambigs streambigs

Rang: New Member

Nachrichten: 8

Eintrittsdatum: 27. April 2012

Neue Beiträge

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.