Hi there,

I am designing a process which acts as a localhost server and this is built 
on Mongoose APIs.
Basically, this process does the talking with browser via webscokets.

I am using mg_wakeup_server ( ) API for writing my data into websocket.
Things are working absolutely well as expected.

But the observation is that everytime any data is written into websocket, 
my process consumes more memory and never releases it.
To elobrate, when i use the below command in ubuntu to know how much memory 
my process i.e. httpserver , i observe the results written in RED.

" top -b -n 1 | grep -i httpserver"

 2286   202 root     R    14900  1.9   0  9.6 /usr/occif/httpserver 
-document_root /data_persist/ocd
 7959  3870 root     S     2708  0.3   0  0.0 grep -i httpserver

Now after i transfer some data over websocket and try the above, i observe 
the below

 2286   202 root     S    15156  1.9   0  0.0 /usr/occif/httpserver 
-document_root /data_persist/ocd
 8192  3870 root     S     2708  0.3   0  0.0 grep -i httpserver

It could be observed that memory consumed by httpserver has increased from 
14900 to 15156.
This keeps happening everytime I send any data over websocket.

And according my knowledge, I have initialsed all my internal variables 
well & freed all mallocs.
Additionally, when i run my code (including mongoose.c & mongoose.h) on a 
static analysis tool, it suggests a resource leak in ns_socketpair2 ( ).

Could you please help me with whats exactly happening ? How can i over come 
this problem as this is posing a serious memory issue to my process.

Thanks & Regards,
Swati

-- 
You received this message because you are subscribed to the Google Groups 
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to