日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

[lwip-users] memp_malloc: out of memory in pool TCP_PCB

發布時間:2025/4/5 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 [lwip-users] memp_malloc: out of memory in pool TCP_PCB 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

[lwip-users] memp_malloc: out of memory in pool TCP_PCB

Anirudha Sarangi

未讀,2011年11月4日 下午4:32:00

收件人?Mailing list for lwIP users

Hi,

Recently after fixing my previous issue (I had an issue in sys_arch.c), I came across one interesting issue for lwip140 which is not seen in lwip130.

I have a RTOS based application running and I have a small webserver application.

I saw that after refreshing the webpage several times on the host PC, I start getting messages:

memp_malloc: out of memory in pool TCP_PCB

Inspite of these messages webserver works. But these messages are really annoying and tell us that something horrible has happened.

I checked the memory pools. I have defined "MEMP_NUM_TCP_PCB as 64".

So precisely after around 64 http requests, I start getting the above message.

If I reduce MEMP_NUM_TCP_PCB?to 32, I start getting the messages after around 32 refreshes.

Is it some kind of bug? Is there anything I should be doing while closing the socket each time other than calling lwip_close ?

regards

Anirudha

Simon Goldschmidt

未讀,2011年11月4日 下午6:45:23

收件人?Anirudha Sarangi、Mailing list for lwIP users

Anirudha Sarangi <anirudha...@yahoo.com> wrote:
?

memp_malloc: out of memory in pool TCP_PCB

Inspite of these messages webserver works. But these messages are really annoying and tell us that something horrible has happened.

No, that's normal: you ran out of pcbs, but the tcp code then closes that oldest pcb in TIME-WAIT state and then calls memp_malloc again, which then succeeds. This is why the web server continues to run normally.

In tcp, pcbs stay in TME_WAIT state for some minutes, so you would have to configure the tcp pcb pool very large to get rid of this message.

Simon

Anirudha Sarangi

未讀,2011年11月4日 下午7:19:09

收件人?Mailing list for lwIP users

Thanks a lot for the clarification.

_______________________________________________
lwip-users mailing list
lwip-...@nongnu.org
lwip-users Info Page

《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀

總結

以上是生活随笔為你收集整理的[lwip-users] memp_malloc: out of memory in pool TCP_PCB的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。