Microsoft KB Archive/262198

From BetaArchive Wiki

Article ID: 262198

Article Last Modified on 6/14/2006



APPLIES TO

  • Microsoft Java Virtual Machine



This article was previously published under Q262198

SYMPTOMS

If you pass Java/COM objects as instances of com.ms.com.Variant type, this can result in memory leaks. When you observe the process Mem Usage in Task Manager or you use Perfmon to view the private bytes for the process, you will see a continuous increase in size.

CAUSE

This is due to a bug in the Microsoft virtual machine (Microsoft VM) in the way it releases Java callable data wrappers.

RESOLUTION

For Windows NT and Windows 9x systems only:

To resolve this problem, update your version of the Microsoft virtual machine for Java to build 3193 or later. See the "References" section for a link to download the latest Microsoft VM.

For Windows 2000 systems:

The Microsoft VM contained within Windows 2000 is a protected file and as such can only be updated on Windows 2000 with Windows 2000 Service Pack releases. No fix is available at this time.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Microsoft Virtual Machine builds 3193 and later.

This problem was corrected in Windows 2000 Service Pack 1.


MORE INFORMATION

You can also use the heapmon sample that is available with the Microsoft SDK for Java version 4.0 to track the leak of such Java/COM objects. Refer to the "References" section to download the latest SDK and the corresponding documentation on how to use heapmon.

REFERENCES

For additional information about the latest service pack for Windows 2000, click the article number below to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack


The latest Microsoft VM and Microsoft SDK for Java are available for download at the following Web site:

For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:

Keywords: kbbug kbfix kbjavavm33xxfix kbwin2000sp1fix kbjava kbjavavm31xxfix KB262198