Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Why are unused sockets created during load test?

Options
LegacyForum
LegacyForum Posts: 1,664 ✭✭
edited December 2016 in Load Test
It happens several times during the test that the tool connects to the server but never sends anything in the socket.
Tagged:

Comments

  • LegacyForum
    LegacyForum Posts: 1,664 ✭✭
    edited December 2010
    Options
    During load testing the LoadTest "pings" the server(s) on which it invokes web services by periodically establishing HTTP connections to the service endpoints. The connection establishment time is used as an approximation of the network time that appears in the load test report. If this behavior is not desired, the pinger can be disabled. To do that put the attached script into "startup" directory in SOAtest/LoadTest installation root.

    disablePing.py contents:
    ---------------------------
    from webtool.site import Pinger

    Pinger.setEnabled(0)
    print 'Pinger disabled'
    ---------------------------
  • LegacyForum
    LegacyForum Posts: 1,664 ✭✭
    Options
    I'd just like to point out that this can also be the cause of the error "javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake" on the server side during Load Test runs. The same solution above may be utilized to correct there errors.
  • LegacyForum
    LegacyForum Posts: 1,664 ✭✭
    edited June 2012
    Options
    The script mentioned above is supposed to disable Load Test's pinger which is what makes the dummy HTTP test connections. You can run the script from an Extension tool as a setup test. You can also put the script in the "startup" directory in the SOAtest/LoadTest installation root. The startup folder is actually under:

    <soatest_install>/eclipse/plugins/com.parasoft.xtest.libs.web_{ver}/root/startup.

    You can create the "startup" folder in that libs.web/root folder if it isn't there.

Tagged