Monitoring Memory Usage of a Non-Responsive Server
If your Spectrum server stops responding, you can follow the steps below to monitor its performance and resource consumption. This monitoring provides information you can use to adjust memory and threading usage.
Check whether a service other than the Mapping Service is working. For example, start the Feature Service on the demo page: http://<servername>:<port>/Spatial/FeatureService//DemoPage.html. This determines whether the whole server is down or just the Mapping Service.
Verify you have enough disk space for both Mapping and MapTiling images to be stored by inspecting the configuration files:
Mapping: http://<server>:<port>/RepositoryService/repository/default/Configuration/MappingConfiguration under "<Directory> C:\Program Files\Pitney Bowes\Spectrum/server/modules/spatial/images </Directory>"
MapTiling: "http://<server>:<port>/RepositoryService/repository/default/Configuration/MapTilingConfiguration" under "<Property name="diskPath" value="C:/Program Files/Pitney Bowes/Spectrum/server/modules/spatial/TileCache"/>"
Stop the Spectrum server.
In a text editor, open the java.vmargs files from <Installed>\Pitney Bowes\Spectrum\server\modules\spatial\java.vmargs.
Change the vmargs default of 2GB (2048MB). For example, to increase the memory of the remote component to 4GB, change the vmargs from the default of
-Xmx2048m to -Xmx4096m.
not exceed the maximum memory available to your operating system and leave a
suitable space for the operating system to do its work.
Save the java.vmargs file.
Start the server wrapper:
Open a command prompt as Administrator.
Go to <Installed>\Pitney Bowes\Spectrum\server\bin\wrapper directory and type wrapper.exe -c.
This Spectrum server will start in a few minutes.
When the server is started, run the following requests from the demo pages:
Open http://<servername>:<port>/Spatial/MappingService/DemoPage.html and run the List Named Maps request.
and run the List Table Names request.
Go to <Installed>\Pitney Bowes\Spectrum\java64\bin and run jconsole.exe.
Under Local Process, select the wrapper process.
In Jconsole, add a new session and select the Feature Service process.
In Jconsole, add a new session and select the Mapping Service process.
Leave Jconsole running to monitor the memory, CPU, threads, and so on for the Spectrum Platform wrapper for Feature Service and Mapping Service.