Quoting David B. Reyes ([EMAIL PROTECTED]): > MemTotal: 516160 kB > MemFree: 4688 kB > MemShared: 0 kB > Buffers: 41164 kB > Cached: 379260 kB > SwapCached: 14668 kB > Active: 96856 kB > Inactive: 355044 kB > HighTotal: 0 kB > HighFree: 0 kB > LowTotal: 516160 kB > LowFree: 4688 kB > SwapTotal: 575488 kB > SwapFree: 530104 kB > > cat /proc/meminfo > > We have tomcat running, plus continuous queries on the mysql database. > But would all these activities/processes consume the 512MB of RAM?
Sure, but for values of "consume" that may surprise you. Linux makes good use of any not-otherwise-committed memory to use in its disk cache, but yields it up readily when other processes need it. Thus, no matter how much RAM you put in your Linux box, you'll always find that it's pretty much 100% used. This is A Good Thing. (That's your 379 MB, above.) > So if I have a GameServer.java program, when I increase the protected > static int nThreads variable to over 500, a java.lang.OutofMemory > Error is appended to nohup.out. Now, _that_ might be some genuine out-of-memory condition, but I can't help you with that. > We're already using kernel 2.5.8, so I don't think its a matter of > having the kernel being able to support a lot threads or processes. Does your problem replicate using a production-series kernel? I'm sure you're aware that 2.5.x is the development series. -- Cheers, There are only 10 types of people in this world -- Rick Moen those who understand binary arithmetic and those who don't. [EMAIL PROTECTED] _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
