Pergunta de entrevista da empresa Amazon

How do you know how much memory your java application is taking on Linux?

Respostas da entrevista

Sigiloso

20 de mai. de 2020

jps |awk "{print $1}" | xargs -L 1 ps -ef -o %mem

1

Sigiloso

7 de fev. de 2021

ps aux | grep -i

Sigiloso

18 de out. de 2015

pmap or top is probably the simplest. Just be sure not to confuse virtual memory with physical.

8

Sigiloso

2 de mar. de 2018

Just search for the pid created by that java process. And then you get to know the memory usage by top or ps -ef/ps -auxx commands.

Sigiloso

10 de jun. de 2019

jvmtop is a command-line tool which provides a live-view at several metrics, including heap.

Sigiloso

7 de fev. de 2020

Ps -ef| grep - java

1