Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » uptime
uptime [message #986898] Thu, 22 November 2012 10:16 Go to next message
Bernt Formella is currently offline Bernt FormellaFriend
Messages: 3
Registered: November 2012
Junior Member
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 11:38 Go to previous messageGo to next message
Krum Tsvetkov is currently offline Krum TsvetkovFriend
Messages: 164
Registered: July 2009
Senior Member
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 08:26 Go to previous message
Bernt Formella is currently offline Bernt FormellaFriend
Messages: 3
Registered: November 2012
Junior Member
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: Tue Apr 16 20:23:19 GMT 2024

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

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

Back to the top