Need help with /dev/shm

Mark Phillips mark at phillipsmarketing.biz
Sun Sep 9 12:50:11 MST 2012


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 at 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 at 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 (
horms at tabatha.lab.ultramonkey.org) (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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20120909/cab62e08/attachment.html>


More information about the PLUG-discuss mailing list