Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Jun 10, 2007 4:04 pm 
Offline
Newbie

Joined: Sun Jun 10, 2007 4:00 pm
Posts: 3
I am running a tomcat instance on my linode which has 512mb of RAM and 1 GB swap space. My tomcat app had a memory leak so used up all the RAM, however it did not start using the swap space even when the RAM was full. ( I have -Xmx set to 1024m).

I think the swap space is not getting used. Is there a way to check if swap space is set right or not?


Top
   
 Post subject:
PostPosted: Sun Jun 10, 2007 6:06 pm 
Offline
Junior Member

Joined: Sat May 05, 2007 8:53 pm
Posts: 49
Try:

Code:
alex@proust:~$ cat /proc/swaps
Filename                                Type            Size    Used    Priority
/dev/hda3                               partition       2048276 4       -1
alex@proust:~$


(That's from my home box, not a linode.)

If you have a swap partition in use, it should be listed.


Top
   
 Post subject:
PostPosted: Sun Jun 10, 2007 7:05 pm 
Offline
Newbie

Joined: Sun Jun 10, 2007 4:00 pm
Posts: 3
total used free shared buffers cached
Mem: 509716 370728 138988 0 11324 187524
-/+ buffers/cache: 171880 337836
Swap: 1048568 0 1048568


It does show swap ..even "top" shows asmuch ..but the used is always "0".


Top
   
 Post subject:
PostPosted: Sun Jun 10, 2007 7:06 pm 
Offline
Newbie

Joined: Sun Jun 10, 2007 4:00 pm
Posts: 3
This is what cat /proc/swaps gives
Filename Type Size Used Priority
/dev/ubdb partition 1048568 0 -1


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: apkehoe and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group