[ 
http://issues.apache.org/jira/browse/DERBY-1513?page=comments#action_12421291 ] 
            
Tomohito Nakayama commented on DERBY-1513:
------------------------------------------

With DERBY-1513_2.patch, MemorySavedByteArrayOutputStream did not work as 
before.

Using jdb, I found size of buf and count is not same value when toByteArray 
method was called.

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,816)
  [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] up
DRDAConnThread_3[2] list
1,812                           if(buf.length == count){
1,813                                   return buf;
1,814                                   
1,815                           }else{
1,816 =>                                return super.toByteArray();
1,817    
1,818                           }
1,819                   }
1,820                   
1,821                   
DRDAConnThread_3[2] eval count
 count = 67108864
DRDAConnThread_3[2] eval buf.length
 buf.length = 67108865
DRDAConnThread_3[2] 

This difference is mysterious ....

> 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, DERBY-1513_2.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

        

Reply via email to