Hitachi

uCosminexus Application Server Operation, Monitoring, and Linkage Guide


5.8 Precautions when a J2EE application is operating

In AIX, if an error exec error: parameter list or environment list is too long (in the case of environments other than Japanese environment: exec error: Arg list too long) occurs during the deployment of a J2EE application, the length of the argument of the java2iiop command exceeds the specified value of the ARG/ENV list which is the kernel parameter of the OS. By default, this error occurs when the number of home and component interfaces of an EnterpriseBean containing an application to be deployed exceeds approximately 570 (assuming that the average length of the interface names that include package names is 40 characters). If an error occurs, implement the following measures:

  1. Execute the following command and check the value of the ARG/ENV list.

    lsattr -E -l sys0 -a ncargs

    Note that the default value is 6 (Units: 4 KB block).

  2. Execute the following command and change to a value greater than the calculated value of the ARG/ENV list.

    chdev -l sys0 -a ncargs=value-of-ARG/ENV-list-after-change

    Specify value-of-ARG/ENV-list-after-change in the range from 6 through 128. Specify a value more than the value calculated in the following formula:

    Value of the ARG/ENV list after change ≥ ((A + (B × C))# + 4,095) / 4,096

    • A: Approximately1,600 bytes (number of command bytes except for the parameter passed to the vbj command)

    • B: Average length of the class name that includes the package name (Units: Bytes)

    • C: Number of home and component interfaces

    #: With A + (B × C), you can calculate the length of the command that is executed in bytes.

  3. Redeploy the J2EE application.