SAMPLE: SmartGC Uses an ATL Server to Trigger Java Garbage Collection (231294)
The information in this article applies to:
- Microsoft Visual J++ 6.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft virtual machine
- the operating system: Microsoft Windows NT 4.0
- the operating system: Microsoft Windows NT 4.0 SP4
This article was previously published under Q231294 SUMMARY
Java applications can register a sink with the JVMmem ActiveX Template Library (ATL) server, which periodically monitors memory load. When a memory threshold is exceeded, the server fires a notification event to the Java application indicating that the Java garbage collector should be invoked.
SmartGC.exe provides a foundation for Java applications to more optimally control garbage collection. Since Java garbage collection is triggered by Virtual Memory (VM) usage, some applications may run more efficiently if garbage collection is triggered on available RAM or the process Working Set size.
REFERENCES
For more information, see the following article in the Microsoft Knowledge Base:
231183 SAMPLE: Clean Up Java Resources Automatically with Gc.exe
For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 6/14/2006 |
---|
Keywords: | kbdownload kbhowto kbJava kbJNative KB231294 kbAudDeveloper |
---|
|