java takes more memory in linux?

E

Elhanan

hi...

i'm trying to use a java server in windows xp and in linux FC3 i'm
trying to see how much memory they will take.

using Alt+Ctrl+Del in windows i can see that the java process takes
around 193mb , but in linux's x system monitor i can see it takes
around 422mb does it make sense?
 
P

pwt

Elhanan said:
hi...

i'm trying to use a java server in windows xp and in linux FC3 i'm
trying to see how much memory they will take.

using Alt+Ctrl+Del in windows i can see that the java process takes
around 193mb , but in linux's x system monitor i can see it takes
around 422mb does it make sense?

It's likely that task manager is only showing you the active memory
used, and not the memory that's been paged out. Goto View->Select
Columns, and check Virtual Memory Size, and any other memory-related
columns that tickle your fancy.

And what in the world could be eating nearly half a gigabyte of memory?
 
M

Matt Parker

pwt said:
It's likely that task manager is only showing you the active memory
used, and not the memory that's been paged out. Goto View->Select
Columns, and check Virtual Memory Size, and any other memory-related
columns that tickle your fancy.

And what in the world could be eating nearly half a gigabyte of memory?

Because of the way Linux's threading model interacts with Java, Linux will
report the total memory used as the memory used for each thread.

So if you have an application with 3 threads running with a total
application memory usage of 193Mb, you may see 579Mb as the memory usage in
some tools.

Matt
 
T

Thomas Hawtin

Matt said:
Because of the way Linux's threading model interacts with Java, Linux will
report the total memory used as the memory used for each thread.

So if you have an application with 3 threads running with a total
application memory usage of 193Mb, you may see 579Mb as the memory usage in
some tools.

Didn't kernel 2.4 sort that?

Still Linux and Windows report memory in very different ways, and the
two are not directly comparable. On Windows, I believe, reported memory
usage can depend upon whether some DLLs are considered as part of the
operating system or not. So you can't even compare Windows applications
together.

Tom Hawtin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top