Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
RT-Thread一般讨论
有关内存泄漏问题
发布于 2019-11-13 18:57:20 浏览:1423
订阅该版
刚刚用上RTT 写了一个小项目, 测试了二天,从命令free 可以查看 内存有增加 从32548到32588 最大值没有变 ,这样是正常的吗。 这几天继续测试着
查看更多
5
个回答
默认排序
按发布时间排序
aozima
2019-11-13
调网络不抓包,调I2C等时序不上逻辑分析仪,就像电工不用万用表!多用整理的好的文字,比截图更省流量,还能在整理过程中思考。
可以参考下这个贴子分析下 [https://www.rt-thread.org/qa/thread-11925-1-1.html](RT-Thread "骚操作"之内存泄漏定位)
QianHao
2019-11-14
这家伙很懒,什么也没写!
total memory: 113696 used memory : 31520 maximum allocated memory: 34504 memory heap address: heap_ptr: 0x200043c0 lfree : 0x2000beb0 heap_end: 0x2001fff0 --memory item information -- [0x200043c0 - 128] NONE [0x20004450 - 2K] NONE [0x20004c60 - 12] main [0x20004c7c - 92] main [0x20004ce8 - 140] main [0x20004d84 - 20] main [0x20004da8 - 48] main [0x20004de8 - 128] main [0x20004e78 - 2K] main [0x20005688 - 96] main [0x200056f8 - 12] main [0x20005714 - 136] main [0x200057ac - 116] main [0x20005830 - 12] main [0x2000584c - 12] main [0x20005868 - 128] main [0x200058f8 - 1K] main [0x20005f08 - 16] mqtt [0x20005f28 - 36] main [0x20005f5c - 12] mqtt [0x20005f78 - 12] main [0x20005f94 - 76] main [0x20005ff0 - 16] main [0x20006010 - 128] main [0x200060a0 - 1K] main [0x200064b0 - 432] main [0x20006670 - 32] main [0x200066a0 - 512] main [0x200068b0 - 36] main [0x200068e4 - 32] main [0x20006914 - 32] main [0x20006944 - 128] main [0x200069d4 - 1K] main [0x20006fe4 - 76] main [0x20007040 - 12] mqtt [0x2000705c - 16] main [0x2000707c - 68] main [0x200070d0 - 72] tshe [0x20007128 - 36] sys_ [0x2000715c - 16] mqtt [0x2000717c - 128] main [0x2000720c - 1K] main [0x2000781c - 524] main [0x20007a38 - 128] main [0x20007ac8 - 4K] main [0x20008ad8 - 24] sim0 [0x20008b00 - 64] sim0 [0x20008b50 - 44] main [0x20008b8c - 128] main [0x20008c1c - 1K] main [0x2000922c - 128] main [0x200092bc - 1K] main [0x200098cc - 128] main [0x2000995c - 1K] main [0x20009f6c - 1K] main [0x2000a37c - 1K] main [0x2000a78c - 36] main [0x2000a7c0 - 36] main [0x2000a7f4 - 128] main [0x2000a884 - 4K] main [0x2000b894 - 152] mqtt [0x2000b93c - 36] mqtt [0x2000b970 - 512] mqtt [0x2000bb80 - 36] mqtt [0x2000bbb4 - 12] mqtt [0x2000bbd0 - 64] mqtt [0x2000bc20 - 36] mqtt [0x2000bc54 - 28] mqtt [0x2000bc80 - 32] mqtt [0x2000bcb0 - 36] mqtt [0x2000bce4 - 40] mqtt [0x2000bd1c - 12] mqtt [0x2000bd38 - 40] mqtt [0x2000bd70 - 12] mqtt [0x2000bd8c - 16] mqtt [0x2000bdac - 40] mqtt [0x2000bde4 - 12] mqtt [0x2000be00 - 28] mqtt [0x2000be2c - 28] mqtt [0x2000be58 - 28] mqtt [0x2000be84 - 28] mqtt [0x2000beb0 - 16] [0x2000bed0 - 32] ntp_ [0x2000bf00 - 80K]
QianHao
2019-11-14
这家伙很懒,什么也没写!
total memory: 113696 used memory : 31988 maximum allocated memory: 34968 memory heap address: heap_ptr: 0x200043c0 lfree : 0x2000c0b4 heap_end: 0x2001fff0 --memory item information -- [0x200043c0 - 128] NONE [0x20004450 - 2K] NONE [0x20004c60 - 12] main [0x20004c7c - 92] main [0x20004ce8 - 140] main [0x20004d84 - 20] main [0x20004da8 - 48] main [0x20004de8 - 128] main [0x20004e78 - 2K] main [0x20005688 - 96] main [0x200056f8 - 12] main [0x20005714 - 136] main [0x200057ac - 116] main [0x20005830 - 12] main [0x2000584c - 12] main [0x20005868 - 128] main [0x200058f8 - 1K] main [0x20005f08 - 16] mqtt [0x20005f28 - 36] main [0x20005f5c - 12] mqtt [0x20005f78 - 12] main [0x20005f94 - 76] main [0x20005ff0 - 16] main [0x20006010 - 128] main [0x200060a0 - 1K] main [0x200064b0 - 432] main [0x20006670 - 32] main [0x200066a0 - 512] main [0x200068b0 - 36] main [0x200068e4 - 32] main [0x20006914 - 32] main [0x20006944 - 128] main [0x200069d4 - 1K] main [0x20006fe4 - 76] main [0x20007040 - 12] mqtt [0x2000705c - 16] main [0x2000707c - 68] main [0x200070d0 - 72] tshe [0x20007128 - 36] sys_ [0x2000715c - 16] mqtt [0x2000717c - 128] main [0x2000720c - 1K] main [0x2000781c - 524] main [0x20007a38 - 128] main [0x20007ac8 - 4K] main [0x20008ad8 - 24] sim0 [0x20008b00 - 64] sim0 [0x20008b50 - 44] main [0x20008b8c - 128] main [0x20008c1c - 1K] main [0x2000922c - 128] main [0x200092bc - 1K] main [0x200098cc - 128] main [0x2000995c - 1K] main [0x20009f6c - 1K] main [0x2000a37c - 1K] main [0x2000a78c - 36] main [0x2000a7c0 - 36] main [0x2000a7f4 - 128] main [0x2000a884 - 4K] main [0x2000b894 - 152] mqtt [0x2000b93c - 36] mqtt [0x2000b970 - 512] mqtt [0x2000bb80 - 36] mqtt [0x2000bbb4 - 12] mqtt [0x2000bbd0 - 64] mqtt [0x2000bc20 - 64] mqtt [0x2000bc70 - 36] mqtt [0x2000bca4 - 48] mqtt [0x2000bce4 - 40] mqtt [0x2000bd1c - 12] mqtt [0x2000bd38 - 40] mqtt [0x2000bd70 - 12] mqtt [0x2000bd8c - 16] mqtt [0x2000bdac - 40] mqtt [0x2000bde4 - 12] mqtt [0x2000be00 - 28] mqtt [0x2000be2c - 32] mqtt [0x2000be5c - 36] mqtt [0x2000be90 - 48] mqtt [0x2000bed0 - 32] ntp_ [0x2000bf00 - 12] mqtt [0x2000bf1c - 40] mqtt [0x2000bf54 - 12] mqtt [0x2000bf70 - 16] mqtt [0x2000bf90 - 40] mqtt [0x2000bfc8 - 12] mqtt [0x2000bfe4 - 28] mqtt [0x2000c010 - 16] mqtt [0x2000c030 - 28] mqtt [0x2000c05c - 28] mqtt [0x2000c088 - 28] mqtt [0x2000c0b4 - 79K]
QianHao
2019-11-14
这家伙很懒,什么也没写!
看上去是MQTT进程的问题 但是我没有找到具体问题出在哪里 这个问题要过一段时间(1小时以上)才出现
QianHao
2019-11-15
这家伙很懒,什么也没写!
msh />memtrace total memory: 118176 used memory : 29528 maximum allocated memory: 31672 memory heap address: heap_ptr: 0x20003240 lfree : 0x2000a098 heap_end: 0x2001fff0 --memory item information -- [0x20003240 - 128] NONE [0x200032d0 - 2K] NONE [0x20003ae0 - 12] main [0x20003afc - 20] main [0x20003b20 - 48] main [0x20003b60 - 128] main [0x20003bf0 - 2K] main [0x20004400 - 96] main [0x20004470 - 12] main [0x2000448c - 136] main [0x20004524 - 116] main [0x200045a8 - 12] main [0x200045c4 - 12] main [0x200045e0 - 128] main [0x20004670 - 1K] main [0x20004c80 - 16] at_c [0x20004ca0 - 36] main [0x20004cd4 - 12] mqtt [0x20004cf0 - 12] main [0x20004d0c - 76] main [0x20004d68 - 16] main [0x20004d88 - 432] main [0x20004f48 - 32] main [0x20004f78 - 512] main [0x20005188 - 36] main [0x200051bc - 32] main [0x200051ec - 32] main [0x2000521c - 128] main [0x200052ac - 1K] main [0x200058bc - 76] main [0x20005918 - 12] mqtt [0x20005934 - 16] main [0x20005954 - 68] main [0x200059a8 - 72] tshe [0x20005a00 - 36] sys_ [0x20005a34 - 16] mqtt [0x20005a54 - 128] main [0x20005ae4 - 1K] main [0x200060f4 - 524] main [0x20006310 - 128] main [0x200063a0 - 4K] main [0x200073b0 - 24] sim0 [0x200073d8 - 64] sim0 [0x20007428 - 44] main [0x20007464 - 128] main [0x200074f4 - 1K] main [0x20007b04 - 128] main [0x20007b94 - 1K] main [0x200081a4 - 1K] main [0x200085b4 - 1K] main [0x200089c4 - 36] main [0x200089f8 - 36] main [0x20008a2c - 128] main [0x20008abc - 4K] main [0x20009acc - 152] mqtt [0x20009b74 - 36] mqtt [0x20009ba8 - 512] mqtt [0x20009db8 - 36] mqtt [0x20009dec - 12] mqtt [0x20009e08 - 40] mqtt [0x20009e40 - 40] mqtt [0x20009e78 - 12] mqtt [0x20009e94 - 40] mqtt [0x20009ecc - 12] mqtt [0x20009ee8 - 24] mqtt [0x20009f10 - 12] at_c [0x20009f2c - 12] at_c [0x20009f48 - 28] at_c [0x20009f74 - 32] ntp_ [0x20009fa4 - 40] mqtt [0x20009fdc - 28] mqtt [0x2000a008 - 40] mqtt [0x2000a040 - 12] mqtt [0x2000a05c - 12] at_c [0x2000a078 - 16] mqtt [0x2000a098 - 24] [0x2000a0c0 - 40] mqtt [0x2000a0f8 - 12] mqtt [0x2000a114 - 40] mqtt [0x2000a14c - 12] mqtt [0x2000a168 - 12] mqtt [0x2000a184 - 40] mqtt [0x2000a1bc - 40] mqtt [0x2000a1f4 - 12] mqtt [0x2000a210 - 12] mqtt [0x2000a22c - 40] mqtt [0x2000a264 - 12] mqtt [0x2000a280 - 12] mqtt [0x2000a29c - 40] mqtt [0x2000a2d4 - 12] mqtt [0x2000a2f0 - 12] mqtt [0x2000a30c - 40] mqtt [0x2000a344 - 40] mqtt [0x2000a37c - 12] mqtt [0x2000a398 - 12] mqtt [0x2000a3b4 - 40] mqtt [0x2000a3ec - 12] mqtt [0x2000a408 - 12] mqtt [0x2000a424 - 40] mqtt [0x2000a45c - 12] mqtt [0x2000a478 - 28] mqtt [0x2000a4a4 - 28] mqtt [0x2000a4d0 - 28] mqtt [0x2000a4fc - 76] [0x2000a558 - 36] mqtt [0x2000a58c - 28] mqtt [0x2000a5b8 - 32] mqtt [0x2000a5e8 - 36] mqtt [0x2000a61c - 86K]
撰写答案
登录
注册新账号
关注者
0
被浏览
1.4k
关于作者
QianHao
这家伙很懒,什么也没写!
提问
5
回答
18
被采纳
0
关注TA
发私信
相关问题
1
有关动态模块加载的一篇论文
2
最近的调程序总结
3
晕掉了,这么久都不见layer2的踪影啊
4
继续K9ii的历程
5
[GUI相关] FreeType 2
6
[GUI相关]嵌入式系统中文输入法的设计
7
20081101 RT-Thread开发者聚会总结
8
嵌入式系统基础
9
linux2.4.19在at91rm9200 上的寄存器设置
10
[转]基于嵌入式Linux的通用触摸屏校准程序
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
【24嵌入式设计大赛】基于RT-Thread星火一号的智慧家居系统
2
RT-Thread EtherKit开源以太网硬件正式发布
3
如何在master上的BSP中添加配置yml文件
4
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
5
RT-Thread 发布 EtherKit开源以太网硬件!
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
UART
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
ulog
C++_cpp
at_device
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
15
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
13
个答案
1
次被采纳
本月文章贡献
程序员阿伟
9
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
5
次点赞
RTT_逍遥
1
篇文章
2
次点赞
ThinkCode
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部