Swap increases constantly


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Swap increases constantly
# 1  
Old 09-03-2007
Swap increases constantly

We are using SUSE Linux version 9.X

We have our application developed in J2SDK 1.4.2.X

In our machine we are running two java processes .Those two processes uses memory from RAM , once the memory need is more , swap memory increases.

Two processes which runs are swing application and one messaging application.

Sad part here is , swap memory does not remain constant , it keeps on increasing for every activity and as a result of constant increase in swap memory , load average of CPU increases and thereby reducing the performance of the application.

Is this behaviour is as expected or is there anything needs to be done at OS level such that both processes always use memory from RAM and not from Swap.
# 2  
Old 09-03-2007
Swap is being used because your application is running out of main memory to use. Your process size shouldn't keep increasing. You may have a memory leak somewhere.

Alternatively, the actual memory requirements of your applications are more than what the server provides for. In that case, you will need to add memory to your server.
# 3  
Old 09-03-2007
We have checked the application with some profiling tool and understood that there is no memory leak at all.

Is there any way at OS level to control the swapping ......

Came across certain parameters like swappiness , vfs_cache_pressure....

Is there any use using these params to control the swap ....
# 4  
Old 09-03-2007
İf you profiled yor file app. and every thing is okey. That means you need extra real memory. This is normal behavior. Blowtorch is very rigth.

but you can try vmtune may be. Just very veak oportunity. Look at vmtune man page. I can't remember the parameters now. But you can get faster LRU (Last recently used ) chain.

what happens;
your app needs for memory looks at real memory and can't find and uses swapp . So you must release some memory pages more faster.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Pinned system memory growing constantly

Hi, Pre data: a server running AIX 6.1 TL9 with 2GB memory and a small amount of CPU, running a very light workload. I have a server which crashed on lack of memory. After the crash I found - using nmon analyser - that there was something eating up memory. Nmon referred to it as "system". ... (1 Reply)
Discussion started by: trifo75
1 Replies

2. Solaris

Explain the output of swap -s and swap -l

Hi Solaris Folks :), I need to calculate the swap usage on solaris server, please let me understand the output of below swap -s and swap -l commands. $swap -s total: 1774912k bytes allocated + 240616k reserved = 2015528k used, 14542512k available $swap -l swapfile dev swaplo... (6 Replies)
Discussion started by: seenuvasan1985
6 Replies

3. Red Hat

Server load rapidly increases resulting in complete freeze

Hi All, I run Linux server that hosts PHP/MySQL web-projects. The problem is that it becomes irresponsive periodically, avg. load rapidly goes up to 100.0 and more and I have to do cold reboot. Usually this sudden increase happens in 1-2 mins and it's very difficult to catch this moment in... (0 Replies)
Discussion started by: livedatesearch
0 Replies

4. HP-UX

Swap device file and swap sapce

Hi I have an integrity machine rx7620 and rx8640 running hp-ux 11.31. I'm planning to fine tune the system: - I would like to know when does the memory swap space spill over to the device swap space? - And how much % of memory swap utilization should be specified (swap space device... (6 Replies)
Discussion started by: lamoul
6 Replies

5. Gentoo

xorg constantly freezes

this is purely for posterity but it took me a while to find this solution online. 10.1 comes wanting to install the stable releases of xorg and the kernel. However on many platforms (especially with intel video) the result is an xorg that functions for a few minutes but then hangs up and prevents... (0 Replies)
Discussion started by: thmnetwork
0 Replies

6. Shell Programming and Scripting

Check Quota of the Environment and mail the user if the threshold increases.

Hi All, I wish to check the quota of the system and if it increases the threshold value,I need that a mail is shot to the environment user informing hi/her about the same. I know it can be done using cron jobs and warnquota command but I am unable to implement it as I am not acquianted with... (1 Reply)
Discussion started by: Taranjeet Singh
1 Replies

7. UNIX for Advanced & Expert Users

Check Quota of the Environment and mail the user if the threshold increases.

Hi All,I wish to check the quota of the system and if it increases the threshold value,I need that a mail is shot to the environment user informing hi/her about the same.I know it can be done using cron jobs and warnquota command but I am unable to implement it as I am not acquianted with both... (1 Reply)
Discussion started by: Taranjeet Singh
1 Replies

8. Solaris

Swap config - Mirror swap or not?

Hello and thanks in advance. I have a Sun box with raid 1 on the O/S disks using solaris svm. I want to unmirror my swap partition, and add the slice on the second disk as an additional swap device. This would give me twice as much swap space. I have been warned not to do this by some... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

9. Programming

How to create constantly running process

Ther are two process in my program and i want both to constantly running. So i have written the following code. But one of this process which is calling function wsJobCheck() is getting terminated with giving message : Program exited normally. Can any one suggest why this is happing. Code : ... (1 Reply)
Discussion started by: bhakti
1 Replies

10. SCO

SCO 5.05 hard drive pulsing constantly

Just recently my hard drive has started to pulse like data is being read or written constantly. Causes? (2 Replies)
Discussion started by: jimser
2 Replies
Login or Register to Ask a Question