Skip to Content
Mobile

How to capture Memory Usage and statistics in SUP 2.x

Tags:
How to capture Memory Usage and Statistics logging in
Sybase Unwired Platform (2.x)

Purpose

This technical document explains the steps needed to enableMemory
and statistics logging in the Sybase Unwired Server.

Required Software

1.            SUP 2.x.x or higher.
2.            Text Editor.
3.            Local Administrator access.

Assumption

This document assumes you have a working SUP environment.
You need to have read write access to the file system.
STEP – 1 – Adding scheduled tasks for statistics or memory.
a.    User needs to add a Dump60SecondStatisticsserver in SUP.

Solution

In order to add Dump60SecondStatistics parameter, you need to have
access to C:\Sybase\UnwiredPlatform\Servers\UnwiredServer\Repository\Instance\com\
sybase\djc\server\ApplicationServer.
1.    Open your computer browser.
2.    Go to C:\Sybase\UnwiredPlatform\Servers\UnwiredServer\Repository\
                Instance\com\ sybase\djc\server\ApplicationServer
3.    Backup the following file yourservername.properties.
4.    Using a text editor open yourservername.properties.
5.    Look for the following line scheduledTasks=
6.    At the end of the line add a ,Dump60SecondStatistics.

Figure 1
7.    Save the file and restart the Sybase Unwired Server.
8.    Go to the following directory C:\Sybase\UnwiredPlatform\Servers
\UnwiredServer\logs\statistics
9.    Yourservername45a-2013-06-26-19-51.statistics for example.
10.  Open the file with any text editor.
The output should be similar to this

Figure 2
When you are finished collecting the data you need remove the Dump60SecondStatistics
or add your back up copy yourservername.propertiesback in replacing the modified
file. Keep in mind by having the Dump60SecondStatistics it is creating a log every
60 seconds.

STEP– 2 – User needs a longer Statistics time to collect data.

a.         User needs to add a Dump60MinuteStatistics to the SUP.

Solution

In order to do that, you need to add Dump60MinuteStatistics to the
yourservername.properties
file.
  1. Open your computer browser.
  2. Go to C:\Sybase\UnwiredPlatform\Servers\UnwiredServer\Repository\
                Instance\com\ sybase\djc\server\ApplicationServer
  1. Backup the following file yourservername.properties.
  2. Using a text editor open yourservername.properties.
  3. Look for the following line scheduledTasks=
  4. At the end of the line add a ,Dump60MinuteStatistics.
         Figure 3
  1. Save the file and restart the Sybase Unwired Server.
  2. Go to the following directory C:\Sybase\UnwiredPlatform\Servers
        
    \UnwiredServer\logs\statistics
  3. yourservername-2013-06-26-20.statistics output file for example
  4. Open the file with any text editor.
You’re output should look similar to this.

Figure 4
          
When you are finished collecting the data you need remove the Dump60MinuteStatistics
or add your back up copy yourservername.propertiesback in replacing the modified
file. Keep in mind by having the Dump60MinuteStatistics it is creating a log every
60 Minute.

STEP – 3 – User needs to collect Memory Usage.

a.     User needs to add a Dump60SecondMemoryUsage to the
server in SUP.

Solution

In order to do that, you need to add Dump60SecondMemoryUsage to the
yourservername.properties
file.
  1. Open your computer browser.
  2. Go to C:\Sybase\UnwiredPlatform\Servers\UnwiredServer\Repository\
                Instance\com\sybase\djc\server\ApplicationServer
  1. Backup the following file yourservername.properties.
  2. Using a text editor open yourservername.properties.
  3. Look for the following line scheduledTasks=
Figure 5
  1. At the end of the line add a ,Dump60SecondMemoryUsage.
  2. Save the file and restart the Sybase Unwired Server.
  3. Go to the following directory C:\Sybase\UnwiredPlatform\Servers\
         UnwiredServer\logs
  4. Output all goes in to the servername-server.log.
  5. Open the file with any text editor.
The following output should be similar to this.
Figure 6
When you are finished collecting the data you need remove the Dump60SecondMemoryUsage
or add your back up copy yourservername.propertiesback in replacing the modified
file. Keep in mind by having the Dump60SecondMemoryUsage it is creating a log
entry every 60 Seconds.

STEP – 4 – User needs to collect Memory Usage over a longer time.

a.     User needs to add a Dump60MinuteMemoryUsage to the
server in SUP.
SOLUTION
In order to do that, you need to add Dump60MinuteMemoryUsage to the
yourservername.properties file
  1. Open your computer browser.
  2. Go to C:\Sybase\UnwiredPlatform\Servers\UnwiredServer\Repository\
                Instance\com\sybase\djc\server\ApplicationServer
  1. Backup the following file yourservername.properties.
  2. Using a text editor open yourservername.properties.
  3. Look for the following line scheduledTasks=
  4. At the end of the line add a ,Dump60MinuteMemoryUsage.
Figure 7
  1. Save the file and restart the Sybase Unwired Server.
  2. Go to the following directory C:\Sybase\UnwiredPlatform\Servers\
         UnwiredServer\logs
  3. Output all goes in to the servername-server.log.
  4. Open the file with any text editor.
The following output should be similar to this
Figure 8
When you are finished collecting the data you need remove the Dump60MinuteMemoryUsage
or add your back up copy yourservername.propertiesback in replacing the modified
file. Keep in mind by having the Dump60SecondMemoryUsage it is creating a log
entry every 60 Minute.

STEP – 5 – User needs to collect Statistics when shutting down.

b.    User needs to add a DumpShutdownStatisticsto the Sybase Unwired Server.
SOLUTION
In order to do that, you need to add DumpShutdownStatistics to the
yourservername.properties file.
  1. Open your computer browser
  2. Go to C:\Sybase\UnwiredPlatform\Servers\UnwiredServer\Repository\
                Instance\com\sybase\djc\server\ApplicationServer
  1. Backup the following file yourservername.properties.
  2. Using a text editor open yourservername.properties.
  3. Look for the following line scheduledTasks=
  4. At the end of the line add a ,DumpShutdownStatistics
       Figure 9
  1. Save the file and restart the Sybase Unwired Server.
  2. Let the Server rune for few hours to collect statistics.
  3. Shutdown the Sybase Unwired Server.
  4. Go to the following directory C:\Sybase\UnwiredPlatform\Servers
         \UnwiredServer\logs\statistics.
  5. Open the file with any text editor.
The following output should be similar to this.
Figure 10

When you are finished collecting the data you need remove the DumpShutdownStatistics
or add your back up copy yourservername.propertiesback in replacing the modified
file. Keep in mind by having the DumpShutdownStatisticsit will create a log on
every shutdown.

Summary

This document explained in details about the steps needed to gather memory usage
And Statistics details for the performance of the Sybase Unwired Server.
The steps can help identify memory usage issues as well as identify the usage statistics
for
Distributed Java Container.