Re: Memory allocation error - esql/c
Posted in 2003
Jonathan Leffler <jleffler@earthlink.net> wrote in message news:<eJTyb.24585$n56.11962@newsread1.news.pas.earthlink.net>... > R?diger Papke wrote: > > > I have a problem during memory allocation in esql/c routine on following components: > > > > OS: SiniX 5.44 B1007 4/2560 > > IDS: 7.31.UD2X5 > > ESQL/C 7.24.UC6 > > > > with the command "malloc()" from esql/c we can only allocate approx. 12 MB > > this error does not occur with a plain c-programm. > > ( in a test we allocated more than 200 MB ). > > > > There are no error entries in the online.log file or /var/log/messages. > > > > Does anybody knows that problem ? > > You're using shared memory connections and INFORMIXSHMBASE is not set, > or is set too low. Consequently, your memory allocations run into the > shared memory segment, and fail - out of memory. > > Fixes: don't used shared memory database connections; don't use > INFORMIXSHMBASE; use INFORMIXSHMBASE of zero; use a bigger value for > INFORMIXSHMBASE. At least one of these should work. Before publishing this problem I had the same idea. Primary this program used SHM-connection(default SHMBASE=0x2000000). But I tried TCP-connection and the same problem still remains. The server is configured for TCP- and SHM-connection (default SHMBASE=0x2000000). I think if only the (via-tcp-connecting) client has this problem, the SHMBASE-address of the server does not matter. Any other ideas, recommendations ? TIA Ruediger