I'm having memory problems when launching Hobbit on Solaris 9.
Initially the error in /var/log/hobbit/hobbitlaunch.log is "Could not attach shm Too many open files", and then later becomes "Could not attach shm Permission denied". If I then close all hobbit processes and look at /usr/bin/ipcs I see six shared-memory listings and six semaphore listings. I can clean these out with ipcrm, but then when I restart hobbit the same set of symptoms recur. I have appended some logs below, generated with the hobbitlaunch.cfg --debug switch on.
No processes other than hobbitlaunch ever start up, and no log files other than hobbitlaunch.log appear. There are plenty of resources available on the Hobbit server (disk, RAM, swap).
Thanks in advance for your consideration,
David Mostardi Advisory Systems Manager Elsevier MDL 2440 Camino Ramon, Suite 300 San Ramon CA 94583 925.543.7350 www.mdl.com <www.mdl.com>
"Could not attach shm Too many open files"
2006-08-22 15:32:38 hobbitlaunch starting 2006-08-22 15:32:38 Loading tasklist configuration from /usr/local/bb/bb1.9i-btf/etc/hobbitlaunch.cfg 2006-08-22 15:32:38 Loading hostnames 2006-08-22 15:32:38 Opening file /usr/local/bb/bb1.9i-btf/etc/bb-hosts 2006-08-22 15:32:38 Opening file /usr/local/bb/bb1.9i-btf/etc/client-local.cfg 2006-08-22 15:32:38 Loading saved state 2006-08-22 15:32:38 Cannot access checkpoint file /usr/local/bb/bb1.9i-btf/tmp/hobbitd.chk for restore 2006-08-22 15:32:38 Setting up network listener on 0.0.0.0:1984 2006-08-22 15:32:38 Setting up signal handlers 2006-08-22 15:32:38 Setting up hobbitd channels 2006-08-22 15:32:38 Setting up status channel (id=1) 2006-08-22 15:32:38 calling ftok('/usr/local/bb/bb1.9i-btf',1) 2006-08-22 15:32:38 ftok() returns: 0x1007F5B 2006-08-22 15:32:38 shmget() returns: 0x65 2006-08-22 15:32:38 Setting up stachg channel (id=2) 2006-08-22 15:32:38 calling ftok('/usr/local/bb/bb1.9i-btf',2) 2006-08-22 15:32:38 ftok() returns: 0x2007F5B 2006-08-22 15:32:38 shmget() returns: 0x66 2006-08-22 15:32:38 Setting up page channel (id=3) 2006-08-22 15:32:38 calling ftok('/usr/local/bb/bb1.9i-btf',3) 2006-08-22 15:32:38 ftok() returns: 0x3007F5B 2006-08-22 15:32:38 shmget() returns: 0x67 2006-08-22 15:32:38 Setting up data channel (id=4) 2006-08-22 15:32:38 calling ftok('/usr/local/bb/bb1.9i-btf',4) 2006-08-22 15:32:38 ftok() returns: 0x4007F5B 2006-08-22 15:32:38 shmget() returns: 0x68 2006-08-22 15:32:38 Setting up notes channel (id=5) 2006-08-22 15:32:38 calling ftok('/usr/local/bb/bb1.9i-btf',5) 2006-08-22 15:32:38 ftok() returns: 0x5007F5B 2006-08-22 15:32:38 shmget() returns: 0x69 2006-08-22 15:32:38 Setting up enadis channel (id=6) 2006-08-22 15:32:38 calling ftok('/usr/local/bb/bb1.9i-btf',6) 2006-08-22 15:32:38 ftok() returns: 0x6007F5B 2006-08-22 15:32:38 shmget() returns: 0x6A 2006-08-22 15:32:38 Setting up client channel (id=7) 2006-08-22 15:32:38 calling ftok('/usr/local/bb/bb1.9i-btf',7) 2006-08-22 15:32:38 ftok() returns: 0x7007F5B 2006-08-22 15:32:38 shmget() returns: 0x4B7 2006-08-22 15:32:38 Could not attach shm Too many open files 2006-08-22 15:32:38 Cannot setup client channel 2006-08-22 15:32:43 Task hobbitd terminated, status 1
"Could not attach shm Permission denied"
2006-08-22 15:28:15 Loading hostnames 2006-08-22 15:28:15 Opening file /usr/local/bb/bb1.9i-btf/etc/bb-hosts 2006-08-22 15:28:15 Opening file /usr/local/bb/bb1.9i-btf/etc/client-local.cfg 2006-08-22 15:28:15 Loading saved state 2006-08-22 15:28:15 Cannot access checkpoint file /usr/local/bb/bb1.9i-btf/tmp/hobbitd.chk for restore 2006-08-22 15:28:15 Setting up network listener on 0.0.0.0:1984 2006-08-22 15:28:15 Setting up signal handlers 2006-08-22 15:28:15 Setting up hobbitd channels 2006-08-22 15:28:15 Setting up status channel (id=1) 2006-08-22 15:28:15 calling ftok('/usr/local/bb/bb1.9i-btf',1) 2006-08-22 15:28:15 ftok() returns: 0x1007F5B 2006-08-22 15:28:15 shmget() returns: 0x1 2006-08-22 15:28:15 Could not attach shm Permission denied 2006-08-22 15:28:15 Cannot setup status channel 2006-08-22 15:28:20 Task hobbitd terminated, status 1
On Wed, Aug 23, 2006 at 12:21:09AM +0100, Mostardi, David (MDL US) wrote:
I'm having memory problems when launching Hobbit on Solaris 9.
Initially the error in /var/log/hobbit/hobbitlaunch.log is "Could not attach shm Too many open files",
This usually means you have to tune the kernel parameters. See http://docs.sun.com/app/docs/doc/817-1759/6mhfh76fr?a=view for shared memory settings, and http://docs.sun.com/app/docs/doc/817-1759/6mhfh76fq?a=view for semaphore settings.
2006-08-22 15:28:15 ftok() returns: 0x1007F5B 2006-08-22 15:28:15 shmget() returns: 0x1 2006-08-22 15:28:15 Could not attach shm Permission denied 2006-08-22 15:28:15 Cannot setup status channel 2006-08-22 15:28:20 Task hobbitd terminated, status 1
I really cannot see any other explanation than this shared memory segment already existing, and created by another user on the system. If you shutdown Hobbit, and then - as root - run the "ipcs -m" command, what does it say ? Note that you must run it as root, because if you run it as the hobbit user it will only show its own IPC ressources, not those owned by others.
Regards, Henrik
participants (2)
-
D.Mostardi@mdl.com
-
henrik@hswn.dk