Thread monitors provide a means to limit the execution time devoted to specified components and component methods. You can assign components and methods to a thread monitor to ensure that no more than a specified maximum number of threads will be active at any point executing the methods and components assigned to the monitor.
You can also use thread monitors without a limit on the number of threads. Doing so allows you to use the monitor trace properties to record performance data.
Thread monitors are not active for EJB inter-component calls that use the lightweight EJB container.
To create a thread monitor, create a property file in the Repository/ThreadMonitor directory of your installation. Create this directory if it does not exist. For example, to create a monitor named “MyMonitor,” create the file Repository/ThreadMonitor/MyMonitor.props.
In the properties file, add settings for the thread monitor properties listed in Table B-21. Actual property names are prefixed with “com.sybase.jaguar.threadmonitor.” For example:
com.sybase.jaguar.threadmonitor.name=MyMonitor com.sybase.jaguar.threadmonitor.maxthreads=0 com.sybase.jaguar.threadmonitor.nested=false com.sybase.jaguar.threadmonitor.trace=false com.sybase.jaguar.threadmonitor.callstats=0
Cluster synchronization does not yet include the property
files for thread monitors.
To assign a component to a thread monitory, set the component property com.sybase.jaguar.component.monitor to the name of the thread monitor.
To assign a component to a thread monitory, set the method property com.sybase.jaguar.method.monitor to the name of the thread monitor.
Regenerate and recompile the component skeleton after you assign the component or method to a monitor.
com.sybase.jaguar.component.monitor, com.sybase.jaguar.method.monitor
Copyright © 2003. Sybase Inc. All rights reserved. |
![]() |