We are using Oracle Coherence on linux servers. However, we noticed that because of Coherence processes running, often our swap utilization % increases too much, sometimes becoming more than 98%, even touched 100% a few times.Once we kill all the coherence related processes, then it becomes normal.Is there any way we can make coherence processes to only use a particular size of Swap space ?Currently increasing swap space is not in our scope.Please suggest.
Swap Utilization Increase with Oracle Coherence
linux;swap
To avoid swapping, you will need to add more physical RAM. If your application (Oracle Coherence) demands a large amount of RAM as a part of normal operation (i.e. not a memory leak), and you do not have enough physical memory, then pretty much the only option is swapping.As a workaround, you might want to swap to a file, though this can be slower.Create an empty file using dd: dd if=/dev/zero of=/path/to/swapfile bs=1M count=<size, in megabytes>.Create a swap filesystem on it: mkswap /path/to/swapfileSwap on it: swapon /path/to/swapfile.