Why is OpenJDK Docker Container ignoring Memory Limits in Kubernetes?
I`m placing this answer as community wiki since it might be helpful for the community. Kubectl top was displying incorrect data. OP solved the problem with uninstalling the kube-prometheus stack and installing the metric-server.
The reason for the high values was an incorrect output of the Metricdata received from Project kube-prometheus. After uninstalling thekube-projemet and installing instead the metric-server all data wasdisplay correctly using kubectl top. It shows now the same values asdocker stats. I do not know why kube-prometheus did compute wrongdata. In fact it was providing the double values for all memory data.