glassfish
  1. glassfish
  2. GLASSFISH-5250

Stability tests using SSL listener results in crash

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.1peur2
    • Fix Version/s: future release
    • Component/s: security
    • Labels:
      None
    • Environment:

      Operating System: Solaris
      Platform: Sun

    • Issuezilla Id:
      5,250
    • Status Whiteboard:
      Hide

      as911-na

      Show
      as911-na

      Description

      We've been doing some stability tests for opensso and encountered an issue with
      our SSL setup. During the test the server will crash with "not enough swap?"
      message.

      [#|2008-06-19T16:16:15.677-0500|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=httpSSLWorkerThread-39390-3;_RequestID=4b5c5ebc-db89-40af-b0d4-4ccfb95c2cb2;|WEB0777:
      Unblocking keep-alive exception
      java.lang.OutOfMemoryError
      at sun.misc.Unsafe.allocateMemory(Native Method)
      at sun.nio.ch.NativeObject.<init>(NativeObject.java:60)
      at sun.nio.ch.AllocatedNativeObject.<init>(AllocatedNativeObject.java:34)
      at
      sun.nio.ch.DevPollArrayWrapper.updateRegistrations(DevPollArrayWrapper.java:190)
      at sun.nio.ch.DevPollArrayWrapper.poll(DevPollArrayWrapper.java:163)
      at sun.nio.ch.DevPollSelectorImpl.doSelect(DevPollSelectorImpl.java:68)
      at sun.nio.ch.SelectorImpl.lockAndDoSelect(SelectorImpl.java:69)
      at sun.nio.ch.SelectorImpl.selectNow(SelectorImpl.java:88)
      at
      com.sun.enterprise.web.connector.grizzly.ssl.SSLUtils.doRead(SSLUtils.java:181)
      at
      com.sun.enterprise.web.connector.grizzly.ssl.SSLByteBufferInputStream.doRead(SSLByteBufferInputStream.java:70)
      at
      com.sun.enterprise.web.connector.grizzly.ByteBufferInputStream.read(ByteBufferInputStream.java:167)
      at
      org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:727)
      at
      org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:401)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.parseRequest(DefaultProcessorTask.java:684)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:566)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
      at
      com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.process(SSLReadTask.java:440)
      at
      com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.doTask(SSLReadTask.java:228)
      at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
      at
      com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)

      #]

      A core file was generated. The main error reported in the hs_err_pidxxx.log file
      was :

      1. java.lang.OutOfMemoryError: requested 1064 bytes for intptr_t in
        /BUILD_AREA/jdk6_06/hotspot/src/share/vm/runtime/deoptimization.cpp. Out of swap
        space?
        #
      2. Internal Error (allocation.inline.hpp:42), pid=452, tid=108
      3. Error: intptr_t in
        /BUILD_AREA/jdk6_06/hotspot/src/share/vm/runtime/deoptimization.cpp

      We were able to reproduce the problem with JDK1.5 and JDK1.6 (though it took a
      lot longer).

      We also were able to reproduce this by simply hitting the index.html page using
      our load generator.

      The following tuning was applied :

      File : /opt/famperftests/glassfish/glassfish/domains/domain1/config/domain.xml
      (using asadmin command line tool)
      Parameter tuning :

      1. Acceptor Threads
      Current Value : acceptor-threads=8
      Recommended Value : acceptor-threads=8

      2. Max Pending Count Threads
      Current Value : max-pending-count=8192
      Recommended Value : max-pending-count=8192

      3. Queue Size
      Current Value : queue-size=8192
      Recommended Value : queue-size=8192

      4. native-library-path-prefix (if Solaris 8)
      Current Value : native-library-path-prefix=<No value set>
      Recommended Value : native-library-path-prefix=/usr/lib/lwp

      5. Max and Min Heap Size
      Current Value : Min Heap: -Xms3136M Max Heap: -Xmx3136M
      Recommended Value : -Xms3136M -Xmx3136M

      6. LogGC Output
      Current Value :
      -Xloggc:/opt/famperftests/glassfish/glassfish/domains/domain1/logs/gc.log
      Recommended Value :
      -Xloggc:/opt/famperftests/glassfish/glassfish/domains/domain1/logs/gc.log

      7. JVM in Server mode
      Current Value : -server
      Recommended Value : -server

      8. Stack Size
      Current Value : -Xss128k
      Recommended Value : -Xss128k

      9. New Size
      Current Value : -XX:NewSize=392M
      Recommended Value : -XX:NewSize=392M

      10. Max New Size
      Current Value : -XX:MaxNewSize=392M
      Recommended Value : -XX:MaxNewSize=392M

      11. Disable Explicit GC
      Current Value : -XX:+DisableExplicitGC
      Recommended Value : -XX:+DisableExplicitGC

      12. Use New Parallel GC
      Current Value : -XX:+UseParNewGC
      Recommended Value : -XX:+UseParNewGC

      13. Print Class Histogram
      Current Value : -XX:+PrintClassHistogram
      Recommended Value : -XX:+PrintClassHistogram

      14. Print GC Time Stamps
      Current Value : -XX:+PrintGCTimeStamps
      Recommended Value : -XX:+PrintGCTimeStamps

      15. OverrideDefaultLibthread (if Solaris 8)
      Current Value : <No value set>
      Recommended Value : -XX:+OverrideDefaultLibthread

      16. Enable Conc Mark Sweep GC
      Current Value : -XX:+UseConcMarkSweepGC
      Recommended Value : -XX:+UseConcMarkSweepGC

      18. Parallel GC Threads
      Current Value : -XX:ParallelGCThreads=8
      Recommended Value :

        Activity

        Hide
        kumarjayanti added a comment -

        created CR P2 : 6750401 on JAVA

        Show
        kumarjayanti added a comment - created CR P2 : 6750401 on JAVA
        Hide
        harpreet added a comment -

        Please scrub issue and see if it is critical to v2.1.

        Show
        harpreet added a comment - Please scrub issue and see if it is critical to v2.1.
        Hide
        kumarjayanti added a comment -

        adding status whiteboard tag : as911-na

        Show
        kumarjayanti added a comment - adding status whiteboard tag : as911-na
        Hide
        sanandal added a comment -

        "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1
        release whose primary release driver is SailFin.
        This issue will be scrubbed after this release and will be given the right
        priority for the next release."

        Show
        sanandal added a comment - "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1 release whose primary release driver is SailFin. This issue will be scrubbed after this release and will be given the right priority for the next release."
        Hide
        kumarjayanti added a comment -

        The JDK bug 6750401 is fixed in JDK 7.

        Show
        kumarjayanti added a comment - The JDK bug 6750401 is fixed in JDK 7.

          People

          • Assignee:
            JeffTancill
            Reporter:
            nphilipp
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: