Shouldn't this:
long max = runtime.maxMemory() / 1000000;
long total = runtime.totalMemory() / 1000000;
long used = total - runtime.freeMemory() / 1000000;
be this:
long max = runtime.maxMemory() / 1048576;
long total = runtime.totalMemory() / 1048576;
long used = total - runtime.freeMemory() / 1048576;
Douglas Ferguson
mobile: 512.293.7279
office/fax: 512.462.0408
skype: stillrecording
aim: DaAmericanRuse
-
http://www.linkedin.com/in/douglasferguson
http://www.myspace.com/douglasferguson
http://www.douglasferguson.us/
http://www.distilleryrecords.com/
http://www.stillrecording.com/
Join my mailing list: [email protected]
________________________________________
From: Jeremy Thomerson [[email protected]]
Sent: Thursday, April 30, 2009 2:43 PM
To: [email protected]
Subject: Re: Analyzing Request Logger
That's the great thing about open source - you have the source. You
can view the source. And the source answers many of your questions.
http://svn.apache.org/viewvc/wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/RequestLogger.java?view=markup
Use the source Luke! May the source be with you!
After you take a look at that, let us know what questions you still have.
--
Jeremy Thomerson
http://www.wickettraining.com
On Thu, Apr 30, 2009 at 2:35 PM, Douglas Ferguson
<[email protected]> wrote:
> Howdy,
>
> I turned on the request logger and now I'm trying to figure out what this is
> telling me.
>
> Specifically...
>
> 1) What does sessionsize return? Is the size in bytes?
> 2) total & used - is this for the entire VM?
> 3) what is time vs. total time?
> 4) is time in mili-seconds?
> 5) I set the window size to 0 because I was worried about this effecting
> performance? Is this wise?
> 6) Does the request logger effect performance? Is it safe to run in
> production?
>
>
> Douglas
>
> Apr 30 14:33:37 INFO [TP-Processor8] http.RequestLogger -
> time=191,event=Interface[target:MediaOutletAddOrEdit$MediaOutletForm$4(dataPanel:contentCenterBox:addMediaOutletForm:add),
> page: com.conducive.ui.userPages.contacts.media.Media(3), interface:
> IActivePageBehaviorListener.onRequest],response=PageRequest[com.conducive.ui.userPages.contacts.media.Media(3)],sessionid=FD21BB53EF7C09B81C5C50360D1CA670,sessionsize=82369,sessionstart=Thu
> Apr 30 14:32:48 CDT
> 2009,requests=31,totaltime=8799,activerequests=1,maxmem=133M,total=58M,used=52M
>
>
>
> Douglas Ferguson
>
> mobile: 512.293.7279
> office/fax: 512.462.0408
> skype: stillrecording
> aim: DaAmericanRuse
>
> -
>
> http://www.linkedin.com/in/douglasferguson
> http://www.myspace.com/douglasferguson
> http://www.douglasferguson.us/
> http://www.distilleryrecords.com/
> http://www.stillrecording.com/
>
> Join my mailing list: [email protected]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]