Creating complex exceptions

The AppSvc plug-in uses two worker threads to process exceptions. You may need to increase the number of worker threads handle complex exception, or a large number of exceptions. Insufficient number of threads does not yield to an error, but can delay the processing of system exceptions. The AppSvc plug-in will warn of insufficient number of threads into the agent log file.

StepsIncreasing the number of worker threads

  1. Click Agents.

  2. Stop the com.sybase.rap.appsvc plug-in.

  3. Open a command window.

  4. Change to the directory where you installed Operations Console.

  5. Change to ua\plugins\com.sybase.rap.appsvc on Windows, or ua/plugins/com.sybase.rap.appsvc on UNIX or Linux.

  6. Open agent-plugin.xml with an editor.

  7. Increase the value of .threads_count attribute on the following lines:

    Set the number of threads for about one per exception until is a max number of 6 or 7. The total amount of threads necessary to run UA and its plug-ins should not exceed the maximum number allowed by the UAF JVM.

    You can tune the JVM with additional command line arguments. Threads in AppSvc plug-in are only used when needed then released for similar tasks to execute, so realistically 6 threads per module should be sufficient to run hundreds of exceptions.