There's more advice in this article on Linux Memory Overcommit.Memory overcommit is a Linux kernel feature that lets applications allocate more memory than is actually available. The idea behind this feature is that some applications allocate large amounts of memory "just in case", but never actually use it. Thus, memory overcommit allows you to run more applications than actually fit in your memory, provided the applications don't actually use the memory they've allocated. If they do, then the kernel terminates the application.
Originally posted by Charles Lyons:
Have a look at this article on Tuning Swappiness (and swapping behaviour). It may or may not help (post back and let us know).
512MB is not a lot of RAM for a Java EE server under load though. I generally recommend at least 1GB for any server these days, with RAM being so cheap. How large is your swap?
[ December 16, 2008: Message edited by: Charles Lyons ]
Originally posted by Charles Lyons:
It is also possible that your server isn't set to overcommit (seems unlikely given you say not much RAM is in use). A JVM allocates a lot more memory than it ever uses, so that can be a problem. Here's a quote about this 2.6 kernel feature: There's more advice in this article on Linux Memory Overcommit.
It may be due to 2.6's pre-emptive swapping, where (using swappiness), it tries to swap ahead of time to avoid delays when a new process actually needs RAM.Any idea why it's only using half of the RAM? The computer with the 2.4 kernel is using almost all of the RAM in the computer.
As with everything Linux, yep... this should do the trick:Is there any way to tell what the heck that hard drive is doing?
Originally posted by Charles Lyons:
Setting the commit time higher than the default (5 seconds) would seem sensible if that's what's causing the problem. I guess your other machine doesn't have a journalling system like ext3, or its commit is longer too?
That's always a possibility, though if it has now stopped making the noises, it was more likely a corrupt block or set of blocks on the disk. Glad it's all sorted now though! I have had no real problems with the 2.6 kernels; quite the reverse, they seem to perform better for me (on reasonable spec. machines at least).Or it could be that my hard drive is going south...
My cellmate was this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|