일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- Book review
- Linux
- ubuntu
- Kuala Lumpur
- QT
- Spain
- Software Engineering
- Programming
- Malaysia
- program
- agile
- erlang
- MySQL
- comic agile
- Python
- leadership
- Artificial Intelligence
- management
- programming_book
- Italy
- Book
- django
- hbase
- essay
- hadoop
- Java
- web
- RFID
- France
- history
- Today
- Total
목록memory usage (3)
instrumentation interface를 이용하는 MemoryCounter의 후속 버전. 아직 jar, javaagent 사용 방법을 몰라 실행해보지는 못했음 -_-; //http://www.javaspecialists.eu/archive/Issue142.html package eu.javaspecialists.tjsn.memory; import java.lang.instrument.Instrumentation; import java.lang.reflect.*; import java.util.*; public class MemoryCounterAgent { private static Instrumentation instrumentation; /** Initializes agent */ public..
//http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html //http://www.javamex.com/classmexer //source 비공개, agent 방식으로 동작 //http://www.vogella.de/articles/JavaPerformance/article.html#runtimeinfo_memory //http://www.javapractices.com/topic/TopicAction.do?Id=83 /* 1.Runtime의 gc()는 API document의 다음 문장을 보면 The method System.gc() is the conventional and convenient means of invoking this m..
//http://www.javaspecialists.eu/archive/Issue078.html import java.lang.reflect.*; import java.util.*; /** * This class can estimate how much memory an Object uses. It is * fairly accurate for JDK 1.4.2. It is based on the newsletter #29. */ public final class MemoryCounter { private static final MemorySizes sizes = new MemorySizes(); private final Map visited = new IdentityHashMap(); private fin..