This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ndk SBNew: Buffer OOM



I'm running the ndk webserver and have some problems.

After a few minutes of operation I start getting these error messages and clients are unable to connect. Sometimes the pages are loaded fine and other times the server doesn't respond at all but outputs error messages like these:

02896.398 SBNew: Buffer OOM
02896.399 SBNew: Buffer OOM
02902.261 SBNew: Buffer OOM
02907.127 SBNew: Buffer OOM
02909.952 SBNew: Buffer OOM
02915.895 SBNew: Buffer OOM

What is the cause of these messages?

How can I fix it?

 

The pages served has a mix of static and generated content, and some cgi-scripts.

I'm using:

chip C6455,   CCS v3.3.82.13,   BIOS v5.33.05,   CGTools v 6.1.11,  ndk v1.94

 

  • Solved

    The error messages were caused by lack of heap space in IRAM.

    The network stack tried to create a task for new incoming connections it ran out of space when the number of simultaneous clients grew.

    Solution: 

    Increase IRAM heap size

    OR

    Reduce number of allowed simultaneous  connections

    OR

    Reduce TCP and UDP transmit and receive buffer sizes.