Author Topic: ERROR: Cannot allocate memory  (Read 3051 times)

Offline danm

  • Sr. Member
  • **
  • Posts: 17
  • Karma: 2
ERROR: Cannot allocate memory
« on: August 22, 2008, 01:00:57 PM »
Anyone else run into that while trying to make config changes?

There seems to be plenty of memory free

> stat system

NetScaler Executive View
System Information:                   

Up since      Fri Jun 20 01:02:35 2008  Memory usage (MB)                  306
/flash Used (%)                     95  /var Used (%)                       19
CPU usage                           16
 Done


Offline TheOracle

  • Hero Member
  • *****
  • Posts: 152
  • Karma: 18
Re: ERROR: Cannot allocate memory
« Reply #1 on: August 25, 2008, 07:59:45 PM »
under what condition--you showed the stat sys output, but nothing more, i.e. what was the command that caused the "cannot allocate memory".

The Oracle

Offline danm

  • Sr. Member
  • **
  • Posts: 17
  • Karma: 2
Re: ERROR: Cannot allocate memory
« Reply #2 on: August 26, 2008, 06:29:21 AM »
No I was attempting to add a responder policy.  stat/show commands work fine.

Offline ZManGT

  • VIP Member
  • ***
  • Posts: 94
  • Karma: 12
Re: ERROR: Cannot allocate memory
« Reply #3 on: August 26, 2008, 11:17:33 AM »
Danm,

Can you post the responder policy you were creating? Most likely it was something in the policy itself that was triggering the error.

Offline danm

  • Sr. Member
  • **
  • Posts: 17
  • Karma: 2
Re: ERROR: Cannot allocate memory
« Reply #4 on: August 26, 2008, 11:27:45 AM »
This is with 8.1 57.5 and I had no problem doing this on my other netscalers so I'm guessing it's not command specific.  I opened up a ticket with citrix.  Just wanted to see if anyone else has run into this.

> add responder policy block_bad_userAgent "HTTP.REQ.HEADER(\"User-Agent\").CONTAINS(\"Cache-Control\")" RESET RESET
ERROR: Cannot allocate memory

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 152
  • Karma: 18
Re: ERROR: Cannot allocate memory
« Reply #5 on: August 26, 2008, 03:20:35 PM »
yea, looks odd.  I haven't seen this before.  You may want to try getting the output from:

nsconmsg -s ConMEM=1 -d oldconmsg

You will get a line such as:

TotalMEM:  573877211     Allocated:  234704955(40.90%)   ActualInUse: 174989227(30.49%)    Free:  339172256

You want to make sure the allocated isn't high vs. the actualInUse.

The Oracle