Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Memory usage
Memory usage [message #1770099] Tue, 08 August 2017 06:32 Go to next message
Eclipse UserFriend
Hi,

How can I get memory usage of the program in Java?
Re: Memory usage [message #1770837 is a reply to message #1770099] Thu, 17 August 2017 09:59 Go to previous messageGo to next message
Eclipse UserFriend
If you have the standalone jar just check your system resources (e.g. windows task manager) when you run it. If you are interested in more detailed information you need a performance library, e.g. Oracle's Mission Control[1]

Horacio
[1] http://www.oracle.com/technetwork/java/javaseproducts/mission-control/java-mission-control-1998576.html
Re: Memory usage [message #1770839 is a reply to message #1770099] Thu, 17 August 2017 10:00 Go to previous messageGo to next message
Eclipse UserFriend
dbl post

[Updated on: Thu, 17 August 2017 10:06] by Moderator

Re: Memory usage [message #1771225 is a reply to message #1770839] Wed, 23 August 2017 02:20 Go to previous message
Eclipse UserFriend
by using Runtime.getRuntime.totalMemory() and Runtime.getRuntime.freeMemory() we can calculate how much space has been currently occupied by Java object or you say used memory in JVM as show in below code example of getting memory sizes in Java.
Previous Topic:Launch debugie in java.exe instead of javaw.exe
Next Topic:java.lang.UnsatisfiedLinkError: Unable to load library
Goto Forum:
  


Current Time: Sun Aug 31 16:21:39 EDT 2025

Powered by FUDForum. Page generated in 0.04739 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top