Uploaded image for project: 'InsightEdge Platform'
  1. GS-12050

SocketException is thrown seconds after deploying the alert-integration

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: 12.1.1
    • Labels:
      None

      Description

      Reproduction:
      - start gsa, gs-ui and deploy the alert-integration (see http://docs.gigaspaces.com/xap100/snmp-connectivity-via-alert-logging-gateway.html )
      - wait about 1 minute and see the following exception printed to the gs-agent output (gsc logs):

      [gsc][2/23152] java.net.SocketException: maximum number of DatagramSockets reached
      [gsc][2/23152] at sun.net.ResourceManager.beforeUdpCreate(ResourceManager.java:53)
      [gsc][2/23152] at java.net.PlainDatagramSocketImpl.create(PlainDatagramSocketImpl.java:74)
      [gsc][2/23152] at java.net.DatagramSocket.createImpl(DatagramSocket.java:318)
      [gsc][2/23152] at java.net.DatagramSocket.<init>(DatagramSocket.java:209)
      [gsc][2/23152] at java.net.DatagramSocket.<init>(DatagramSocket.java:262)
      [gsc][2/23152] at java.net.DatagramSocket.<init>(DatagramSocket.java:235)
      [gsc][2/23152] at org.snmp4j.transport.DefaultUdpTransportMapping.<init>(DefaultUdpTransportMapping.java:62)
      [gsc][2/23152] at org.openspaces.example.alert.logging.snmp.SnmpTrapSender.sendTrap(SnmpTrapSender.java:128)
      [gsc][2/23152] at org.apache.log4j.ext.SNMPTrapAppender.append(SNMPTrapAppender.java:313)
      [gsc][2/23152] at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
      [gsc][2/23152] at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
      [gsc][2/23152] at org.apache.log4j.Category.callAppenders(Category.java:203)
      [gsc][2/23152] at org.apache.log4j.Category.forcedLog(Category.java:388)
      [gsc][2/23152] at org.apache.log4j.Category.log(Category.java:853)
      [gsc][2/23152] at org.apache.commons.logging.impl.Log4JLogger.info(Log4JLogger.java:176)
      [gsc][2/23152] at org.openspaces.example.alert.logging.snmp.AlertLoggingGateway$1.alertTriggered(AlertLoggingGateway.java:110)
      [gsc][2/23152] at org.openspaces.admin.internal.alert.events.DefaultAlertEventManager$3.run(DefaultAlertEventManager.java:94)
      [gsc][2/23152] at org.openspaces.admin.internal.admin.DefaultAdmin$LoggerRunnable.run(DefaultAdmin.java:2093)
      [gsc][2/23152] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
      [gsc][2/23152] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      [gsc][2/23152] at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      [gsc][2/23152] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      [gsc][2/23152] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      [gsc][2/23152] at java.lang.Thread.run(Thread.java:662)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: