0

Active sessions troubleshooting

asked 2020-07-17 15:39:14 +0800

AndreyK gravatar image AndreyK
155 4

updated 2020-07-17 15:40:50 +0800

Hello, in prod env (zk7, tomcat8) we have such situation https://gyazo.com/18b70ad2854a7f13cbe47242db19dc26 Is it normal? What can be a reason, event-thread? config

<system-config>
    <disable-event-thread>false</disable-event-thread>
    <ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory
    </ui-factory-class>
    <disable-zscript>false</disable-zscript>
</system-config>

Can u contact for this issue?

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-07-20 16:10:53 +0800

MDuchemin gravatar image MDuchemin
1743 1 5
ZK Team

Hey there,

Looking at the screenshot:

-894 active sessions: Is that the relative expected number of web browsers reaching your service during the session timeout period? (last 30mn I would guess)

-Session type is serializable session, which makes sense since you are using the serializable UI factory. Not a big difference, just implementing the serialize / deserialize workflows.

-creation time: 2020-06-08 (I'm assuming that this screenshot was taken around that time? If the screenshot was taken recently, then I'd expect the session would have been cleaned up by now.)

-other attributes: Internal request count (concurent requests, expected 0 unless user is currently requesting stuff from multiple servlets / portlets in the same session) / PI (timeout timer), seem normal at first glance.

This said, you might still get some hanging threads in there. Clustering (serialization) and event threads are not supposed to be used a the same time. (source here)

You might want to raise a ticket with support directly if you encounter a specific issue.

link publish delete flag offensive edit

Comments

Yes, we have something around this count of users, but hard say is it normal or not situation get many sessions with 0 used time.

AndreyK ( 2020-07-27 14:44:55 +0800 )edit

I'm not actually sure what tomcat count as "used time".

MDuchemin ( 2020-07-27 18:21:23 +0800 )edit

As long as you don't get duplicated sessions per user, it doesn't seem wrong. I'm expecting these sessions to be destroyed after 30mn if the user is inactive.

MDuchemin ( 2020-07-27 18:22:05 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2020-07-17 15:39:14 +0800

Seen: 7 times

Last updated: Jul 20

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More