Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-783

mina sshd Nio2Acceptor seems like memory peak

    XMLWordPrintableJSON

Details

    • Question
    • Status: Resolved
    • Critical
    • Resolution: Won't Fix
    • 1.1.0
    • None
    • Linux version 3.10.0
      jdk-1.7.0_76

    Description

      I am using sshd 1.1.0 as an sftp server running on a Red Hat os. I found this program often produces hprof file. I use MAT to analysis this file and find this kind of prompt:
      "org.apache.sshd.common.io.nio2.Nio2Acceptor" instance "0x761551a68" occupies 3,577,793,864 (98.18%) byte. Its main accumulation of memory is "java.util.concurrent.ConcurrentHashMap$Segment[]" instance "0x7608721c8" loaded by "bootstrap class loader" .
      Futher I found Nio2Accepter's sessions is so huge, seen in the attachment1. I doubt the method "sessionClosed" in Nio2Service is not executed when a client disconnect abnormally. So I want to ask your help to postion this problem. Thank you.

      Attachments

        1. 1.png
          233 kB
          young_shaw

        Activity

          People

            Unassigned Unassigned
            young_shaw young_shaw
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified