String length limit for selector.

String length limit for selector.

book

Article ID: KB0093632

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Description:
Running "Create bridge" in tibemsadin fails when the selector exceeds a certain length limit. You may notice errors such as "invalid command" or the command is truncated with the error  "Error: Invalid bridge specifications: Invalid selector".



Symptoms:


Cause:
The error is due to the max length for exec/command line arguments set in kernel parameter. For example, on Linux it is set by ARG_MAX (i.e., _POSIX_ARG_MAX 4096). On newer versions of the Linux kernel, the value can be found from the command "getconf ARG_MAX".

Issue/Introduction

String length limit for selector.

Resolution

Increase the limit in the kernel parameter or try to run the command by script.

1). Include the "create bridge" command in a file (i.e., admin.txt).

2). Then run the following:

tibemsadmin -server <host>:<port> -user <user> -password <password> -script admin.txt

Additional Information

http://pubs.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html
http://superuser.com/questions/705928/compile-the-kernel-to-increase-the-command-line-max-length
http://unix.stackexchange.com/questions/110352/is-the-linux-implementation-of-the-system-configuration-variable-arg-max-diffe