Need help with /dev/shm

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Mark Phillips
Date:  
To: Phoenix Linux Users
Subject: Need help with /dev/shm
I have been having some issues with an old server running a jsp
applicaition (tomcat web server and java 1.5....I said it was old!). I
looked at the partitions and found:

Last login: Sun Sep 9 11:57:49 2012 from 192.168.25.150
mark@gandalf:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda6 110G 61G 44G 58% /
tmpfs 63M 0 63M 0% /dev/shm
/dev/hda1 30M 7.3M 21M 27% /boot
mark@gandalf:~$

tmpfs or /dev/shm is at 0%. Usually, a zero anywhere is bad thing....;) so
should I do something about this?

I goolged /dev/shm and understand that it is a ram disk for interprocess
communications. Wonderful. Should I be worried it is at 0% Should I
increase the size? Running top shows these resources in the system"

Tasks: 60 total, 1 running, 59 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.0% us, 0.3% sy, 0.0% ni, 98.4% id, 0.0% wa, 0.3% hi, 0.0% si
Mem: 127152k total, 124740k used, 2412k free, 6896k buffers
Swap: 489940k total, 0k used, 489940k free, 45500k cached


If I should increase the size of /dev/shm, would I edit fstab and add this
line

none /dev/shm tmpfs defaults,size=8G 0 0

and then

mount -o remount /dev/shm

Thanks,

Mark

P.S. The issues I am having with the application may have nothing to do
with this situation...could be some bad programming....ie a bug.

P.P.S. I am running Linux version 2.6.8-2-386 (
) (gcc version 3.3.5 (Debian 1:3.3.5-13))
(yes, I said it was old....) Consider it my contribution to keeping old
hardware out of the dump!
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss