Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Jetty server getting down

I am using jettyserver-8.0.1 with web sockets in my application. 

We have 4 jetty servers running independently under the control of a net
work loadbalancer and one jetty server running without load balancer.

All the 4 jettyservers under LB are working fine even when the servers are
idle with no requests/responses.

But the problem is with the 5th jetty server which is getting down after
some idle time of 3 to 4 hours. Please check the stack trace given below,

2012-11-14 05:28:37,187[qtp1593111626-15]
ERROR(SessionCheckFilter.java:<filter>:23)- Session Check Filter Invoked  -
Request is  : [GET /ajax/refresh_session]@681477373
org.eclipse.jetty.server.Request@289e84fd
2012-11-14 05:28:37,187[qtp1593111626-15]
ERROR(SessionCheckFilter.java:<filter>:28)- SESSION Is : null
2012-11-14 05:33:37,184[qtp1593111626-24]
ERROR(SessionCheckFilter.java:<filter>:23)- Session Check Filter Invoked  -
Request is  : [GET /ajax/refresh_session]@1607528667
org.eclipse.jetty.server.Request@5fd0f0db
2012-11-14 05:33:37,184[qtp1593111626-24]
ERROR(SessionCheckFilter.java:<filter>:28)- SESSION Is : null
2012-11-14 05:38:37,184[qtp1593111626-44]
ERROR(SessionCheckFilter.java:<filter>:23)- Session Check Filter Invoked  -
Request is  : [GET /ajax/refresh_session]@790229821
org.eclipse.jetty.server.Request@2f19f33d
2012-11-14 05:38:37,184[qtp1593111626-44]
ERROR(SessionCheckFilter.java:<filter>:28)- SESSION Is : null
2012-11-14 05:39:38,247[qtp1593111626-58]
ERROR(AbstractSocket.java:<onMessage>:247)- Received msg is invalid: logoff|
2012-11-14 05:39:38,270[qtp1593111626-49]
ERROR(LogoffServlet.java:<doPost>:42)- SESSION ID - ls9i4youjxsf9wkcc6f694e8
2012-11-14 05:39:38,270[qtp1593111626-49]
ERROR(LogoffServlet.java:<doPost>:50)- Invalidating Session -
org.eclipse.jetty.server.session.HashedSession:ls9i4youjxsf9wkcc6f694e8@1966911395
2012-11-14 05:39:38,636[qtp1593111626-12 Selector1]
ERROR(AbstractSocket.java:<disconnect>:202)- onDisconnect: AbstractSocket
[clientNumber=445227, customerId=pktest, formattedCustomerId=pktest,
pushExceptionCount=0] reasonVal : 1006, reasonMessage : closed
2012-11-14 05:39:38,636[qtp1593111626-12 Selector1]
ERROR(AbstractSocket.java:<disconnect>:203)- onDisconnect: AbstractSocket
[clientNumber=445227, customerId=pktest, formattedCustomerId=pktest,
pushExceptionCount=0] StackTrace :
java.lang.Thread.getStackTrace(Thread.java:1479)|com.tradeking.at.servlet.AbstractSocket.disconnect(AbstractSocket.java:203)|com.tradeking.at.servlet.CustomerWebSocket.onClose(CustomerWebSocket.java:77)|org.eclipse.jetty.websocket.WebSocketConnectionD13.closed(WebSocketConnectionD13.java:296)|org.eclipse.jetty.server.AbstractConnector.connectionClosed(AbstractConnector.java:1048)|org.eclipse.jetty.server.nio.SelectChannelConnector.endPointClosed(SelectChannelConnector.java:280)|org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager.endPointClosed(SelectChannelConnector.java:345)|org.eclipse.jetty.io.nio.SelectorManager$SelectSet.destroyEndPoint(SelectorManager.java:948)|org.eclipse.jetty.io.nio.SelectChannelEndPoint.doUpdateKey(SelectChannelEndPoint.java:523)|org.eclipse.jetty.io.nio.SelectorManager$SelectSet.doSelect(SelectorManager.java:469)|org.eclipse.jetty.io.nio.SelectorManager$1.run(SelectorManager.java:283)|org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)|org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)|java.lang.Thread.run(Thread.java:662)|
2012-11-14 07:20:58,785[qtp1593111626-26]
ERROR(LogonServlet.java:<doGet>:44)- FROM LogonServlet 6
2012-11-14 07:33:02,156[qtp1593111626-53]
ERROR(LogonServlet.java:<doGet>:44)- FROM LogonServlet 6

the ajax call refresh_session is invoked for every 5 min which invokes
websockets for the data refresh.

here i am getting HttpSession session = request.getSession(true) = null in
an socketservlet and session is getting invalid..


can any one give some idea on this....?

same code piece is there in all the jetty servers....but why the jetty
server without loadbalancer is only getting down?



--
View this message in context: http://jetty.4.n6.nabble.com/Jetty-server-getting-down-tp4959553.html
Sent from the Jetty User mailing list archive at Nabble.com.


Back to the top