ngocthanhit / xig

Automatically exported from code.google.com/p/xig
0 stars 0 forks source link

Memory Leaking on X2? #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Greetings, all: I'm having trouble keeping the X2 going with the XIG 1.5.0. 
I've had memory leaks in the past, but not quite like this one.
To see it happen, all I had to do was:

1. Update my ConnectPort X2 to the latest FW (2.14.0.7 FW, Boot 1.1.2, post 
1.1.3) Product ID 0x00A1

2. Install Xig according to 
http://code.google.com/p/xig/wiki/ConnectPort_Installation

3. Watch memory start vanishing.

What is the expected output? What do you see instead?
I'm using the Xbee gateway basically as CURL, to bounce requests from an 
embedded controller off to a website to submit data. The URL is of the form:

https://user:password@data.com/data/device?C1=value?fw=value

I've been running a couple of devices, including three different X2 firmwares, 
and one X4 firmware. The X2's have always leaked, the X4 haven't. The X2 
earlier firmware appeared to leak, but not like this.

What version of the product are you using?
I'm using the latest XIG 1.5.0.
It's running on a connectport X2 (Firmware 2.14.0.7, boot 1.1.2, post 1.1.3).

Please provide any additional information below.
If you have any questions, let me know- I really like XIG and the versatility 
it allows, but I'm having a hard time keeping this stuff up if the memory leaks 
like this. Originally, I thought it only used up memory when dealing with 
https:// requests, but now it looks like it leaks whenever XIG is running. 
Since starting this message about 15 minutes ago, I've seen the "free memory" 
drop down from 500k to 323k. When the memory is all gone, the activity light on 
the Ethernet port goes solid on, and nothing else works.

Attached are screen grabs off the X2 in question showing two config screens, as 
well as the "display tech" from the firmware. I'm not a Python guy, but would 
really love to help whoever can help me figure this out.

Original issue reported on code.google.com by greg.lin...@gmail.com on 22 Jul 2012 at 9:01

Attachments:

GoogleCodeExporter commented 9 years ago
Greetings, again: It turns out that the system doesn't leak on it's own- It 
appears to leak when using HTTPS posts, only: When I wrote the post, I had 
thought I turned off the nodes, but I had one more still posting data from 
another node on my network.

Just installing it doesn't cause the problem, but using HTTPS, it does. The URL 
Response from the above request is a simple OK message if good, and a basic 
integer error code if not okay. I'm working on finding out if using just HTTP 
instead of HTTPS causes the same problem.

I didn't see this until I started deploying the X2 devices, and it doesn't 
happen on the X4, which I've had running here non-stop with the very same HTTPS 
requests for almost six months.

Original comment by greg.lin...@gmail.com on 22 Jul 2012 at 9:14

GoogleCodeExporter commented 9 years ago
Memory wasn't leaking per-se it was simply running out on the X2.  We added 
more aggressive garbage collection to the XIG 1.5.1 source base in order to try 
and avoid this condition.

Original comment by Jordan.H...@gmail.com on 19 Oct 2012 at 8:46