Netbeans Profiler and Windows XP Task Manager.

Netbeans profiler says i have no memory leak. But memory usage of my app in task manager continually increases. But when i minimize my app, its mem usage goes down. and continually increases again. May somebody explain to me why this happens?Thanks,Aldrich(Java noob)
[295 byte] By [Aldricha] at [2007-11-27 5:44:12]
# 1

> Netbeans profiler says i have no memory leak. But

> memory usage of my app in task manager continually

> increases.

This does not mean that you have a leak. This could be normal.

> But when i minimize my app, its mem usage

> goes down. and continually increases again. May

> somebody explain to me why this happens?

Because?

cotton.ma at 2007-7-12 15:24:39 > top of Java-index,Java Essentials,Java Programming...
# 2

> > Netbeans profiler says i have no memory leak. But

> > memory usage of my app in task manager continually

> > increases.

>

> This does not mean that you have a leak. This could

> be normal.

>

> > But when i minimize my app, its mem usage

> > goes down. and continually increases again. May

> > somebody explain to me why this happens?

>

> Because?

Application should be stable at some point, right?

i dont know. i open task manager, minimize my app, and its mem goes down then up again. my app is a console app.

basically, if number of generations is low, it means there is no memory leak?

Aldricha at 2007-7-12 15:24:39 > top of Java-index,Java Essentials,Java Programming...
# 3

> > > Netbeans profiler says i have no memory leak.

> But

> > > memory usage of my app in task manager

> continually

> > > increases.

> >

> > This does not mean that you have a leak. This

> could

> > be normal.

> >

> > > But when i minimize my app, its mem usage

> > > goes down. and continually increases again. May

> > > somebody explain to me why this happens?

> >

> > Because?

>

> Application should be stable at some point, right?

Maybe. Depends what you are doing. If your over time reading more data then memory usage will increase over time.

>

> i dont know. i open task manager, minimize my app,

> and its mem goes down then up again. my app is a

> console app.

>

> basically, if number of generations is low, it means

> there is no memory leak?

If there is no leak there is no leak.

Not having a leak does not mean you may not run out of memory at some point. If you store enough stuff into it over time you will run out.

And maybe you do have a leak.

There just isn't enough information for us to go on here. First of all why are you concerned about this? Any other reason besides task manager? Second, you'll need to tell us at least more about what the program does and probably some snippets of code would be useful.

cotton.ma at 2007-7-12 15:24:39 > top of Java-index,Java Essentials,Java Programming...
# 4

> > > But when i minimize my app, its mem usage

> > > goes down. and continually increases again. May

> > > somebody explain to me why this happens?

When you minimize your application, Windows pages some of its data out to the swap file. Hence as far as Windows is concerned its memory requirements become smaller.

DrClapa at 2007-7-12 15:24:39 > top of Java-index,Java Essentials,Java Programming...
# 5

> > > > But when i minimize my app, its mem usage

> > > > goes down. and continually increases again.

> May

> > > > somebody explain to me why this happens?

>

> When you minimize your application, Windows pages

> some of its data out to the swap file. Hence as far

> as Windows is concerned its memory requirements

> become smaller.

This is a server client app. hmmm. is there a way to force this?

Aldricha at 2007-7-12 15:24:39 > top of Java-index,Java Essentials,Java Programming...