GBase 8a数据句查询报错Can't create a new thread (errno 11); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug

GBase 8a数据库集群,内部使用多线程进行并行处理,如果系统允许的线程数太少或者内存不足,则会报Can't create a new thread (errno 11)错误。

原因

由于操作系统参数limits.conf配置的max user processor太低,导致无法创建新的线程。
ulimit –a
其中的
max user processes              (-u) 1024

解决方案

增大参数设置到10240或取消限制为unlimited。包括
/etc/security/limits.conf
/etc/security/limtits.d/90-nproc.conf

如果是redhat 7.5+ 也请参考

GBase 8a数据库集群在redhat 7.5和suse12查询报错get cluster task id fail 、create thread error with errno 11 、fork rejected by pids controller in /