This simple project provides a way to efficiently calculate the actual memory use of any Java object. The class makes use of the JVMs own instrumentation support to calculate the object memory use in a portable way.
Features
- Uses the JVM instrumentation to correctly and portably obtain memory use of Java objects
- Support "deep" memory use, i.e. the size of a whole object graph
- Internally built for optimum performance caching class related information
- Internal caches do not prevent class unloading and are automatically cleared as classes are unloaded
Categories
LibrariesLicense
Apache License V2.0Follow jMemoryUse
Other Useful Business Software
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of jMemoryUse!