Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > java takes more memory in linux?

Reply
Thread Tools

java takes more memory in linux?

 
 
Elhanan
Guest
Posts: n/a
 
      08-05-2005
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?

 
Reply With Quote
 
 
 
 
pwt
Guest
Posts: n/a
 
      08-07-2005
Elhanan wrote:
> 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?

 
Reply With Quote
 
 
 
 
Matt Parker
Guest
Posts: n/a
 
      08-07-2005
pwt wrote:

> Elhanan wrote:
>> 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?


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
 
Reply With Quote
 
Thomas Hawtin
Guest
Posts: n/a
 
      08-08-2005
Matt Parker wrote:
>
> 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
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Regular Expression (java.util.regex ): Multiple Occurences, always guaranteed that it takes the last? joes Java 2 05-25-2007 05:57 PM
Identifying which class takes the more memory in an application david.jobet@free.fr C++ 7 03-07-2007 04:59 PM
EditItemTemplate takes more than one click to activate Jim in Arizona ASP .Net 0 10-10-2006 05:24 PM
Re: Linked list takes 10X more memory than expected. Why? Karl Heinz Buchegger C++ 2 01-26-2004 08:11 AM
Re: Linked list takes 10X more memory than expected. Why? Alf P. Steinbach C++ 2 01-25-2004 05:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57