java program consumes far more ram on linux than on windows - why ?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Stefan_Piegsa
Posted On:   Saturday, August 17, 2002 08:01 AM

Hello dudes,

i encountered a problem and i dont know how to solve it. i've a java application that consists of several classes and 3 threads. it consumes about 7 mb on win2k but up tp 100 mb on SuSE Linux and shows up 13 threads.

is this something wrong with java or with linux? have any of you guys already faced the same problem and solved it ?

thanks for any replies.

Re: java program consumes far more ram on linux than on windows - why ?

Posted By:   michael_dean  
Posted On:   Wednesday, August 21, 2002 10:45 PM

In Linux, the ps command shows each thread as a separate "process." In fact, you have 13 threads running in a single VM with ~7MB of RAM. The 13 threads reporting 7MB of RAM are all talking about the same 7MB, so when you added things up (7MB/process * 13processes=100MB), you overestimated the memory requirements. :)

About | Sitemap | Contact