Message Boards

Slowness in Liferay 6.2 application

pooja adhikari, modified 5 Years ago.

Slowness in Liferay 6.2 application

Junior Member Posts: 26 Join Date: 3/11/19 Recent Posts
Hi All,

Currently we have Dg hub application working on liferay 6.2. We used NTLM authentication for SSO (single sign on) .With load balancer main url also we are getting 10-20 minute in loggin and with application server itslef we are taking 10-15 minute in login .

We have a test id who have all admin access for liferay specific which take alomst 20 minute to login .

After authetication all functionalities are working fine .

So only the slowness is re directing to login page and after entring credientials it take a long time to redirectin home page .

We have two LDAP conncetivity and also NTLM conncetivity , where domain controller is defined .

Test connection for LDAP and NTLM are getting success but still issue is with login .
thumbnail
Christoph Rabel, modified 5 Years ago.

RE: Slowness in Liferay 6.2 application

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts
It is quite likely that you run into some kind of network timeout.

You probably have a firewall between your Liferay server and your other systems. Do you see any requests that are dropped there?

When you sniff the network, what kind of calls are made? e.g. using tcpdump on Linux (of course, it would be best if you were "alone" on the system to minimize noise). Then you could try yourself to make requests to those servers/ports to see if they are reachable and send you an answer.

Since you mentioned a loadbalancer:
If you connect to a server in the same subnet through a loadbalancer, the return package is will be lost, if you do not have a special configuration for that (The connection target sends the answer directly to the source, circumventing the loadbalancer, the source drops it since it doesn't expect a package from the target but from the loadbalancer).
pooja adhikari, modified 5 Years ago.

RE: Slowness in Liferay 6.2 application

Junior Member Posts: 26 Join Date: 3/11/19 Recent Posts
Hi ,

Thank you for the reply .
We have analysed the rquest from load balancer to web server to app server , but we didnt get any connection timeout error or network error .
Only the issue is when we enter our credientials its taking a long time to redierct us in home page .

We have checked the thread dump and and didnt found any deadlock or waiting thread.

CPU and memory utlilzation for the server is very normal but still while login application is taking 10-20 minute.
​​​​​​​
thumbnail
Christoph Rabel, modified 5 Years ago.

RE: Slowness in Liferay 6.2 application

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts
First, you looked in the wrong place. I guess you have the following setup.

Browser --> Loadbalancer --> Appserver -->  maybe Firewall --> maybe Loadbalancer -->Backend

I believe, you looked at "Browser --> Loadbalancer --> Appserver", but in this case, it is most likely here: "Appserver --> ... --> Backend".

Also, you might not get an error, but you should see a "hanging" connection, that basically waits for a response. You should see this in the whole chain. You experience the hanging connection in the browser (the user waits). You should see it in the loadbalancer and the connection it has to the appserver. Waiting.

But I believe, they all are waiting for the backend to complete, whatever it takes so long.
Also, enable debug logging for "com.liferay.portal.security".

The most likely culprits are
NTLM
LDAP import
A custom postauthentication module perhaps?

One of them takes alot of time. If you are on Linux, use tcpdump, on Windows maybe Wireshark to see, which connections are opened and not closed.
pooja adhikari, modified 5 Years ago.

RE: Slowness in Liferay 6.2 application

Junior Member Posts: 26 Join Date: 3/11/19 Recent Posts
Also in additon , we have 2 application server where our liferay application is hosted and 2 web server and one load balancer .
All conncetivity is fine .