I am using Jconsole for monitoring a Java Application. The memory tab shows different Heap and Non Heap memories like
What is the difference between these terms. Also please provide some information regarding - how to find anomalies in the application behavior by monitoring these parameters.
There are essentially three categories of storage in all C-based languages (and most other languages):
Heap you're familiar with.
Stack you're also familiar with, but you just don't know it. When you have a method with "local" variables, those variables are allocated in a "invocation frame". The "invocation frame" is allocated when you call the method and deleted when you return from the method, and hence it's most efficiently implemented using a "stack" that grows with call and shrinks with return.
Static is stuff that you don't explicitly allocate and essentially exists from the time program execution begins.
The space required for stack is generally fairly small and is lumped in with "Non Heap Memory" in the categories above.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With