> 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?
> > 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?
> > > 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.
> > > 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.
> > > > 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?