[ http://issues.apache.org/jira/browse/DERBY-1535?page=comments#action_12423375 ] Andreas Korneliussen commented on DERBY-1535: ---------------------------------------------
I think there could be a problem here: DRDAConnThread: - ps.setBytes(i+1, paramBytes); + ps.setBinaryStream(i+1, + new ByteArrayInputStream(paramBytes), + If paramBytes is null, it would previously be interpreted by the engine as there is a NULL value inserted into the database. When creating a new ByteArrayInputStream, I guess it would be interpreted as inserting no data into the BLOB (if the paramBytes is null), or maybe a NullPointerException gets thrown > Trial 2 for DERBY-550, improve use of Engine from NetworkServer and reduce > memory usage > --------------------------------------------------------------------------------------- > > Key: DERBY-1535 > URL: http://issues.apache.org/jira/browse/DERBY-1535 > Project: Derby > Issue Type: Sub-task > Components: Network Server > Reporter: Tomohito Nakayama > Assigned To: Tomohito Nakayama > Attachments: DERBY-1513_1535.patch, DERBY-1513_1535_2.patch, > DERBY-1535.patch, serverMemoryUsage.xls, serverMemoryUsage_1513_1535.xls > > > Through DERBY-1513, Trial 1 for DERBY-550, > it was suggested that NetworkServer seems to use Engine inefficiently and use > too much of memory. > This task try to improve the use of Engine from NetworkServer and try to > reduce memory usage. -- 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