Re: Need help on memory usage VS PF usage
From: Michael Borgwardt (brazil_at_brazils-animeland.de)
Date: 10/21/03
- Next message: Michael Borgwardt: "Re: Once again: how convert byte[] to int please !"
- Previous message: Ruppen Pascal: "Environment Variables with java"
- In reply to: metfan: "Need help on memory usage VS PF usage"
- Next in thread: Robert Olofsson: "Re: Need help on memory usage VS PF usage"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 21 Oct 2003 15:32:19 +0200
metfan wrote:
> and from the 'performance' tab I notice that the 'PF Usage'
> keeps growing, but from the 'processes' tab, the 'memory usage' of
> my program(javaw.exe) stays in a range(20M - 70M). Even after
> a long time running and 'PF Usage' reaches a very high point and
> finally
> out of memory, the 'memory usage' generally stays at 50M. I'm
> going to
> try some profiler but first could someone please explain what's the
> difference between 'memeory usage' and 'PF Usage' and why one
> keeps growing
> while the other doesn't?
That's absolutely normal. "PF" is the paging file, i.e. an area on the
harddisk to which unused parts of the RAM's content can be "paged out"
in order to simulate more memory than the machine actually has; this
is called "virtual memory".
"memory usage" is the actual RAM the process is using. A memory
leak typically creates lots of data that is not used but not freed
either, so it gets paged out when the physical RAM is insufficient.
> And, possiblly, some basic on the Java
> Memory Model?
There's enough books and websites that explain it and also the
concept of virtual memory, which you're apparently unfamiliar with.
As for the memory leak itself, your best chance at finding it is
by using something called a "profiler".
- Next message: Michael Borgwardt: "Re: Once again: how convert byte[] to int please !"
- Previous message: Ruppen Pascal: "Environment Variables with java"
- In reply to: metfan: "Need help on memory usage VS PF usage"
- Next in thread: Robert Olofsson: "Re: Need help on memory usage VS PF usage"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|