2 Documentation Robot keyword library for Monitoring JVM resources
3 Library ${CURDIR}/Appenders/ElasticsearchAppender.py
4 Variables ${CURDIR}/../variables/Variables.py
8 [Documentation] Return latest jvm Memory object
9 [Arguments] ${controller-ip}=${ODL_SYSTEM_IP} ${elastic-port}=${ELASTICPORT}
10 ${session} ElasticsearchAppender.Get_Connection ${controller-ip} ${elastic-port}
11 ${value}= ElasticsearchAppender.Get Jvm Memory ${session}
16 [Documentation] Return latest jvm Threading object
17 [Arguments] ${controller-ip}=${ODL_SYSTEM_IP} ${elastic-port}=${ELASTICPORT}
18 ${session} ElasticsearchAppender.Get_Connection ${controller-ip} ${elastic-port}
19 ${value}= ElasticsearchAppender.Get Jvm Threading ${session}
24 [Documentation] Return latest jvm Classloading object
25 [Arguments] ${controller-ip}=${ODL_SYSTEM_IP} ${elastic-port}=${ELASTICPORT}
26 ${session} ElasticsearchAppender.Get_Connection ${controller-ip} ${elastic-port}
27 ${value}= ElasticsearchAppender.Get Jvm Classloading ${session}
31 Get JVM Operatingsystem
32 [Documentation] Return latest jvm Operatingsystem object
33 [Arguments] ${controller-ip}=${ODL_SYSTEM_IP} ${elastic-port}=${ELASTICPORT}
34 ${session} ElasticsearchAppender.Get_Connection ${controller-ip} ${elastic-port}
35 ${value}= ElasticsearchAppender.Get Jvm Operatingsystem ${session}
41 [Documentation] Draw Resource usage plot using plot_points method.
42 [Arguments] ${controller-ip}=${ODL_SYSTEM_IP} ${elastic-port}=${ELASTICPORT}
43 ${session} ElasticsearchAppender.Get_Connection ${controller-ip} ${elastic-port}
45 Plot Points ${session} JVM ThreadCount threadcount.png 'Threading' 'TotalStartedThreadCount'
46 Plot Points ${session} JVM Heap Memory heapmemory.png 'Memory' 'HeapMemoryUsage' 'used'
47 Plot Points ${session} JVM LoadedClassCount class_count.png 'ClassLoading' 'TotalLoadedClassCount'
48 Plot Points ${session} JVM CPU Usage cpu_usage.png 'OperatingSystem' 'ProcessCpuLoad'