Skip to content

Commit

Permalink
GDB-11166 - add correct label in off-heap monitoring chart (#1681)
Browse files Browse the repository at this point in the history
  • Loading branch information
DesiBorisova authored Nov 4, 2024
1 parent d8581e2 commit 8800f11
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/i18n/locale-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,7 @@
"resource.memory.heap.label": "Heap memory usage",
"resource.memory.heap.tooltip": "Shows the heap memory used by GraphDB. The heap memory is the main memory allocated for keeping the database running and it is also used for any memory-intensive operations when needed. Approaching the maximum heap size can slow down GraphDB",
"resource.memory.heap.max": "Maximum heap size: ",
"resource.memory.non_heap.max": "Maximum off-heap size: ",
"resource.memory.non_heap.label": "Off-heap memory usage",
"resource.memory.non_heap.tooltip": "Shows the off-heap memory used by GraphDB. The off-heap memory is used only for certain structures and should not grow substantially with time",
"resource.memory.committed": "Committed memory",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locale-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,7 @@
"resource.memory.heap.label": "Utilisation de la mémoire du tas",
"resource.memory.heap.tooltip": "Montre la mémoire du tas utilisée par GraphDB. La mémoire du tas est la mémoire principale allouée pour faire fonctionner la base de données et elle est également utilisée pour toutes les opérations gourmandes en mémoire lorsque cela est nécessaire. L'approche de la taille maximale du tas peut ralentir GraphDB",
"resource.memory.heap.max": "Taille maximale du tas : ",
"resource.memory.non_heap.max": "Taille maximale hors-heap : ",
"resource.memory.non_heap.label": "Utilisation de la mémoire hors-heap",
"resource.memory.non_heap.tooltip": "Montre la mémoire hors-heap utilisée par GraphDB. La mémoire off-heap n'est utilisée que pour certaines structures et ne devrait pas augmenter de façon substantielle avec le temps",
"resource.memory.committed": "La mémoire engagée",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ export class NonHeapMemoryChart extends HeapMemoryChart {
super(translateService, false, false);
}

configureSubtitle(isNonHeapChart) {
if (this.latestData.max > 0) {
const subTitleKeyValues = [{
label: this.translateService.instant('resource.memory.non_heap.max'),
value: HeapMemoryChart.formatBytesValue(this.latestData.max, null, this.selectedSeries)
}];
this.setSubTitle(subTitleKeyValues);
}
}

parseData(data) {
return data.nonHeapMemoryUsage;
}
Expand Down
1 change: 1 addition & 0 deletions test-cypress/fixtures/locale-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1093,6 +1093,7 @@
"resource.memory.heap.label": "Heap memory usage",
"resource.memory.heap.tooltip": "Shows the heap memory used by GraphDB. The heap memory is the main memory allocated for keeping the database running and it is also used for any memory-intensive operations when needed. Approaching the maximum heap size can slow down GraphDB",
"resource.memory.heap.max": "Maximum heap size: ",
"resource.memory.non_heap.max": "Maximum off-heap size: ",
"resource.memory.non_heap.label": "Off-heap memory usage",
"resource.memory.non_heap.tooltip": "Shows the off-heap memory used by GraphDB. The off-heap memory is used only for certain structures and should not grow substantially with time",
"resource.memory.committed": "Committed memory",
Expand Down

0 comments on commit 8800f11

Please sign in to comment.