Joost Miltenburg Posted May 10, 2016 Posted May 10, 2016 LS, My plan is to let the FMS handle more duties, without overloading the server. For instance 25 PSOS are allowed, so I would like to get the count of those sessions. How do I do that ? I would like to think there would be a simple way to know how many sessions are running and which script they are running. Or shouldn't I be doing this at all ? Regards.
Mike Duncan Posted May 10, 2016 Posted May 10, 2016 I think a potential blocker would be that checking this as part of a server side script would consume a session, so you would ideally want to check this before calling your PSOS. Perhaps having a table that tracks availability? You would need to make this part of your scripting and update it when a PSOS runs and also when it ends to "check in" and "check out" a session to keep a running count. Maybe also a server side scheduled script to refresh it every so often as well?
Wim Decorte Posted May 10, 2016 Posted May 10, 2016 I think the way to handle this is to set the max # of session that you think your server can handle and then in your script check for the error that FMS will throw in you try to do something through PSoS and no sessions are available. You can then either: - script it so that the functionality will run on the client - or loop and wait for a session to become available - or tell the user and stop
Joost Miltenburg Posted May 10, 2016 Author Posted May 10, 2016 For now I am just going to go some error capture... something like : perform script on server if[ Get (LastError) = 815] perform script
Recommended Posts
This topic is 3391 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now