The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Swap config - Mirror swap or not? BG_JrAdmin SUN Solaris 3 01-06-2008 06:25 PM
"vi"-ing a constantly updated file Percy UNIX for Dummies Questions & Answers 8 04-27-2007 06:51 AM
Constantly updating log files (tail -f? grep? awk?) nortonloaf UNIX for Dummies Questions & Answers 0 12-03-2006 07:20 PM
How to create constantly running process bhakti High Level Programming 1 08-24-2006 06:38 PM
SCO 5.05 hard drive pulsing constantly jimser SCO 2 03-21-2005 10:46 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-02-2007
Registered User
 

Join Date: May 2007
Posts: 29
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.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-03-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,323
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.
Reply With Quote
  #3 (permalink)  
Old 09-03-2007
Registered User
 

Join Date: May 2007
Posts: 29
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 ....
Reply With Quote
  #4 (permalink)  
Old 09-03-2007
Registered User
 

Join Date: Aug 2007
Posts: 45
İ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.
Reply With Quote
Google UNIX.COM
Reply

Tags
load average, performance

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:08 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0