[En-Nut-Discussion] Memory leak in Webserver

Ma-Prokop, Yuhong yuhong.ma.prokop at ims.fraunhofer.de
Tue Dec 8 12:59:40 CET 2009


Hello Ole,

thanks for your answer!

Because of the complexity of a project, I have to use the nut/os 4.4.0 instead of updating it to the higher version.

I am eager to hear what the bug on the web server side is.

Best regards,
Hong



-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de [mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von en-nut-discussion-request at egnite.de
Gesendet: Dienstag, 8. Dezember 2009 12:00
An: en-nut-discussion at egnite.de
Betreff: En-Nut-Discussion Digest, Vol 74, Issue 7

Send En-Nut-Discussion mailing list submissions to
	en-nut-discussion at egnite.de

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.egnite.de/mailman/listinfo/en-nut-discussion
or, via email, send a message with subject or body 'help' to
	en-nut-discussion-request at egnite.de

You can reach the person managing the list at
	en-nut-discussion-owner at egnite.de

When replying, please edit your Subject line so it is more specific
than "Re: Contents of En-Nut-Discussion digest..."


Today's Topics:

   1. Memory leak in Webserver (Ma-Prokop, Yuhong)
   2. Re: Memory leak in Webserver (Ole Reinhardt)
   3. Re: Register hostname for Ethernut (Daniel)


----------------------------------------------------------------------

Message: 1
Date: Mon, 7 Dec 2009 13:22:37 +0100
From: "Ma-Prokop, Yuhong" <yuhong.ma.prokop at ims.fraunhofer.de>
Subject: [En-Nut-Discussion] Memory leak in Webserver
To: <en-nut-discussion at egnite.de>
Message-ID:
	<02CDDA1E92DA1C4BB91B40FB0555A9B30145E72E at HERMES-1.ims.local>
Content-Type: text/plain;	charset="US-ASCII"

Hello everyone,

 

I downloaded the web server example from the ethernut demo-server:
http://ethernut.microweb.org/ <http://ethernut.microweb.org/> .

 

Through the HyperTerminal output during the run-time I found out one
problem: The available memory shall be with the time smaller and
smaller, although the opened "stream" and the socket are every time
successfully closed.

 

What can be the reason? Is the memory for the stream not freed or maybe
the memory for the closed socket is not freed?

 

Does somebody have any idea of it? I appreciate for every inspiring
suggestion.

 

Best regards,

Hong

 

 



------------------------------

Message: 2
Date: Mon, 07 Dec 2009 13:32:55 +0100
From: Ole Reinhardt <ole.reinhardt at embedded-it.de>
Subject: Re: [En-Nut-Discussion] Memory leak in Webserver
To: "Ethernut User Chat (English)" <en-nut-discussion at egnite.de>
Message-ID: <1260189175.6505.225.camel at localhost>
Content-Type: text/plain; charset="ISO-8859-15"

Hi!

> What can be the reason? Is the memory for the stream not freed or maybe
> the memory for the closed socket is not freed?
> Does somebody have any idea of it? I appreciate for every inspiring
> suggestion.

Which version of NutOS do you use together with dem Webserver demo code?
There was a bug I fixed some time ago which consumed memory every time a
web request was startet... When I remember correctly, is was an issue
with the server side include handling.

Bye,

Ole

-- 

Thermotemp GmbH, Embedded-IT

Embedded Hard-/ Software and Open Source Development, 
Integration and Consulting

Gesch?ftsstelle Siegen - Steinstra?e 67 - D-57072 Siegen - 
tel +49 (0)271 5513597, +49 (0)271-73681 - fax +49 (0)271 736 97

Hauptsitz - Hademarscher Weg 7 - 13503 Berlin
Tel +49 (0)30 4315205 - Fax +49 (0)30 43665002
Gesch?ftsf?hrer: J?rg Friedrichs, Ole Reinhardt
Handelsregister Berlin Charlottenburg HRB 45978 UstID DE 156329280 



------------------------------

Message: 3
Date: Mon, 7 Dec 2009 17:48:09 +0100
From: "Daniel" <ziu82 at gmx.de>
Subject: Re: [En-Nut-Discussion] Register hostname for Ethernut
To: "'Ethernut User Chat \(English\)'" <en-nut-discussion at egnite.de>
Message-ID: <20091207165003.CFAEB19C095 at mail.ethernet-mp3.de>
Content-Type: text/plain;	charset="iso-8859-1"

Hi all.

Thanks for the replies. Now I understand the mechanism. Then I will use
Bernd's suggestion to print the MAC to the device. The network configuration
is part of the customer's administrator.

Thanks to all,
Daniel

-----Urspr?ngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Eric Haver
Gesendet: Freitag, 4. Dezember 2009 17:49
An: ticso at cicely.de; Ethernut User Chat (English)
Betreff: Re: [En-Nut-Discussion] Register hostname for Ethernut

On Fri, Dec 4, 2009 at 10:56 AM, Bernd Walter <enut at cicely.de> wrote:

> On Fri, Dec 04, 2009 at 10:22:44AM -0500, Nathan Moore wrote:
> > It is possible to have a DHCP server register the name on a local 
> > DNS server, which may run on the same machine as the DHCP server, or 
> > even be the same program.
>
> Yes it is possible, but it is still the job of the network 
> configuration and not of the ethernut device.
> The only fixed data of a delivered ethernut device is the MAC.
> print it onto the device.
> If you search a device you can ping your network broadcast and look 
> into your arp table.
> http://www.ethernut.de/en/documents/nutapps.html
> Part IP configuration tells the commands required.
>
> There was also some kind of broadcast based IP configuration service.
> Start the windows based configurator and it lists all ethernut devices 
> in your LAN running this service.
> I can't find the reference right now.
>

Cola Soft offers a free version of their IP space scanner:
http://www.colasoft.com/


>
> --
> B.Walter <bernd at bwct.de> http://www.bwct.de Modbus/TCP Ethernet I/O 
> Baugruppen, ARM basierte FreeBSD Rechner uvm.
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion



------------------------------

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion


End of En-Nut-Discussion Digest, Vol 74, Issue 7
************************************************



More information about the En-Nut-Discussion mailing list