IBM Support

The Sybase agent shows HART cursors failing and a cs_ctx_alloc() failed error is seen in the instance logs.

Technical Blog Post


Abstract

The Sybase agent shows HART cursors failing and a cs_ctx_alloc() failed error is seen in the instance logs.

Body

The Sybase agent instance will not report into the APM GUI if you see a cs_ctx_alloc() failure in the agent instance logs.  It will look something like this:

>ESQ0430E (014602) cs_ctx_alloc() failed
YEM0100E (014604) koy_init: cs_ctx_alloc() failed
YCD0105E (014604) Unable to set context for SYBASE at collector, RC=0

 

The most common reasons for a cs_ctx_alloc failure include:
  • Memory is insufficient.
  • Localization files are missing.
  • The value of the LANG environment variable does not match an entry in the locales file.
To resolve this, the following must be done:
1. The SYBASE environment variable must point to the directory where the locales folder is located.  So, for example, if the the SYBASE var is set to "/SYBASE/SMP", then verify that the locale dir is also present at this location.
2. Check the current value of the $LANG variable, it should match with any value in locales/locales.dat from Sybase home directory. You can check as follows:
[test@sybase]$ echo $LANG
en_US.UTF-8

3. Next get the values in the locales.dat file ss follows:
[test@sybase]$ grep "en_US.UTF-8" locales/locales.data
locale = en_US.UTF-8, us_english, utf8

 

If needed, modify the value of the $LANG environment variables to set it to the right locale, as follows:
export LANG=en_US.UTF-8

 

Restart your Sybase agent instance again, see if it reports in and view the instance logs again to see if the alloc failure no longer exists.

 

Good luck. Smile

Noel Lewis

ITCAM / APM / ICAM L2 Support team

 

Tutorials Point

 

Subscribe and follow us for all the latest information directly on your social feeds:

 

 

image

 

image

 

image

 

 

  

Check out all our other posts and updates:

Academy Blogs:https://goo.gl/U7cYYY
Academy Videos:https://goo.gl/FE7F59
Academy Google+:https://goo.gl/Kj2mvZ
Academy Twitter :https://goo.gl/GsVecH


image

[{"Business Unit":{"code":"BU004","label":"Hybrid Cloud"},"Product":{"code":"","label":""},"Component":"","Platform":[{"code":"","label":""}],"Version":"","Edition":""}]

UID

ibm11082553