Java Dynamic Connector - Logoff user session
1) I am using below Java/COM API, to login and get userSession - Connector.getInstance().login(username, password, environment);
2) using this userSession I am calling BSFN, I believe JDE internally creates JDBj connections and COK users while executing BSFN.
3) After this, to terminate the userSession I am using - Connector.getInstance().logoff(userSession);
Since, I am having multiple userSessions as part of one application, I am using logoff() to close individual userSession instead of shutDown().
But this is not reducing the number of users and number of connections count shown in Server Administrator Workbench (JDE 8.12 -> on clicking on "View Users") and is leading to performance slowness. What additional can be done along with logoff() such that userSession and connections created as part of BSFN execution is terminated?