Skip to main content



      Home
Home » Eclipse Projects » Memory Analyzer » uptime
uptime [message #986898] Thu, 22 November 2012 05:16 Go to next message
Eclipse UserFriend
Hi

Does an hprof dump include how long has the jvm been running? Does MAT report it (can't seem to find it)?

Cheers
Re: uptime [message #986925 is a reply to message #986898] Thu, 22 November 2012 06:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

don't think there is a special field for this in the heap dump.
If there is any object keeping the startup date/time one could see it. I had a look at the System properties, but I didn't find there such a property.
One thing that could work:
- when starting the VM you pass an additional system property, keeping the start date/time, i.e. something like -DstartTime=<time>. You can pass date and time from the OS commands
- once you trigger a heap dump and open it in MAT, you open from the query menu "Java Basics" -> "System properties" and see the start date/time
- in the heap dump details view you can see the time when the heap dump is taken

It's not diretly the value "uptime" but you can calcualte it.
Let me know if this helps.

Krum
Re: uptime [message #990372 is a reply to message #986925] Wed, 12 December 2012 03:26 Go to previous message
Eclipse UserFriend
Yes it helped.
Thanks!
Previous Topic:OQL for thread locals (matching locals to threads)
Next Topic:application throws NoClassDefFoundError for some classes of org.eclipse.mat.api jar
Goto Forum:
  


Current Time: Sat Jul 12 21:16:23 EDT 2025

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

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

Back to the top