Get Memory Stats¶
Returns the Crafter Social JVM memory details.
Resource Information¶
This service uses the tomcat application on port 8080 by default.
The context for this API is /crafter-social, please prefix the API URLs with this context.
HTTP Verb 
 | 
GET 
 | 
URL 
 | 
/api/3/monitoring/memory | 
Response Formats 
 | 
JSON | 
Parameters¶
Name 
 | 
Type 
 | 
Required 
 | 
Description 
 | 
|---|---|---|---|
token 
 | 
String 
 | 
✓ 
 | 
The authorization token 
 | 
Example¶
Request¶
GET .../api/3/monitoring/memory.json?token=defaultManagementToken
Response¶
Status 200 OK
1{
2  "totalJvmMemory": 2017984512,
3  "freeJvmMemory": 1113921056,
4  "maxJvmMemory": 3817865216,
5  "totalOsMemory": 17179869184,
6  "freeOsMemory": 2669301760,
7  "totalSwapMemory": 2147483648,
8  "freeSwapMemory": 1026555904,
9}
Responses¶
Status 
 | 
Location 
 | 
Response Body 
 | 
|---|---|---|
200 
 | 
See example above. 
 | 
|
400 
 | 
{“error”:”Required String parameter ‘token’ is not present”, 
“message”:”Required String parameter ‘token’ is not present”} 
 | 
|
401 
 | 
{“error”:”Management authorization failed, invalid token.”, 
“message”:”Management authorization failed, invalid token.”} 
 | 
|
500 
 | 
{ "message" : "Internal server error" } |