Find the memory allocated by the JVM
java, jvm, memory-management
Solution
there is a command that comes with the JRE called `jps` which you can use to see all the running java processes. using `jps` with `-v` gives you the launch parameters of each process.
You can see here the launch parameters which will tell you the memory usage of each process.
This command should run also on Windows, just replace the terminal with a command prompt.
Problem
I am looking for an easy way to find out how much memory the JVM on my computer has allocated to a specific process, i have tried using VisualVM, but it cannot find the process. I should mention that this it's running a Windows Service, not a regular process. Any suggestions ? Thank in advance.