M
metfan
Gurus,
I wrote a web testing tool, it uses the HttpUnit to simulate
the actions of surfing the net according to some preconfiged
scripts. The problem is that my program seems has a memory leak bug,
if I keep it running long enough, it finally runs into
OutOfMemoryError. When it's running, I open the 'task manager'
(Under windows)
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? And, possiblly, some basic on the Java
Memory Model?
Thanks.
I wrote a web testing tool, it uses the HttpUnit to simulate
the actions of surfing the net according to some preconfiged
scripts. The problem is that my program seems has a memory leak bug,
if I keep it running long enough, it finally runs into
OutOfMemoryError. When it's running, I open the 'task manager'
(Under windows)
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? And, possiblly, some basic on the Java
Memory Model?
Thanks.