Avatar billede fredand Forsker
09. maj 2011 - 16:40 Der er 2 kommentarer og
1 løsning

Why do I get different memory in my app and frpm the task manager.

Hello!

I'm playing around with a simple app that runs until it gets out of memory.

The app is started with heap size -Xmx64M:

javaw -Xmx64M my.app.Main

The strange thing is that the memory it uses is much more then my heapsize when I look at it in the task manager.

How is this possible (or what am I missing here)?

At this image you can see it for you self:
http://dxc6nw.blu.livefilestore.com/y1pWto3Ig3BdfLQ35b4WB4O3ium1uf20dr1me2BJpHlhUXNfkYoks1RtqKejgE1bhwTRAlm_T9Qgpr3aonW8Jj24m4u9LlDnKJV/minnes_test.png?psid=1

Best regards
Fredrik
Avatar billede arne_v Ekspert
09. maj 2011 - 17:09 #1
As I remember it then Xmx specify how much memory can be used for your apps variables.

On top of that comes: JVM, class definitions, native DLL's etc..
Avatar billede fredand Forsker
10. maj 2011 - 08:51 #2
Hello!

That really sound reasonable.
That must be the way it works.

Thanks alot, please give a svar Arne!

Best regards
Fredrik
Avatar billede arne_v Ekspert
10. maj 2011 - 15:57 #3
svar
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester