• 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

Memory Usage shown by Windows Task Manager and VM Telemetry view

 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Well i have gone hrough this statement ,

the memory usage that is displayed by task manager is slightly different from the heap usage

Please tell me what task manager shows actually beside to javaw.exe ?
 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Ravi,
i would suggest you to use some open source application(s) for performance and memory overview.
for example use "JProfiler" if you want to see the memory usage of your application. this is really a good tool for getting the deep memory info in the form of graphs and charts.



Regards,
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Aamir but my question still remains the same.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The memory for the java process reported by the operating system includes:

* The amount of heap space allocated (this is not just the space used by "live" objects)
* The permgen space used to store class info
* The thread stacks (usually 1MB per thread, but that depends on several factors)
* The C/C++ data structures used by the java process
* The memory occupied by the executable and any shared libraries (*.dll, *,so) loaded by the process (if several process use the same code, this is shared between then but is often reported as memory used by each)
(I'm sure I forgot something...)

Monitoring operating system memory stats is NOT the way to determine heap usage - you must use Java-specific tools for this. JConsole, VisualVM and many other tools will provide heap usage information.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks peter that was nice explanation
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic