db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomohito Nakayama (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1513) Trial 1 for DERBY-550
Date Sat, 15 Jul 2006 07:05:14 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1513?page=comments#action_12421288 ] 
            
Tomohito Nakayama commented on DERBY-1513:
------------------------------------------

Using jdb, I found that MemorySavedByteArrayOutputStream newly introduced in this task could
not save the memory ....

Exception occurred: java.lang.OutOfMemoryError (uncaught)
Exception occurred: java.lang.OutOfMemoryError (uncaught)"thread=DRDAConnThread_3", java.io.ByteArrayOutputStream.toByteArray(),
line=136 bci=4

DRDAConnThread_3[1] where
  [1] java.io.ByteArrayOutputStream.toByteArray (ByteArrayOutputStream.java:136)
  [2] org.apache.derby.impl.drda.DDMReader$MemorySavedByteArrayOutputStream.toByteArray (DDMReader.java:1,815)
  [3] org.apache.derby.impl.drda.DDMReader.getExtData (DDMReader.java:1,004)
  [4] org.apache.derby.impl.drda.DDMReader.getExtData (DDMReader.java:944)
  [5] org.apache.derby.impl.drda.DRDAConnThread.readAndSetExtParam (DRDAConnThread.java:4,355)
  [6] org.apache.derby.impl.drda.DRDAConnThread.readAndSetAllExtParams (DRDAConnThread.java:4,320)
  [7] org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTTobjects (DRDAConnThread.java:3,811)
  [8] org.apache.derby.impl.drda.DRDAConnThread.parseEXCSQLSTT (DRDAConnThread.java:3,640)
  [9] org.apache.derby.impl.drda.DRDAConnThread.processCommands (DRDAConnThread.java:928)
  [10] org.apache.derby.impl.drda.DRDAConnThread.run (DRDAConnThread.java:254)
DRDAConnThread_3[1] eval java.lang.Runtime.getRuntime().maxMemory() 
 java.lang.Runtime.getRuntime().maxMemory()  = 133234688
DRDAConnThread_3[1] 

I suspect that java.io.ByteArrayOutputStream object allocated different size of memory at
construction time from parameter of the constructor...

> Trial 1 for DERBY-550
> ---------------------
>
>                 Key: DERBY-1513
>                 URL: http://issues.apache.org/jira/browse/DERBY-1513
>             Project: Derby
>          Issue Type: Sub-task
>            Reporter: Tomohito Nakayama
>         Assigned To: Tomohito Nakayama
>         Attachments: DERBY-1513.patch, serverMemoryUsage.xls
>
>
> http://issues.apache.org/jira/browse/DERBY-550#action_12421280
> http://issues.apache.org/jira/browse/DERBY-550#action_12421282

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message