• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Heap Size Vs Process Size

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm going to move this to Java In General (Advanced) as it is not specific to Tomcat.

Good luck with your question.
-Ben
 
Ranch Hand
Posts: 1170
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
reply
    Bookmark Topic Watch Topic
  • New Topic