[Te-webmaster] ajp-threads

Brian P. Bohnet BPBOHNET at UP.COM
Thu Sep 17 15:33:35 CDT 2015



I'm an administrator of Liferay Portal running on Tomcat 6.0.32. On
occasion I see a 400 error in a custom portlet. Looking at the requests, a
400 response is being returned to the user. My suspicions are with the
custom portlet code and I see in the tomcat logs, the ajp-thread-id's
changing when the user is logging in. On requests that don't error it
appears the ajp-thread-id's stay the same as the login request is
processed.

Is it safe to say that a single ajp-thread should handle a user logging
into a web application until the response has been returned? See examples
below showing a normal, error-free login(same ajp-thread-id) and one in
which the 400 HTTP status code is returned(changing ajp-thread-id).

ERROR-FREE REQUEST
2015-09-10 10:34:54,460 INFO  [ajp-10022-25] [] [Finished with pre-login
actions. Response time taken to perform pre-login actions = 0ms]


2015-09-10 10:34:54,747 INFO  [ajp-10022-25] [] [Performing post-login
actions for 'dcpt005']


2015-09-10 10:34:54,750 WARN  [ajp-10022-25] [] [Current complete URL
retrieved from request is 'http://blah.blah.com/']


2015-09-10 10:34:54,750 INFO  [ajp-10022-25] [] [Preparing to redirect user
to '/en/user/dcpt005/my-home']


2015-09-10 10:34:54,750 DEBUG [ajp-10022-25] [] [Redirecting user to
my-home at the url '/en/user/dcpt005/my-home']


2015-09-10 10:34:54,750 DEBUG [ajp-10022-25] [] [Successfully redirected is
'true']


2015-09-10 10:34:54,750 INFO  [ajp-10022-25] [] [User was redirected to
'/en/user/dcpt005/my-home' is 'true']


2015-09-10 10:34:54,763 INFO  [ajp-10022-25] [] [Finished performing
post-login actions in 296ms for 'dcpt005']


2015-09-10 10:34:54,872 INFO  [ajp-10022-25] [] [Handling the render
request for VIEW mode]


400 RESPONSE ERROR
1) 	2015-09-10 10:49:56,188 INFO  [ajp-10022-49] [] [Finished with
pre-login actions. Response time taken to perform pre-login actions = 0ms]


2)	2015-09-10 10:49:57,658 INFO  [ajp-10022-49] [] [Performing
post-login actions for 'dcpt005']


3)	2015-09-10 10:49:57,665 WARN  [ajp-10022-49] []  [Current complete
URL retrieved from request is 'http://blah.blah.com/en/user/dcpt005/my-home
']


4)	2015-09-10 10:49:57,666 INFO  [ajp-10022-49] [] [Preparing to
redirect user to '/en/user/dcpt005/my-home']


5)	2015-09-10 10:49:57,666 DEBUG [ajp-10022-49] []  [Redirecting user to
my-home at the url'/en/user/dcpt005/my-home']


6)	2015-09-10 10:49:57,666 DEBUG [ajp-10022-49] []  [Successfully
redirected is 'true']


7)	2015-10 10:49:57,666 INFO  [ajp-10022-49] [] [User was redirected to
'/en/user/dcpt005/my-home' is 'true']


8)	201510 10:49:57,697 INFO  [ajp-10022-49] [] [Finished performing
post-login actions in 1381ms for 'dcpt005']


9)	5-09-10 10:49:58,101 INFO  [ajp-10022-49] [] [Handling the render
request for VIEW mode]


1)	2015-09-10 10:49:58,101 INFO  [ajp-10022-49] []  [Handling user who
has just logged in for the first time this session]


2)	2015-09-10 10:49:58,184 INFO  [ajp-10022-49] []  [Finished handling
user who has just logged in for the first time this session]


3)	2015-09-10 10:49:58,184 INFO  [ajp-10022-49] [] [Finished handling
the render request for VIEW mode]


10)	2015-09-10 10:49:58,232 ERROR [ajp-10022-49] []
[org.apache.struts.taglib.tiles.InsertTag] [ServletException in
'/html/common/themes/portlet.jsp': null]


11)	2015-09-10 10:49:58,243 INFO  [ajp-10022-49] []
[com.liferay.portal.util.PortalImpl] [Current URL /en/user/dcpt005/my-home
generates exception: An exception occurred processing JSP
page /html/portal/layout/view/portlet.jsp at line 67


12)	2015-09-10 10:49:58,295 ERROR [ajp-10022-49] []
[portal-web.docroot.html.portal.status.jsp]
[org.apache.jasper.JasperException: An exception occurred processing JSP
page /html/portal/layout/view/portlet.jsp at line 67


4)	2015-09-10 10:49:58,497 INFO  [ajp-10022-49] [] [Handling the render
request for VIEW mode]


Brian P. Bohnet
UPRR Web Technology Group
Enterprise Portal & Content
Office:   402.544.1820
Mobile: 402.850.4346
**

This email and any attachments may contain information that is confidential and/or privileged for the sole use of the intended recipient.  Any use, review, disclosure, copying, distribution or reliance by others, and any forwarding of this email or its contents, without the express permission of the sender is strictly prohibited by law.  If you are not the intended recipient, please contact the sender immediately, delete the e-mail and destroy all copies.
**
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.vmware.com/pipermail/te-webmaster/attachments/20150917/997d2732/attachment-0001.html>


More information about the Te-webmaster mailing list