more G-Labs products

Author Topic: TcpClientHelper memory management problem  (Read 3026 times)

October 28, 2015, 08:27:38 PM
Reply #15

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Hi Gene!

The memory changes without the program:
2015.10.28   15:48   211MB
2015.10.28   18:05   216MB
2015.10.28   20:16   223MB

It's a normal changes. I put the program.Notify in the HandleMessageReceived.
But, if you think, I can "share" the relay device on the internet, so you can connect to it...

October 28, 2015, 09:00:27 PM
Reply #16

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
HandleMessageReceived section work:
1.I turn on the one switch, the WebServiceCallReceived section send a control on command.
2. Network relay modul send a response message.
3. HandleMessageReceived handle this:
3.1 If the message not STATUS message (like control on response message), HandleMessageReceived send a STATUS reguest to a relay modul
3.2 If the message STATUS message, the HandleMessageReceived check the virtual switches status and the relays status. If does not match, toggle the virtual switch.

I attach the screenshot from the switch1 turn on and off log. And then HandleMessageReceived not send and not reveive message, just if I change the switch status (on/off)

November 01, 2015, 09:04:58 PM
Reply #17

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Hi Gene!

I think the TCP connection works fine. Big thanks for it!!!  ;) I started a 'big' test. Turn off all program except Network relays TCP and Z-wave devices. It's take a long time, but I share my resolutions now, and I continue my testing, until I can't realise the problem.

Quote
2015.10.31   21:42   117MB only run Network relays TCP program + z-wave devices
2015.10.31   21:45   112MB
2015.10.31   23:53   113MB
2015.11.01   08:18   126MB
2015.11.01   08:18   121MB open web interface
2015.11.01   08:20   122MB start virtual switches program
2015.11.01   11:26   118MB
2015.11.01   11:28   120MB start security alarm system program
2015.11.01   11:33   123MB
2015.11.01   11:53   126MB
2015.11.01   12:50   118MB
2015.11.01   20:49   129MB
2015.11.01   20:50   132MB open web interface
2015.11.01   21:02   134MB start E-mail Account and Pushbullet program
« Last Edit: November 01, 2015, 09:07:10 PM by KaZe »

November 04, 2015, 01:31:02 PM
Reply #18

KaZe

  • ****
  • Information
  • Sr. Member
  • Posts: 219
Hi Gene!

I finished the test. The TCP/IP connection works fine. Memory management fine.
And I found the program, which "eat" my memory. Naturally, the last program in the list... :D
Hear is my test result:
Quote
2015.10.31   21:42   117MB only run Network relays program + z-wave
2015.10.31   21:45   112MB
2015.10.31   23:53   113MB
2015.11.01   08:18   126MB
2015.11.01   08:18   121MB open web interface
2015.11.01   08:20   122MB start virtual switches program
2015.11.01   11:26   118MB
2015.11.01   11:28   120MB start security alarm system program
2015.11.01   11:33   123MB
2015.11.01   11:53   126MB
2015.11.01   12:50   118MB
2015.11.01   20:49   129MB
2015.11.01   20:50   132MB open web interface
2015.11.01   21:02   134MB start E-mail Account and Pushbullet program
2015.11.01   21:49   142MB
2015.10.01   22:04   131MB
2015.10.02   00:40   140MB
2015.10.02   00:48   133MB
2015.10.02   07:11   131MB
2015.10.02   09:16   131MB
2015.10.02   09:17   135MB start Lights/Level Memory and Smart Lights
2015.11.02   13:36   135MB
2015.11.02   13:41   133MB start Energy Management/Energy monitor
2015.11.02   17:37   131MB
2015.11.02   17:39   132MB start Weather and Enviroment/Weather Underground
2015.11.02   17:43   136MB
2015.11.02   18:30   132MB
2015.11.02   18:53   133MB
2015.11.02   19:04   139MB
2015.11.02   21:26   149MB
2015.11.02   21:46   145MB
2015.11.02   22:02   150MB start Device and Things/Generic IP Camera
2015.11.02   22:11   146MB
2015.11.02   22:26   149MB
2015.11.03   07:43   151MB
2015.11.03   07:44   149MB start Z-Wave/level poll
2015.11.03   09:57   153MB
2015.11.03   12:20   151MB
2015.11.03   12:24   151MB start Security/Ping Me at Home Extended
2015.11.03   15:05   151MB
2015.11.03   17:35   156MB
2015.11.03   18:02   151MB
2015.11.03   18:09   155MB start Security/Auto Arm Disarm
2015.11.03   18:19   159MB
2015.11.03   18:20   152MB
2015.11.03   20:36   157MB
2015.11.03   20:55   160MB start Security/Presence Simulation
2015.11.03   21:17   155MB
2015.11.04   09:23   252MB
2015.11.04   08:32   254MB
2015.11.04   13:14   249MB

I attach the program, which eat a memory. When the program run, it's wait a startup event, like virtual switch on. So, if the virtual switch is off, the program not running, just waiting (yellow status)
What is the problem with this program?