Problem is partially resolved! I deleted some temporary projects that I had created for testing my RMS Project scripts. With this an additional PubNub object that remained in memory is deleted.
However some objects associated with gateway event scripts are still remaining in memory! For example the timer object which is started on rising edge of a memory tag (StartTimer) remains in memory from a previously opened project! How to ensure that such objects are deleted at the beginning?
Which project they are coming from? Is it global project? Who creates global project? I didn’t do it. Is it automatically created? Can I delete the global project as I am not inheriting any project from global project?
This was not happening in previous versions (< version 8)!
Please see the log after I start PunNub, then start timer that writes the dash board json file to EON, then I stop the timer. You can see the Timer Start and Stop are coming from two sources (the suffix1 marked <===, is from new project and withou suffix is from some unknown instance of timer!).
INFO | jvm 1 | 2019/06/21 17:23:25 | calling initpubnub
INFO | jvm 1 | 2019/06/21 17:23:25 | GETTAGS called
INFO | jvm 1 | 2019/06/21 17:23:25 | {}
INFO | jvm 1 | 2019/06/21 17:23:25 | {} {}
INFO | jvm 1 | 2019/06/21 17:23:25 | GETPROFILES called
INFO | jvm 1 | 2019/06/21 17:23:25 | profiles= [
{“profile”:“SU”,“profileaccess”:“RW”,“profiledes”:“SUPER USER”},
{“profile”:“BU”,“profileaccess”:“RX”,“profiledes”:“BASIC USER”},
{“profile”:“TU”,“profileaccess”:“RX”,“profiledes”:“TEMP USER”}
]
INFO | jvm 1 | 2019/06/21 17:23:25 | GETUSERS called
INFO | jvm 1 | 2019/06/21 17:23:25 | users= [
{“user”:“admin”,“userpassword”:“password”,“userprofile”:“SU”},
{“user”:“guest”,“userpassword”:“guest”,“userprofile”:“BU”},
{“user”:“visitor”,“userpassword”:“visitor”,“userprofile”:“TU”}
]
INFO | jvm 1 | 2019/06/21 17:23:25 | initializing pubnub
INFO | jvm 1 | 2019/06/21 17:23:25 | Starting PubNub1
INFO | jvm 1 | 2019/06/21 17:23:25 | PNConnected status received True
INFO | jvm 1 | 2019/06/21 17:23:26 | PNMessageResult(message={“msg”:“hello111”}, subscribedChannel=command_channel, actualChannel=null, channel=command_channel, subscription=null, timetoken=15611180077208368, userMetadata=null, publisher=pn-b6009b06-a960-4eba-82c4-78f2fae43d5d)
INFO | jvm 1 | 2019/06/21 17:23:26 | msg recd - channel/msg : command_channel/hello111
INFO | jvm 1 | 2019/06/21 17:24:09 | setting timer ON
INFO | jvm 1 | 2019/06/21 17:24:09 | setting timer ON1<===
INFO | jvm 1 | 2019/06/21 17:24:36 | setting timer OFF
INFO | jvm 1 | 2019/06/21 17:24:36 | setting timer OFF1<===
INFO | jvm 1 | 2019/06/21 17:25:01 | destroy
INFO | jvm 1 | 2019/06/21 17:25:01 | Stopping PubNub1
INFO | jvm 1 | 2019/06/21 17:25:27 | calling initpubnub
INFO | jvm 1 | 2019/06/21 17:25:27 | GETTAGS called
INFO | jvm 1 | 2019/06/21 17:25:27 | {}
INFO | jvm 1 | 2019/06/21 17:25:27 | {} {}
INFO | jvm 1 | 2019/06/21 17:25:27 | GETPROFILES called
INFO | jvm 1 | 2019/06/21 17:25:27 | profiles= [
{“profile”:“SU”,“profileaccess”:“RW”,“profiledes”:“SUPER USER”},
{“profile”:“BU”,“profileaccess”:“RX”,“profiledes”:“BASIC USER”},
{“profile”:“TU”,“profileaccess”:“RX”,“profiledes”:“TEMP USER”}
]
INFO | jvm 1 | 2019/06/21 17:25:27 | GETUSERS called
INFO | jvm 1 | 2019/06/21 17:25:27 | users= [
{“user”:“admin”,“userpassword”:“password”,“userprofile”:“SU”},
{“user”:“guest”,“userpassword”:“guest”,“userprofile”:“BU”},
{“user”:“visitor”,“userpassword”:“visitor”,“userprofile”:“TU”}
]
INFO | jvm 1 | 2019/06/21 17:25:27 | initializing pubnub
INFO | jvm 1 | 2019/06/21 17:25:27 | Starting PubNub1
INFO | jvm 1 | 2019/06/21 17:25:28 | PNConnected status received True
INFO | jvm 1 | 2019/06/21 17:25:28 | PNMessageResult(message={“msg”:“hello111”}, subscribedChannel=command_channel, actualChannel=null, channel=command_channel, subscription=null, timetoken=15611181297865579, userMetadata=null, publisher=pn-538e7f2c-adad-4e78-b1e0-59946d488e68)
INFO | jvm 1 | 2019/06/21 17:25:28 | msg recd - channel/msg : command_channel/hello111
INFO | jvm 1 | 2019/06/21 17:42:40 | setting timer ON
INFO | jvm 1 | 2019/06/21 17:42:40 | setting timer ON1<===
INFO | jvm 1 | 2019/06/21 17:42:46 | setting timer OFF1<===
INFO | jvm 1 | 2019/06/21 17:42:46 | setting timer OFF