Forums Register Login

Heap Size Vs Process Size

+Pie Number of slices to send: Send
I am not sure if this is the right forum to post please excuse me if not.

I am really confused about the Heap Size vs the Java process size. Can somebody explain me.

- I have the heap size set to 768 MB (Start and Max are same)
- The perm size set to 256 MB (Min) & 512MB as the Max

When I start the OAS/Webapp server the Java process associated with the OAS/Webapp sever show at a memory consumption of 1.1G

I am not sure the Java process memory size is a combination of PermSize+Heap Size?
+Pie Number of slices to send: Send
I'm going to move this to Java In General (Advanced) as it is not specific to Tomcat.

Good luck with your question.
-Ben
+Pie Number of slices to send: Send
A java virtual machine is a C or C++ program. It runs on the OS like any other program. It takes memory to do the things it does. Like any other program.
+Pie Number of slices to send: Send
The following is from experience, but may not be true for all JVMs ...

The process size - what the OS reports for java.exe - can start out much lower than the sum of all Java memory maximums. The JVM asks the OS for some fraction of the space it will eventually need. As you create lots of objects, the JVM may ask the OS for more, and you'll see process memory go up. After garbage collection you might expect to see the process memory go back down, but the JVM doesn't give memory back. It just hangs on to it for the next time you need it.
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1165 times.
Similar Threads
JVM process memory VS object heap memory
heap size vs memory usage
Concurrent Mark Sweep Vs Garbage 1 GC
RSS vs allocated heapsize
performance
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 08:00:36.