Re: Object sizes

2001-05-28 Thread Scott Murray
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

Re: Object sizes

2001-05-28 Thread Nathan Meyers
"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

Re: Object sizes

2001-05-28 Thread John D. Mitchell
> "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

Re: Object sizes

2001-05-28 Thread John D. Mitchell
> "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

Re: Object sizes

2001-05-28 Thread Weiqi Gao
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.

Re: Object sizes

2001-05-28 Thread Nelson Minar
>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

Re: Object sizes

2001-05-28 Thread Weiqi Gao
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

Re: Object sizes

2001-05-28 Thread Nathan Meyers
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

Re: Object sizes

2001-05-28 Thread Miloslaw Smyk
"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: >

Object sizes

2001-05-28 Thread John D. Mitchell
> "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

Object sizes

2001-05-28 Thread Miloslaw Smyk
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