查询JAVA分析中的GC列表数据
最近更新时间: 2026-09-17 00:05:46
1. 接口描述
接口请求域名: tbdsnew.api3.fincloud.tencent.cn。
查询JAVA分析中的GC列表数据
默认接口请求频率限制:20次/秒。
接口更新时间:2024-12-06 02:19:43。
接口既验签名又鉴权。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数。
| 参数名称 | 必选 | 允许NULL | 类型 | 描述 |
|---|---|---|---|---|
| Action | 是 | 否 | String | 公共参数,本接口取值:DescribeGcList |
| Version | 是 | 否 | String | 公共参数,本接口取值:2019-01-03 |
| Region | 是 | 否 | String | 公共参数,地域信息可通过DescribeRegions接口查看产品支持的地域列表 |
| InstanceId | 是 | 否 | String | 集群id 示例值: tbds-1vzudj86 |
| StartTime | 是 | 否 | Int64 | 起始时间 示例值: 1748248583 |
| EndTime | 是 | 否 | Int64 | 结束时间 示例值: 1748252183 |
| Offset | 否 | 否 | Int64 | 页号,默认值:0,表示第一页 示例值: 0 |
| Limit | 否 | 否 | Int64 | 页容量,默认值:10,最大值200 示例值: 10 |
| Filters | 否 | 否 | String | 查询的列信息,eg: "{"Filters":[{"FilterList":["kyuubi"],"ColumnId":"Service","Sort":0}]}" “Sort”解释: 0:未排序,1:倒序,2:升序 示例值: |
3. 输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| Total | Int64 | 总数 示例值: 1 |
| GcListColumns | Array of GcListColumn | 列元数据信息 注意:此字段可能返回 null,表示取不到有效值。 示例值:查看 |
| GcInfoRows | Array of GcInfoRow | GC信息列表 注意:此字段可能返回 null,表示取不到有效值。 示例值:查看 |
| RequestId | String | 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 |
4. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见公共错误码。
| 错误码 | 描述 |
|---|---|
| InternalError.ClickHouseQueryException | 查询ClickHouse异常。 |
| InvalidParameter.ImpalaQueryException | impala查询参数异常。 |
| ResourceNotFound | 资源不存在。 |
5. 示例
示例1 【监控】查询GC列表
输入示例
POST / HTTP/1.1
Host: tbdsnew.api3.{conf.main_domain}
Content-Type: application/json
X-TC-Action: DescribeGcList
<公共请求参数>
{
"InstanceId": "tbds-1vzudj86",
"StartTime": 1748248583,
"EndTime": 1748252183,
"Limit": 10,
"Offset": 0,
"Filters": ""
}
输出示例
{
"Response": {
"GcInfoRows": [
{
"GcTime": "2025-05-26 17:35:53.579",
"Service": "yarn",
"Role": "NodeManager",
"Host": "172.16.0.121",
"GcType": "young",
"GcReason": "G1 Evacuation Pause",
"GcCostTime": "0.01 secs",
"GcPauseTime": "0.008225 secs",
"GcWorkerNum": 23,
"AppliedHeapSize": "1024M",
"ReleasedHeapSize": "602.00M",
"HeapSizeBeforeGc": "813M",
"HeapSizeAfterGc": "211M",
"ReleasedEdenSize": "1.18G",
"ReleasedSurvivorSize": "0.00B"
},
{
"GcTime": "2025-05-26 17:35:51.054",
"Service": "hdfs",
"Role": "NameNode",
"Host": "172.16.0.89",
"GcType": "young",
"GcReason": "G1 Evacuation Pause",
"GcCostTime": "0.01 secs",
"GcPauseTime": "0.007586 secs",
"GcWorkerNum": 64,
"AppliedHeapSize": "3512M",
"ReleasedHeapSize": "523.00M",
"HeapSizeBeforeGc": "2396M",
"HeapSizeAfterGc": "1873M",
"ReleasedEdenSize": "1.02G",
"ReleasedSurvivorSize": "0.00B"
},
{
"GcTime": "2025-05-26 17:35:49.696",
"Service": "hive",
"Role": "HiveMetaStore",
"Host": "172.16.0.55",
"GcType": "young",
"GcReason": "G1 Evacuation Pause",
"GcCostTime": "0.02 secs",
"GcPauseTime": "0.021073 secs",
"GcWorkerNum": 23,
"AppliedHeapSize": "1024M",
"ReleasedHeapSize": "475.00M",
"HeapSizeBeforeGc": "910M",
"HeapSizeAfterGc": "435M",
"ReleasedEdenSize": "918.00M",
"ReleasedSurvivorSize": "10.00M"
},
{
"GcTime": "2025-05-26 17:35:46.374",
"Service": "hdfs",
"Role": "NameNode",
"Host": "172.16.0.89",
"GcType": "young",
"GcReason": "G1 Evacuation Pause",
"GcCostTime": "0.03 secs",
"GcPauseTime": "0.025043 secs",
"GcWorkerNum": 64,
"AppliedHeapSize": "3512M",
"ReleasedHeapSize": "523.00M",
"HeapSizeBeforeGc": "2396M",
"HeapSizeAfterGc": "1873M",
"ReleasedEdenSize": "1.02G",
"ReleasedSurvivorSize": "0.00B"
},
{
"GcTime": "2025-05-26 17:35:45.831",
"Service": "yarn",
"Role": "NodeManager",
"Host": "172.16.0.109",
"GcType": "young",
"GcReason": "G1 Evacuation Pause",
"GcCostTime": "0.02 secs",
"GcPauseTime": "0.015267 secs",
"GcWorkerNum": 23,
"AppliedHeapSize": "1024M",
"ReleasedHeapSize": "603.00M",
"HeapSizeBeforeGc": "782M",
"HeapSizeAfterGc": "179M",
"ReleasedEdenSize": "1.18G",
"ReleasedSurvivorSize": "0.00B"
},
{
"GcTime": "2025-05-26 17:35:45.579",
"Service": "yarn",
"Role": "NodeManager",
"Host": "172.16.0.44",
"GcType": "young",
"GcReason": "G1 Evacuation Pause",
"GcCostTime": "0.02 secs",
"GcPauseTime": "0.027036 secs",
"GcWorkerNum": 23,
"AppliedHeapSize": "1024M",
"ReleasedHeapSize": "603.00M",
"HeapSizeBeforeGc": "812M",
"HeapSizeAfterGc": "209M",
"ReleasedEdenSize": "1.18G",
"ReleasedSurvivorSize": "0.00B"
},
{
"GcTime": "2025-05-26 17:35:42.612",
"Service": "hive",
"Role": "HiveMetaStore",
"Host": "172.16.0.55",
"GcType": "young",
"GcReason": "G1 Evacuation Pause",
"GcCostTime": "0.07 secs",
"GcPauseTime": "0.069514 secs",
"GcWorkerNum": 23,
"AppliedHeapSize": "1024M",
"ReleasedHeapSize": "461.00M",
"HeapSizeBeforeGc": "901M",
"HeapSizeAfterGc": "440M",
"ReleasedEdenSize": "924.00M",
"ReleasedSurvivorSize": "-2.00M"
},
{
"GcTime": "2025-05-26 17:35:41.953",
"Service": "hdfs",
"Role": "DataNode",
"Host": "172.16.0.121",
"GcType": "young",
"GcReason": "G1 Evacuation Pause",
"GcCostTime": "0.01 secs",
"GcPauseTime": "0.009468 secs",
"GcWorkerNum": 23,
"AppliedHeapSize": "1417M",
"ReleasedHeapSize": "319.00M",
"HeapSizeBeforeGc": "1270M",
"HeapSizeAfterGc": "951M",
"ReleasedEdenSize": "638.00M",
"ReleasedSurvivorSize": "0.00B"
},
{
"GcTime": "2025-05-26 17:35:41.951",
"Service": "hdfs",
"Role": "NameNode",
"Host": "172.16.0.89",
"GcType": "young",
"GcReason": "G1 Evacuation Pause",
"GcCostTime": "0.02 secs",
"GcPauseTime": "0.018471 secs",
"GcWorkerNum": 64,
"AppliedHeapSize": "3512M",
"ReleasedHeapSize": "523.00M",
"HeapSizeBeforeGc": "2396M",
"HeapSizeAfterGc": "1873M",
"ReleasedEdenSize": "1.02G",
"ReleasedSurvivorSize": "0.00B"
},
{
"GcTime": "2025-05-26 17:35:41.594",
"Service": "hbase",
"Role": "RegionServer",
"Host": "172.16.0.121",
"GcType": "young",
"GcReason": "G1 Evacuation Pause",
"GcCostTime": "0.04 secs",
"GcPauseTime": "0.034026 secs",
"GcWorkerNum": 8,
"AppliedHeapSize": "4096M",
"ReleasedHeapSize": "315.00M",
"HeapSizeBeforeGc": "3088M",
"HeapSizeAfterGc": "2773M",
"ReleasedEdenSize": "396.00M",
"ReleasedSurvivorSize": "0.00B"
}
],
"GcListColumns": [
{
"ColumnId": "GcTime",
"Name": "GC时间",
"Action": 1,
"IsShow": 1,
"FilterList": [],
"FilterArrays": [],
"Width": 300
},
{
"ColumnId": "Service",
"Name": "服务",
"Action": 2,
"IsShow": 1,
"FilterList": [
"kyuubi",
"kafka",
"spark",
"trino",
"yarn",
"hdfs",
"hbase",
"hive"
],
"FilterArrays": [],
"Width": 100
},
{
"ColumnId": "Role",
"Name": "角色",
"Action": 2,
"IsShow": 1,
"FilterList": [
"JournalNode",
"Trino-Worker",
"DataNode",
"KafkaManager",
"JobHistoryServer",
"ResourceManager",
"SparkJobHistoryServer",
"NameNode",
"HMaster",
"Kafka",
"KyuubiServer",
"NodeManager",
"Trino-Coordinator",
"HiveMetaStore",
"RegionServer",
"HbaseThrift",
"HiveServer2",
"TimeLineServer"
],
"FilterArrays": [],
"Width": 150
},
{
"ColumnId": "Host",
"Name": "Host",
"Action": 2,
"IsShow": 1,
"FilterList": [
"172.16.0.117",
"172.16.0.71",
"172.16.0.112",
"172.16.0.109",
"172.16.0.44",
"172.16.0.89",
"172.16.0.55",
"172.16.0.121"
],
"FilterArrays": [],
"Width": 120
},
{
"ColumnId": "GcType",
"Name": "GC类型",
"Action": 2,
"IsShow": 1,
"FilterList": [
"young"
],
"FilterArrays": [],
"Width": 100
},
{
"ColumnId": "GcReason",
"Name": "GC原因",
"Action": 2,
"IsShow": 1,
"FilterList": [
"G1 Evacuation Pause"
],
"FilterArrays": [],
"Width": 200
},
{
"ColumnId": "GcCostTime",
"Name": "GC时长",
"Action": 3,
"IsShow": 1,
"FilterList": [],
"FilterArrays": [
{
"Value": "144.00-160.00",
"ValueDesc": "144.00ms - 160.00ms"
},
{
"Value": "120.00-144.00",
"ValueDesc": "120.00ms - 144.00ms"
},
{
"Value": "88.00-120.00",
"ValueDesc": "88.00ms - 120.00ms"
},
{
"Value": "48.00-88.00",
"ValueDesc": "48.00ms - 88.00ms"
},
{
"Value": "0.00-48.00",
"ValueDesc": "0.00ms - 48.00ms"
}
],
"Width": 150
},
{
"ColumnId": "GcPauseTime",
"Name": "GC停顿时长",
"Action": 3,
"IsShow": 1,
"FilterList": [],
"FilterArrays": [
{
"Value": "139.79-155.33",
"ValueDesc": "139.79ms - 155.33ms"
},
{
"Value": "116.50-139.79",
"ValueDesc": "116.50ms - 139.79ms"
},
{
"Value": "85.43-116.50",
"ValueDesc": "85.43ms - 116.50ms"
},
{
"Value": "46.60-85.43",
"ValueDesc": "46.60ms - 85.43ms"
},
{
"Value": "0.00-46.60",
"ValueDesc": "0.00ms - 46.60ms"
}
],
"Width": 150
},
{
"ColumnId": "GcWorkerNum",
"Name": "GC线程数",
"Action": 1,
"IsShow": 1,
"FilterList": [],
"FilterArrays": [],
"Width": 150
},
{
"ColumnId": "AppliedHeapSize",
"Name": "GC已申请的内存",
"Action": 1,
"IsShow": 1,
"FilterList": [],
"FilterArrays": [],
"Width": 150
},
{
"ColumnId": "ReleasedHeapSize",
"Name": "GC释放的堆内存",
"Action": 1,
"IsShow": 1,
"FilterList": [],
"FilterArrays": [],
"Width": 200
},
{
"ColumnId": "HeapSizeBeforeGc",
"Name": "GC前堆内存大小",
"Action": 1,
"IsShow": 1,
"FilterList": [],
"FilterArrays": [],
"Width": 200
},
{
"ColumnId": "HeapSizeAfterGc",
"Name": "GC后堆内存大小",
"Action": 1,
"IsShow": 1,
"FilterList": [],
"FilterArrays": [],
"Width": 180
},
{
"ColumnId": "ReleasedEdenSize",
"Name": "GC回收Eden区大小",
"Action": 1,
"IsShow": 1,
"FilterList": [],
"FilterArrays": [],
"Width": 200
},
{
"ColumnId": "ReleasedSurvivorSize",
"Name": "GC回收Survivor区大小",
"Action": 1,
"IsShow": 1,
"FilterList": [],
"FilterArrays": [],
"Width": 200
}
],
"RequestId": "439294d7-f91c-49d1-9983-f818fe19ee1d",
"Total": 6045
}
}