Is it possible to have java check to see how much memory a particular
program is chewing? Preferably every second.

The program whose memory needs to be checked is a windows NT based program
suspected to have a memeory leak!!

A speedy reply would be appreciated

Cheers Charlie

09-11-2000, 09:56 AM

Nikhil

Re: Small question

Hi,
I am not sure. Can you please try the following in the code

Runtime.getRuntime().freeMemory() at the beginning and at the end of the
method. It will give you the memory used for that method. Please let me know
whether it is OK or not..

Nikhil

"Charlie" <pjvelzeboer@lineone.net> wrote:
>
>Is it possible to have java check to see how much memory a particular
>program is chewing? Preferably every second.
>
>
>The program whose memory needs to be checked is a windows NT based program
>suspected to have a memeory leak!!
>
>
>A speedy reply would be appreciated
>
>
>Cheers Charlie

09-12-2000, 01:04 PM

Dave Whelan

Re: Small question

It seems to me that Java isn't to relevent to this problem.If its an NT program
the why not just take a look at the task manager. It updates every second
and details the memory usage of each process!

"Charlie" <pjvelzeboer@lineone.net> wrote:
>
>Is it possible to have java check to see how much memory a particular
>program is chewing? Preferably every second.
>
>
>The program whose memory needs to be checked is a windows NT based program
>suspected to have a memeory leak!!
>
>
>A speedy reply would be appreciated
>
>
>Cheers Charlie

09-18-2000, 12:47 PM

Jo Desmet

Re: Small question

"Dave Whelan" <whelandj@tcd.ie> wrote:
> It seems to me that Java isn't to relevent
> to this problem. If its an NT program then
> why not just take a look at the task manager.
> It updates every second and details the
> memory usage of each process!

I totally agree. But probably then comes the
question of where the memory goes, and how to
control it.

"Charlie" <pjvelzeboer@lineone.net> wrote:
There is a tool called JProbe that seems to be the best profiling tool for
java. As far as I know it can tell exactly where your memory leaks happen
Alex.

>Is it possible to have java check to see how much memory a particular
>program is chewing? Preferably every second.
>
>
>The program whose memory needs to be checked is a windows NT based program
>suspected to have a memeory leak!!
>
>
>A speedy reply would be appreciated
>
>
>Cheers Charlie