Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2344

'java.lang.OutOfMemoryError: Java heap space' in NetworkServerThread

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 10.3.1.4
    • None
    • Network Server, Services
    • None
    • Regression Test Failure

    Description

      I see this only on test machines with 1Gb of memory or less. Our lab-machines with 2Gb mem show now problems.

      See http://dbtg.thresher.com/derby/test/trunk15/jvm1.5/testing/Limited/testSummary-508068.html

      Extract from a typical thread dump:

      "main" prio=1 tid=0x09e2a760 nid=0xef6 runnable [0xbfd89000..0xbfd8a418]
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at org.apache.derby.client.net.Reply.fill(Unknown Source)
      at org.apache.derby.client.net.Reply.ensureALayerDataInBuffer(Unknown Source)
      at org.apache.derby.client.net.Reply.readDssHeader(Unknown Source)
      at org.apache.derby.client.net.Reply.startSameIdChainParse(Unknown Source)
      at org.apache.derby.client.net.NetConnectionReply.readExchangeServerAttributes(Unknown Source)
      at org.apache.derby.client.net.NetConnection.readServerAttributesAndKeyExchange(Unknown Source)
      at org.apache.derby.client.net.NetConnection.flowServerAttributesAndKeyExchange(Unknown Source)
      at org.apache.derby.client.net.NetConnection.flowUSRIDPWDconnect(Unknown Source)
      at org.apache.derby.client.net.NetConnection.flowConnect(Unknown Source)
      at org.apache.derby.client.net.NetConnection.<init>(Unknown Source)
      at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newNetConnection(Unknown Source)
      at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source)
      at java.sql.DriverManager.getConnection(DriverManager.java:525)

      • locked <0x8cda8a18> (a java.lang.Class)
        at java.sql.DriverManager.getConnection(DriverManager.java:171)
      • locked <0x8cda8a18> (a java.lang.Class)
        at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
        at org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:43)
        at org.apache.derbyTesting.junit.TestConfiguration.openDefaultConnection(TestConfiguration.java:764)
        at org.apache.derbyTesting.junit.BaseJDBCTestCase.openDefaultConnection(BaseJDBCTestCase.java:205)
        at org.apache.derbyTesting.junit.BaseJDBCTestCase.getConnection(BaseJDBCTestCase.java:90)
        at org.apache.derbyTesting.functionTests.tests.jdbcapi.BlobClob4BlobTest.setUp(BlobClob4BlobTest.java:56)
        at junit.framework.TestCase.runBare(TestCase.java:128)
        .
        .

      Attachments

        1. 13.zip
          443 kB
          Ole Solberg
        2. 14.zip
          486 kB
          Ole Solberg
        3. memory_507152.txt
          1.05 MB
          Knut Anders Hatlen
        4. memory.png
          4 kB
          Knut Anders Hatlen
        5. memory.txt
          1.06 MB
          Knut Anders Hatlen
        6. MemRunner.java
          1 kB
          Knut Anders Hatlen
        7. memusage.png
          5 kB
          Knut Anders Hatlen
        8. VM_Summary.jpg
          122 kB
          Ole Solberg
        9. VM_Summary-1.txt
          3 kB
          Ole Solberg
        10. VM_Summary-507428JDK14Jvm15-clientjvm.jpg
          126 kB
          Ole Solberg
        11. VM_Summary-507428JDK6Jvm6-clientjvm.jpg
          133 kB
          Ole Solberg
        12. VM_Summary-J507152DK14Jvm15-clientjvm.jpg
          141 kB
          Ole Solberg
        13. VM_Summary-serverJvm.jpg
          136 kB
          Ole Solberg
        14. VM_Summary-serverJvm.txt
          3 kB
          Ole Solberg
        15. VM_Summary-serverJvm-PS_Old_Gen.jpg
          106 kB
          Ole Solberg

        Issue Links

          Activity

            People

              Unassigned Unassigned
              olesolberg Ole Solberg
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: