The Web Server Interface Monitor window appears when you select Open Web Server Interface Monitor from the Options menu of the Organizer. The WSI monitor window consists of a notebook with the following sections, each on a separate notebook tab:
•
•
•
• The type of transport. Currently this is either wsi-tcp (for most interfaces), sst-http (for Server Smalltalk), or cgi-link (for compatability with previous version of Web Connection).To set up profiling using ENVY/Stats, you must first load the Envy/Stats config map from the Configuration Maps browser. After you have done this, the Profile using ENVY/Stats checkbox will be enabled. When you select Profile using ENVY/Stats, the Profiler iterations field becomes enabled. This specifies how many times you want to execute the Web Connection part being profiled. If you specify a high number, the time it takes the Web Connection part to render in the Web browser will be longer than if you do not profile or if you profile with a small number of iterations.When the Web Connection part is processed to generated HTML, the process will be profiled using the Envy/Stats EsbSampler spyOn: method. After the part has been generated, an Envy/Stats Method Execution Trace browser is opened. This shows a tree view of the methods detected to have been executed during processing and the time spent in each method.Note that the EsbSampler uses a timer to periodically sample which methods are executing. The results from this way of profiling may not show every method that is executed because some methods can execute between timer ticks. For a part like the EsbSampler, increasing the profiler iterations might result in more useful results. For simple Web Connection parts on fast machines, profiling the execution may show that no methods were executed. This of course is an anomaly of the sampling method. However, the profiling should show the time spent in file I/O, database transactions, and other more expensive methods of your application, thus letting you optimize your code.To stop one or more server processes, select one or more entries on the Servers page and then select Stop Selected Servers.
a. In the Transport field, select the transport you want to use for incoming requests. Normally, this is wsi-tcp (for most interfaces) or sst-http (for Server Smalltalk). The cgi-link transport is provided for compatibility with previous versions of the Web Connection feature.
b. In the Port number field, specify the TCP/IP port number you want this monitor to listen to for incoming requests.
c. Select Reuse port if already in use to avoid an error message if the port is already in use.
d. Select Bind to any server address if your VA Smalltalk server has only one TCP/IP address. If the server has multiple addresses and you want the WSI server to bind to a specific address, select Bind to a specific server address and specify the address you want to bind to.
3. Select OK to start the WSI server process. An entry for the new server process appears on the Servers page of the Web Server Interface Monitor window.Requests for parts not found in the image are grouped under the AbtWsiNotFoundHandler part.Select Clear Statistics to clear all of the displayed statistics and return the Parts page to its initial state.Select Save As to save the log information to a file. Select Clear Messages to clear all of the displayed information and return the Info page to its initial state.Select Save As to save the error information to a file. Select Clear Messages to clear all of the displayed information and return the Errors page to its initial state.In addition to using the Web Server Interface Monitor window, you can start a Web Server Interface server without opening the Web Server Interface Monitor window. This is done by adding the showMonitor option to the WSI configuration file. For example:The configuration file is specified on the command line start up using the -wc:filename option. For example, if this file were stored as startup.txt you would start your Web connection application using:When running without a WSI Monitor, you have to manually stop the application process to shut it down. The Web Connection feature also includes a part which displays the WSI Monitor information and allows you to reset the information or shut down the WSI server, all from your Web browser. The part is AbtWebWsiMonitorPage. Open the part in a web browser.To shut down the server, check the Yes, I really want to shutdown checkbox, then select the Shutdown button. The WSI server will be stopped, then after a ten second delay, the image will shutdown.When you point your browser to the AbtWebWsiMonitorPage, you will be routed to a login page. You must enter a password to access the monitor page. At development time, the default password is password. At runtime, the password must be provided with the WsiPassword option in the startup options file. If it is not specified, then the password is not initialized and access to the protected page is theoretically prevented.To package the Web WSI Monitor page with your application, add a prerequisite to AbtWebWsiRemoteControlApp.
![]() |