>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

Rich-client application performance, Part 2: Plugging memory leaks - heap resources application listener memory leaks gdi java

 
Registered tutorials: 501
Registered Users: 29884



Rating: 0 out of 0 votes cast


  
Category: JavaScript Framework

Tags Map

action actions add adding analysis application applications article buddy build button caches case chat chris client closed code common cost countries create created creating cycle detection developers developerworks development device differential dispose disposed domain dump dumps duplicates eclipse expect figure find fixed frequently gdi graphical heap ibm image images important information instances interface issues java jvms leak leaking leaks level life list listener listeners localresourcemanager long mail manage manager mb memory message messages native number object objects open options os page part performance platform preference problem process rate read registry remove removes reports resource resources rich run running server set share sleak source standard start states store swt system takes task technical techniques technology test time times tools top total trademarks typically ui understanding unit united usage view web websphere widget window windows workbench write

Keyword Cloud Navigation Map

Rich-client application performance, Part 2: Plugging memory leaks

Digg this   Post to del.icio.us

Abstract: This article takes a look at memory usage and how to chase down memory leaks.

Understanding memory usage

Understanding a Rich Client Platform (RCP) application's total memory usage can be a tricky affair. The operating system (OS) tells you how much memory your application consumes, and the Java™ platform tells you how much heap you've consumed. The memory usage that the OS reports is always greater than the available heap size. Unfortunately, sometimes the number that the OS reports is much larger than the heap size. One of the challenges of heap analysis is determining what lies in this "dark space."

In general: process memory usage = Java heap + complied native code + bytecodes + other / native

Unfortunately, what the JVMs tell you about their heaps varies by release and vendor. Here are some examples from a Java application I'm running: Sun's 1.6 JDK reports 32.7MB heap and the OS reports 48.6MB private bytes, leaving 16MB unaccounted for. All told, that's not so bad. In this case the compiled code and bytecodes are part of the 16MB. The same application running with the IBM® 1.5 JDK has a heap plus classloaders plus compiled code of 39MB, and the OS reports 45.8MB.

Typically, you can simplify the matter by focusing only on the Java heap. This is a sufficient approach for most Java applications and the spot where you can make the largest improvements. When that isn't the case, you should use your OS's tools to examine the native memory not covered by the Java heap.


Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 45
Unique Hits: 38


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0 0 0.4 0.5 1.4 1.9
Current 0 0 0 0 0 0
Previous 0 0 0 0 1 2
Oct 13 0 0 0 0 3 3
Oct 12 0 0 0 0 0 0
Oct 11 0 0 0 0 2 3
Oct 10 0 0 1 2 0 0
Oct 9 0 0 0 0 1 2
Oct 8 0 0 1 1 3 4
Oct 7 0 0 1 1 4 5
Oct 6 0 0 1 1 0 0
Highest 4 4 8 8 11 11


Script Execution Time: 0.86017 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2