shmat: [24]: out of shared memory segments, check
Posted in 2009
Question: We canât get more than 1 gig of initial shared memory at instance
startup. Is there a way to increase the SHMVIRTSIZE, which is being limited by
the OS AIX 6.1.0.0?
IBM Informix Dynamic Server Version 9.40.UC3 -- On-Line -- Up 03:22:38 --2275792 Kbytes
â ------------------------------ export NMON=cmt â
â Version 12e for 6100-00 â
â 8 - CPUs currently â
â 8 - CPUs configured â
â 1648 - MHz CPU clock rate â
â PowerPC_POWER5 - Processor â
â 64 bit - Hardware â
â 64 bit - Kernel â
â 6.1.0.5 TL00 - AIX Kernel Version â
SHMBASE 0x40000000L # Shared memory base address
SHMVIRTSIZE 1280000 # initial virtual shared memory segment size
#SHMVIRTSIZE 2048000 # initial virtual shared memory segment size
SHMADD 102400 # Size of new shared memory segments (Kbytes)
SHMTOTAL 0 # Total shared memory (Kbytes). 0=>unlimited
15:30:27 Maximum server connections 1315
15:31:17 Logical Log 6402 Complete, timestamp:1764195766.
15:32:59 Logical Log 6403 Complete, timestamp:1764540580.
15:35:19 Logical Log 6404 Complete, timestamp:1764794866.
15:35:49 Fuzzy Checkpoint Completed: duration was 9 seconds, 1854 buffers not
flushed,
timestamp: 1764828552.
15:35:49 Checkpoint loguniq 6405, logpos 0x3b31d0, timestamp: 1764828552
15:35:49 Maximum server connections 1315
15:37:33 Logical Log 6405 Complete, timestamp:1764981669.
15:39:23 Logical Log 6406 Complete, timestamp:1765328050.
15:40:57 Fuzzy Checkpoint Completed: duration was 8 seconds, 1080 buffers not
flushed,
timestamp: 1765681397.
15:40:57 Checkpoint loguniq 6407, logpos 0x13035ec, timestamp: 1765681397
15:40:57 Maximum server connections 1331
15:41:02 Logical Log 6407 Complete, timestamp:1765695910.
15:41:21 Assert Failed: inbuf->sb_base->io_head.io_nrows <= sr->sr_iorows
15:41:21 IBM Informix Dynamic Server Version 9.40.UC3
15:41:21 Who: Session(341170, akauder@riker.intra.sears.com, 594094, a0798070)
Thread(344205, sqlexec, a24649f0, 3)
File: sort.c Line: 3202
15:41:21 Results: srtrdbuf
15:41:21 stack trace for pid 593996 written to /ifmx/backups/af.44758de1
15:41:21 See Also: /ifmx/backups/af.44758de1
15:41:30 inbuf->sb_base->io_head.io_nrows <= sr->sr_iorows
15:43:11 Logical Log 6408 Complete, timestamp:1766077707.
15:45:31 Logical Log 6409 Complete, timestamp:1766308123.
15:46:02 Fuzzy Checkpoint Completed: duration was 5 seconds, 2310 buffers not
flushed,
timestamp: 1766339888.
15:46:02 Checkpoint loguniq 6410, logpos 0x566028, timestamp: 1766339888
15:46:02 Maximum server connections 1331
15:47:06 Logical Log 6410 Complete, timestamp:1766432684.
15:48:23 Logical Log 6411 Complete, timestamp:1766545549.
15:49:41 Logical Log 6412 Complete, timestamp:1766739595.
15:49:58 Assert Failed: Memory block header corruption detected in mt_shm_free
1
15:49:58 IBM Informix Dynamic Server Version 9.40.UC3
15:49:58 Who: Session(395006, aodadm@hofhdweb03.sears2.ds.sears.com, -1,
968e7a08)
Thread(398576, sqlexec, a2455c48, 4)
File: mtshpool.c Line: 3256
15:49:58 Results: Pool not repaired
15:49:58 Action: Please notify IBM Informix Technical Support.
15:49:58 stack trace for pid 495870 written to /ifmx/backups/af.18d88fe6
15:49:58 See Also: /ifmx/backups/af.18d88fe6
15:50:06 Memory block header corruption detected in mt_shm_free 1
15:50:06 Assert Failed: Memory freed at bad boundary. 1024 bytes at 3337ac00
15:50:06 IBM Informix Dynamic Server Version 9.40.UC3
15:50:06 Who: Session(395006, aodadm@³½ä{=I03.sears2.ds.sears.com, -1,
968e7a08)
Thread(398576, sqlexec, a2455c48, 4)
File: mtshblk.c Line: 616
15:50:06 Results: Memory lost
15:50:06 Action: Please notify IBM Informix Technical Support.
15:50:06 stack trace for pid 495870 written to /ifmx/backups/af.18d88fe6
15:50:06 See Also: /ifmx/backups/af.18d88fe6
15:50:13 Memory freed at bad boundary. 1024 bytes at 3337ac00
15:51:05 Logical Log 6413 Complete, timestamp:1766867866.
15:51:13 Fuzzy Checkpoint Completed: duration was 5 seconds, 2157 buffers not
flushed,
timestamp: 1766873248.
15:51:13 Checkpoint loguniq 6414, logpos 0xdecf4, timestamp: 1766873248
15:51:13 Maximum server connections 1336
15:52:15 Logical Log 6414 Complete, timestamp:1766964571.
15:53:21 Logical Log 6415 Complete, timestamp:1767092868.
15:54:33 Logical Log 6416 Complete, timestamp:1767189420.
15:56:19 Fuzzy Checkpoint Completed: duration was 6 seconds, 2314 buffers not
flushed,
timestamp: 1767319162.
15:56:19 Checkpoint loguniq 6417, logpos 0x1308274, timestamp: 1767319162
15:56:19 Maximum server connections 1391
15:56:24 Logical Log 6417 Complete, timestamp:1767331019.
15:57:51 Logical Log 6418 Complete, timestamp:1767508582.
15:59:46 Logical Log 6419 Complete, timestamp:1767700175.
16:01:25 Fuzzy Checkpoint Completed: duration was 6 seconds, 2018 buffers not
flushed,
timestamp: 1767819386.
16:01:25 Checkpoint loguniq 6420, logpos 0xa482d4, timestamp: 1767819386
16:01:25 Maximum server connections 1391
16:03:42 Logical Log 6420 Complete, timestamp:1767977331.
16:05:43 Logical Log 6421 Complete, timestamp:1768156856.
16:06:31 Fuzzy Checkpoint Completed: duration was 6 seconds, 2198 buffers not
flushed,
timestamp: 1768201570.
16:06:31 Checkpoint loguniq 6422, logpos 0x78cef4, timestamp: 1768201570
16:06:31 Maximum server connections 1391
16:07:01 Assert Failed: No Exception Handler
16:07:01 IBM Informix Dynamic Server Version 9.40.UC3
16:07:01 Who: Session(394355, hds@picard.intra.sears.com, 454670, a07a0f9c)
Thread(397904, srvinfx, ec2703d8, 1)
File: mtex.c Line: 431
16:07:01 Results: Exception Caught. Type: MT_EX_OS, Context: mem
16:07:01 Action: Please notify IBM Informix Technical Support.
16:07:01 stack trace for pid 319574 written to /ifmx/backups/af.163893e5
16:07:01 See Also: /ifmx/backups/af.163893e5
16:07:09 mtex.c, line 431, thread 397904, proc id 319574, No Exception Handler.
16:07:09 The Master Daemon Died
16:07:09 PANIC: Attempting to bring system down
16:20:58 IBM Informix Dynamic Server Started.
16:21:00 shmat: [EMFILE][24]: out of shared memory segments, check system
SHMSEG
16:21:00 shmdt: errno = 22
16:21:00 mt_shm_init: can't create virtual segment
16:21:39 IBM Informix Dynamic Server Started.
16:21:41 VP pid=401448 priority fixed at 60, former = 79
Mon Jul 13 16:21:41 2009
16:21:41 Event alarms enabled. ALARMPROG = '/usr/informix/etc/no_log.sh'
16:21:41 Booting Language <c> from module <>
16:21:41 Loading Module <CNULL>
16:21:41 Booting Language <builtin> from module <>
16:21:41 Loading Module <BUILTINNULL>
16:21:41 VP pid=557148 priority fixed at 60, former = 60
16:21:41 VP pid=381114 prio