LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-23-2010, 10:38 PM   #1
mahao
LQ Newbie
 
Registered: Dec 2010
Posts: 8

Rep: Reputation: 0
User-specified malloc function returned NULL


Hi all,
Our Fedora-ds was down for some reason,
And I got these logs:


[23/Dec/2010:18:59:32 +0200] - libdb: User-specified malloc function returned NULL
[23/Dec/2010:18:59:32 +0200] - id2entry error 12
[23/Dec/2010:18:59:32 +0200] - id2entry get error 12
[23/Dec/2010:18:59:32 +0200] - next_search_entry db err 12
[23/Dec/2010:18:59:32 +0200] memory allocator - calloc of 4098 elems of 4 bytes failed; OS error 12 (Cannot allocate memory)
The server has probably allocated all available virtual memory. To solve
this problem, make more virtual memory available to your server, or reduce
one or more of the following server configuration settings:
nsslapd-cachesize (Database Settings - Maximum entries in cache)
nsslapd-cachememsize (Database Settings - Memory available for cache)
nsslapd-dbcachesize (LDBM Plug-in Settings - Maximum cache size)
nsslapd-import-cachesize (LDBM Plug-in Settings - Import cache size).
Can't recover; calling exit(1).



It looks like no more available virtual memory to use, so should I set a lager nsslapd-dbcachesize?
I don't know if it will down again, and please give me some advice . its important to me. Thanks a lot
 
Old 12-23-2010, 10:41 PM   #2
mahao
LQ Newbie
 
Registered: Dec 2010
Posts: 8

Original Poster
Rep: Reputation: 0
After i restart fedora-ds over 2 hours, it was no response for any request.

so i restart it again.

but there is nothing in error.log

im so anxious about if it will down again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what Kernel do if user call malloc() function in user space? rsyoung Linux - Kernel 5 03-26-2014 06:09 PM
what Kernel do if user call malloc() function in user space? rsyoung Linux - Newbie 1 06-20-2009 11:40 AM
malloc always retuns NULL sramy Programming 1 02-12-2007 07:19 AM
malloc retuns NULL sramy Linux - Server 1 02-12-2007 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration