Debugging problems when recording with the JMeter Proxy

How to debug problems when recording

JMeter Proxy does not record samples

If the browser is working OK, but the Proxy is not recording samples, then check that the browser really is using the JMeter Proxy.

One way to do this is to stop the JMeter Proxy. If the browser continues working, then it is clearly not using the Proxy.

Double-check the browser proxy settings. Clear the browser cache.

The JMeter proxy works by capturing the browser request, creating a sampler and adding it to the test plan, and then it runs the sampler. The response from the sampler is returned to the browser.

It’s very unlikely that the JMeter Proxy could return a response to the browser without the sampler appearing in the test plan. However, it’s worth checking the JMeter log file just in case.

Advertisements

Amount of log files captured in LogGrabber zip in SiteScope

Check ageInDays attributes in .xml configuration files.

To limit the size of generated LogGrabber zip files, by default LogGrabber should be capturing logs for a few days.

<SiteScope>\tools\LogGrabberSiteScope\default.loggrabber.conf.xml

<server name=”Logs” logPath=”logs” includeSub=”true” isSiteScopeRelative=”true” ageInDays=”3″>
<logFiles>

We can use full.loggrabber.conf.xml to collect more logs.

<SiteScope>\tools\LogGrabberSiteScope\full.loggrabber.conf.xml
   …
<server name=”Logs” logPath=”logs” includeSub=”true” isSiteScopeRelative=”true” ageInDays=”14″>
<logFiles>

Or we can use Configuration Tool > Export configuration > [v] Include log files method as well.

SiteScope master.config changes not reflected

SiteScope stores master.config information not just in master.config text file but also within __masterConfig persistency object.
When some changes are not reflected automatically, one may need edit both places to make them consistent when the service is stopped.

a. Edit <SiteScope installation>\groups\master.config using any text editor.

b. Edit persistency using <SiteScope installation>\bin\PersistencyViewer.bat
Filter by Type: com.mercury.sitescope.platform.configmanager.MasterConfig
Object: __masterConfig

Sitescope Keystores

  1. Key management        – used to hold persistency encryption key.
  2. SiteScope Trust Store – used for SSL communication (CACERTS), certification autorities we trust to tell us the real identity of outgoing connections (SSL).
  3. Server Key Store         – Used by SiS server to be identified by SiS clients as trust SiS server.
  1. Monitors flow (outgoing SSL connections):
    SITESCOPE_HOME_DIR/java/lib/security/cacerts – SiteScope trust store (converted to PKSC12 format when using monitors for outgoing SSL connections)
  2. SiteScope server configured to SSL (ingoing SSL connections):
    SITESCOPE_HOME_DIR/groups/serverKeystore (in FIPS mode created in PKSC12 format)
  3. SiteScope server configured to SSL + client authentication\CAC (ingoing SSL connections):
    SITESCOPE_HOME_DIR/templates.certificates/serverTrustStore (JKS format)
  4. SiteScope API configuration (SiteScope server configured to SSL + client authentication):
    SITESCOPE_HOME_DIR/groups/serverKeystore (in FIPS mode created in PKSC12 format)
    SITESCOPE_HOME_DIR/templates.certificates/serverTrustStore (JKS format)
    SITESCOPE_HOME_DIR/java/lib/security/cacerts (JKS format)
    Client KeyStore and TrustStore for SiteScope API usage:
    SCRIPT_HOME/API_Configuration/clientTrustStore (JKS format)
    SCRIPT_HOME/API_Configuration/clientKeyStore (JKS format)
  5. SiteScope client certificate authentication for BSM integration:
    SITESCOPE_HOME_DIR/templates.certificates/BSMClientKeystore (JKS format)

Sitescope Siebel Monitor parameters for DB Alert

We are using DB alert to insert into a custom table in event of a monitor error.
As part of the insert statement we would like to include the Siebel monitor parameters
Example like “groupname” give the name of the group. I would like to similarly use the “Siebel host name:” and “Application server” and “Enterprise server”
Example use sql like
INSERT INTO TESTTABLE VALUES (‘name’,<name>, ‘currentTime’, <currentTime>, ‘group’,<group>,’Siebel host name’, ‘<Siebel host name>’, ‘Enterprise server’, ‘<Enterprise server>’ )

Solution
Use <gethostname> parameter. This can be used to display the host name for the monitor. You can check in UsingSiteScope document.
Besides, SiteScope does not support the other parameters like Application server and Enterprise server.

Launch SiteScope UI as a Desktop Application without installing Java applet

Prerequisite

Perform the following steps to launch SiteScope UI as a desktop application from SiteScope Local Client:

  1. Download the SiteScope-Client-2018.08.zip
    • SiteScope version 2018.08.
  2. Extract the contents of the SiteScope-Client-2018.08.zip to a location of your choice.
  3. Navigate to the dist folder and double-click SiteScopeClient.bat. The SiteScope Local Client window opens.
  4. Enter the SiteScope URL in the format http://<host name>:<port number>/SiteScope or https://<host name>:<port number>/SiteScope for HTTPS connections. The SiteScope login screen opens.
  5. Enter your user credentials.The SiteScope UI opens.

To access secure connections (HTTPS) of SiteScope using the SiteScope local client, you must install the site security certificate into the Trusted Root Certification Authorities where local client is installed and running.

Install the security certificate on the server where thick client is installed

    1. Copy the security certificate from the SiteScope server.
    2. Double-click the .cer file.
    3. On the Certificate dialog box, click Install Certificate to start the Certificate Import Wizard.
    4. On the Welcome page, click Next.
    5. On the Certificate Store page, select Place all certificates in the following store and click Browse.
    6. In the Select Certificate Store dialog box, select Show Physical Stores.
    7. Double-click Trusted Root Certification Authorities, select Local Computer, and then click OK.

On the Certificate Store page, click Next.

  1. On the summary page, review the details and click Finish. (note: the secure connections take a bit longer to load the GUI for the first time)

Limitations

The following are some of the limitations of the SiteScope local client for this release:

  • You cannot launch multiple instances of SiteScope using the local client.
  • SiteScope with smart card authentication is not supported.
  • Unified Console for the Chinese and Japanese locale is not supported.
  • Report options such as Export, Select, and Email in the Monitor, Alert, and Server-centric reports do not work.
  • Local client has to be closed and relaunched to continue to work with the SiteScope UI on:
    • Loading a new license
    • Restarting SiteScope from Infrastructure Preferences
  • Help menu and options are not completely functional when launched from the local client.

Supported Versions

Sitescope versions SiteScope versions 11.3x and later
Platform Windows 2008, 2012, 2016, 7, 10

 

Only basic SQL queries are supported in Database Query Monitor

Sitescope DB query monitor supports only direct SQL queries and not any PL/SQL kind of statements like variable declarations, set, define, conditional blocks etc.

Example:

Good query:
select username from v$session where username like ‘u_name’
Problematic query:
define u_name = ‘APPS’ select username from v$session where username like ‘u_name’; undefine u_name