[MDEV-11374] AliSQL: [Feature] Issue#4 THD MEMORY USAGE MONITOR Created: 2016-11-29  Updated: 2016-11-29  Resolved: 2016-11-29

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Sergey Vojtovich Assignee: Lixun Peng
Resolution: Won't Do Votes: 0
Labels: None

Epic Link: AliSQL patches

 Description   

Summary:
--------
This feature supply a way to monitor thd or query memory usage.
Memory_used display current thread memory that allocated.
Query_memory_used display current thd->query() memory that allocated.
Notes:
  Memory_used is added when malloc and substracted when free.
  Query_memory_used is added when malloc and reset when query end.
 
Usage:
------
1. show status like '%memory_used%'
2. show full processlist;

https://github.com/alibaba/AliSQL/commit/fffe0c35cb91c8803bfce9c6dd0f85610140f1ae



 Comments   
Comment by Sergey Vojtovich [ 2016-11-29 ]

lixun, MariaDB seem to have this feature. Is there anything we should consider taking from this patch?

Comment by Lixun Peng [ 2016-11-29 ]

svoj AliSQL's Memory Monitor is a sample version of MariaDB's. MariaDB has implemented a much more better version, so needn't do anything in MariaDB.

Comment by Sergey Vojtovich [ 2016-11-29 ]

Closing per plinux comment.

Generated at Thu Feb 08 07:49:28 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.