Re: 2 shared memory segments [18848
Posted in 2010
Hi Brian, Here are several things to consider in addition to onconfig parameters: 1. There might be a problem with not enough available memory due to memor= y useage by applications that are running on the server. When you say "re= start the server" do you mean just restarting the Informix engine, or are= you rebooting the actual physical machine? If your UNIX machine has acce= ss to the "top" command you can run top with various flags to see what pro= cesses are using the most cpu's and the related memory being used. 2. Is the Informix engine crashing or are you doing an orderly shutdown= and then a restart? If the Informix engine is hanging or crashing, then= are you checking to make sure that all of the Informix memory segments ha= ve been cleaned out before a restart. You can use ipcs and various flags= such as ipcs -a, and ipcs -m from the UNIX prompt. 3. Check the Informix machine and documentation notes to see settings for= various UNIX kernel parameters relating to memory, and recheck your curre= nt settings. Make sure that you have at least the minimum values shown fo= r memory related settings. Note that changing certain kernel parameters mi= ght require a reboot of the physical machine. =20 4. Recheck the setting for the starting memory location SHMBASE in the onc= onfig file. 5. Recheck the UNIX system logs [ maybe at /var/adm/syslog or a similar= location] to see if there are any error message regarding memory. Regards, Bruce -----Original Message----- From: Brian Amstutz <brian.amstutz@asburyseminary.edu> To: ids@iiug.org Sent: Fri, Jan 29, 2010 12:31 pm Subject: 2 shared memory segments [18848] Informix 10.00.HC5 HP-UX 11i v2=20 Recently, I've started getting message like the following when I restart= =20 he server=20 Could not create single shared memory segment with resident and=20 on-resident partitions. Proceeding to create 2 shared memory segments=20 nstead.=20 Sometimes, the server startup continues OK but other times the above=20 essage is followed by the following or similar message:=20 shmget: [ENOMEM][12]: key 52574802: out of shared memory, check system max= =20 hared memory segment size=20 t_shm_init: can't create virtual segment=20 I'm guessing it's maybe a kernel parameter (shmmax?) issue but I haven't= =20 it on the correct one to increase or how much to increase it by.=20 shmmax =3D 307200000000=20 HMVIRTSIZE =3D 321536=20 uffers =3D 350000 (2k)=20 Any ideas what to tune and what to tune it to?=20 Thanks!=20 Brian=20 **************************************************************************= ****=20 Forum Note: Use "Reply" to post a response in the discussion forum.=20