Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Won't Do
-
None
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