[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

[lwip-users] memp_malloc: out of memory in pool TCP_PCB相关推荐

  1. oralce异常 ORA-04031: unable to allocate bytes of shared memory (shared pool,unknown object....

    问题:ORA-04031: unable to allocate 12312 bytes of shared memory ("shared pool","unknown ...

  2. LwIP 之六 详解动态内存管理 内存池(memp.c/h)

      该文主要是接上一部分LwIP 之 详解动态内存管理 内存堆(mem.c/h),该部分许多内容需要用到上一篇的内容.该部分主要是详细介绍LwIP中的动态内存池.整个内存池的实现相较于内存堆来说,还是 ...

  3. 《lwip学习3》-- 内存管理

    内存分配策略 lwip 内存分配两种,一种是分配固定大小的内存块:另一种是利用内存堆进行动态分配,属于可变长度的内存块.内存分配的本质就是事先准备一大块内存堆(可以理解为一个巨大的数组),然后将该空间 ...

  4. LwIP 之一 源码目录文件详解及移植说明

       lwIP 是 TCP/IP 协议套件的一个小型独立实现.lwIP TCP/IP 实现的重点是减少 RAM 使用同时仍然有一个完整的 TCP. 这使得 lwIP 适合使用在具有数 10 千字节的可 ...

  5. ORA-04031: Unable To Allocate 32 Bytes Of Shared Memory

    记录一次生产库遇到的4031错误,后来通过调整sga大小将问题解决了 报错信息: ORA-04031: 无法分配 32 字节的共享内存 ("shared pool","s ...

  6. EXPDP Fails With ORA-04031 (streams pool, ...)

    相信大家都有遇到ora-04031这种错误,在导出时也有这样的错误出现. 问题的症状: expdp 报告如下错误: ORA-31626: job does not exist ORA-31637: c ...

  7. lwIP 细节之三:TCP 回调函数是何时调用的

    使用 lwIP 协议栈进行 TCP 裸机编程,其本质就是编写协议栈指定的各种回调函数.将你的应用逻辑封装成函数,注册到协议栈,在适当的时候,由协议栈自动调用,所以称为回调. 注:除非特别说明,以下内容 ...

  8. Meltdown:Reading Kernel Memory from User Space 论文中英对照

    Meltdown:Reading Kernel Memory from User Space 翻译目录 摘要(Abstract) 一.简介(Introduction) 二.背景介绍(Backgroun ...

  9. Meltdown: Reading Kernel Memory from User Space论文翻译

    Meltdown: Reading Kernel Memory from User Space翻译 摘要(Abstract) The security of computer systems fund ...

最新文章

  1. SIEM部署的几条最佳实践
  2. 鹅厂2020暑期实习第二次一面
  3. java 比较对象内容是否相同的_Java 比较对象中的内容是否一致
  4. 【转】Win7+Ubuntu12.04.1硬盘安装错误及解决方案----不错
  5. 通用寄存器的专门用途
  6. Intel Realsense D435 当摄像头运行过程中突然USB线断开,对RuntimeError: Frame didn't arrived within 5000的异常捕获及处理
  7. 设置npm的registry
  8. 48 行代码给 ABAP ALV 报表的数据行增添颜色效果
  9. 理解Linux系统中的load average
  10. c++ map用法_5分钟掌握Python | Map、Reduce和Filter如何运用?
  11. 邮件服务器拦截与反垃圾邮箱的相关方法
  12. 浙大PAT练习题1010
  13. Openwrt 硬改过程记录
  14. 毕业设计-基于SpringBoot体育运动场馆管理系统+开题报告-任务书等
  15. 暴躁的一天从Ubuntu搜狗拼音开始
  16. 麦肯锡问题分析与解决技巧 - 高杉尚孝
  17. 免费css布局和模板集合
  18. 我是怎样爬下6万共享单车数据并进行分析的(附代码)
  19. 蚂蚁金服通讯框架学习一
  20. Gu Jing——金马驹

热门文章

  1. WordCount结对项目
  2. HDU 5473 There was a kingdom 凸包 DP
  3. (9)MSP430F5529 定时器Timer_A
  4. 提炼游戏引擎系列:开篇介绍
  5. GERBER文件格式简介
  6. qt char*转int_Qt在Linux下绘制文字原理-使用FreeType来绘制字形
  7. 3.5 Bounding Box 预测-深度学习第四课《卷积神经网络》-Stanford吴恩达教授
  8. 4.3 偏差与方差-机器学习笔记-斯坦福吴恩达教授
  9. 记录一次quartus II prime standard 18添加器件库的方法
  10. 基于FPGA的FFT变换实现