You can call this operation to query the Java virtual machine (JVM) settings of an application or an instance group.
Debugging
Request headers
This operation only uses common request headers. For more information, see the Common request parameters topic.
Request syntax
GET /pop/v5/app/app_jvm_config HTTPS|HTTP
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
AppId | String | Yes | 3616cdca-4f92-4*************** |
The ID of the application whose JVM settings you want to query. |
GroupId | String | No | 8123db90-880f-48************** |
The ID of the instance group whose JMV settings you want to query. If want to query the JVM settings of an instance group, set this parameter to a specific ID. If want to query the JVM settings of an application, set this parameter to "". |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The returned code. |
Message | String | success |
The returned message. |
RequestId | String | 3F43-F34V-0VCD*********** | |
JvmConfiguration | Struct |
The returned JVM settings. |
|
Options | String | -XX:+UseConcMarkSweepGC -XX:-UseParNewGC |
The returned custom JVM parameters. |
MinHeapSize | Integer | 500 |
The initial size of the heap allocated to the JVMs. Unit: MB |
MaxPermSize | Integer | 1000 |
The maximum size of the permanent generation heap allocated to the JVMs. Unit: MB |
MaxHeapSize | Integer | 1000 |
The maximum size of the heap allocated to the JVMs. Unit: MB |
Examples
Sample requests
GET /pop/v5/app/app_jvm_config HTTP/1.1
Common request headers
{
"AppId": ""
}
Sample success responses
JSON
format
{
"Message": "success",
"JvmConfiguration": {
"MaxHeapSize": 1000,
"MinHeapSize": 500,
"Options": " -XX:+UseConcMarkSweepGC -XX:-UseParNewGC"
},
"Code": 200
}
XML
format
<Message>success</Message>
<JvmConfiguration>
<MaxHeapSize>1000</MaxHeapSize>
<MinHeapSize>500</MinHeapSize>
<Options> -XX:+UseConcMarkSweepGC -XX:-UseParNewGC</Options>
</JvmConfiguration>
<Code>200</Code>
Error codes
For a list of error codes, visit the API Error Center.