I'm trying to diagnose a java.lang.OutOfMemoryError: PermGen Space
error when running on Sun's Hotspot JVM, and would like to know how much PermGen space my program is using at various points. Is there a way of finding out this information programmatically?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Try
ManagementFactory.getMemoryPoolMXBeans()
.You can use something like this:
This will give you all types of memory. You are interested in "Perm Gen" type.