On Mon, 28 May 2001, Miloslaw Smyk wrote:
> Hi!
>
> Just a quick question: how can I calculate amount of memory that is used by
> an object running under JVM on Linux?
I don't work on JProbe anymore (I quit Sitraka about 9 months ago), but
AFAIK both it and Optimize It! can tell you this. You c
"John D. Mitchell" wrote:
> > "Nathan" == Nathan Meyers <[EMAIL PROTECTED]> writes:
> [...]
> > The info from ps will be useless, but you can get a ballpark figure by
> > computing Runtime.totalMemory() - Runtime.freeMemory() (calling
> > Runtime.gc() before the computation should prevent dea
> "Nathan" == Nathan Meyers <[EMAIL PROTECTED]> writes:
[...]
> The info from ps will be useless, but you can get a ballpark figure by
> computing Runtime.totalMemory() - Runtime.freeMemory() (calling
> Runtime.gc() before the computation should prevent dead objects from
> skewing the statisti
> "Miloslaw" == Miloslaw Smyk <[EMAIL PROTECTED]> writes:
[...]
> But I meant something different, forgive me for phrasing it poorly.
No sweat!
> I have an image synthesis app that creates hundreds of thousands of
> objects at the beginning, and later it only gets worse. If I knew how
> much
On 29 May 2001 00:07:11 +0200, Miloslaw Smyk wrote:
>
> So: can anyone tell me how much memory overhead hotspot adds for each object
> created under Linux JVM? If it is not constant value I'd appreciate even a
> ballpark figure.
Calling java.lang.Runtime.freeMemory() before and after allocation.
>So: can anyone tell me how much memory overhead hotspot adds for each object
>created under Linux JVM? If it is not constant value I'd appreciate even a
>ballpark figure.
Lots of info on this here:
http://www.javaworld.com/javaworld/jw-11-1999/jw-11-performance.html
I know from experience tha
On 29 May 2001 00:07:11 +0200, Miloslaw Smyk wrote:
>
> So: can anyone tell me how much memory overhead hotspot adds for each object
> created under Linux JVM? If it is not constant value I'd appreciate even a
> ballpark figure.
Call java.lang.Runtime.freeMemory() before and after allocation, th
Miloslaw Smyk wrote:
> "John D. Mitchell" wrote:
> >
> > > "Miloslaw" == Miloslaw Smyk <[EMAIL PROTECTED]> writes:
> > [...]
> > > Just a quick question: how can I calculate amount of memory that is used
> > > by an object running under JVM on Linux?
> >
> > There is an answer for this questi
"John D. Mitchell" wrote:
>
> > "Miloslaw" == Miloslaw Smyk <[EMAIL PROTECTED]> writes:
> [...]
> > Just a quick question: how can I calculate amount of memory that is used
> > by an object running under JVM on Linux?
>
> There is an answer for this question in the jGuru Java Language FAQ:
>
> "Miloslaw" == Miloslaw Smyk <[EMAIL PROTECTED]> writes:
[...]
> Just a quick question: how can I calculate amount of memory that is used
> by an object running under JVM on Linux?
There is an answer for this question in the jGuru Java Language FAQ:
http://www.jGuru.com/faq/JavaLanguage
Go
Hi!
Just a quick question: how can I calculate amount of memory that is used by
an object running under JVM on Linux?
Thanks,
Milek
--
mailto:[EMAIL PROTECTED] | "Man in the Moon and other weird things" -
http://wfmh.org.pl/~thorgal/ | see it at http://wfmh.org.pl/~thorgal/Moon/
F
11 matches
Mail list logo