You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <de...@db.apache.org> on 2005/09/21 09:35:29 UTC

[jira] Resolved: (DERBY-23) just booting jdbc driver and shutting down seem to leak memory

     [ http://issues.apache.org/jira/browse/DERBY-23?page=all ]
     
Knut Anders Hatlen resolved DERBY-23:
-------------------------------------

    Resolution: Fixed

Fixed in revision 290644.

> just booting jdbc driver and shutting down seem to leak memory
> --------------------------------------------------------------
>
>          Key: DERBY-23
>          URL: http://issues.apache.org/jira/browse/DERBY-23
>      Project: Derby
>         Type: Bug
>   Components: Services
>     Versions: 10.0.2.0
>     Reporter: Tulika Agrawal
>     Assignee: Knut Anders Hatlen
>     Priority: Minor
>      Fix For: 10.2.0.0
>  Attachments: DERBY-23-with_comments.diff, DERBY-23.diff, DERBY-23.stat
>
> Reporting for Daniel John Debrunner.
> Doing simple boot and shutdown of the driver in a loop
> seem to grow the heap forever:
> new org.apache.derby.jdbc.EmbeddedDriver(); //boot the driver
> DriverManager.getConnection("jdbc:derby:;shutdown=true"); 
> //shutdown the cloudscape instance completely
> after booting and shutting down 1516 times, memory used is  
> ~~41931056 bytes.
> Sample GC Output:
> 1931.93: [Full GC 43484K->43243K(65088K), 0.1779751 secs]
> 1933.13: [Full GC 43511K->43270K(65088K), 0.1914383 secs]
> 1934.47: [Full GC 43538K->43297K(65088K), 0.1808878 secs]
> 1935.68: [Full GC 43564K->43324K(65088K), 0.4461623 secs]
> 1937.43: [Full GC 43591K->43350K(65088K), 0.1842980 secs]
> 1938.63: [Full GC 43617K->43377K(65088K), 0.1873431 secs]
> 1939.85: [Full GC 43644K->43404K(65088K), 0.1948505 secs]
> 1941.07: [Full GC 43671K->43430K(65088K), 0.1790895 secs]

-- 
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


Re: [jira] Resolved: (DERBY-23) just booting jdbc driver and shutting down seem to leak memory

Posted by Knut Anders Hatlen <Kn...@Sun.COM>.
Kathey Marsden <km...@sbcglobal.net> writes:

> Knut, What do you think of this one for 10.1.2?

I don't think it is ready for 10.1.2 yet. Ole pointed out to me that
after the patch was committed, the Tinderbox test on Solaris 10 x86
has failed twice.

http://www.multinet.no/~solberg/public/Apache/TinderBox_Derby/testlog/SunOS-5.10_i86pc-i386/290646-encryptionCFB_diff.txt

  encryptionCFB fail *************************************************************
  encryptionCFB/encryptionCFB.fail:store/encryptDatabase.sql

  encryptionCFB diff -------------------------------------------------------------
  ********* Diff file encryptionCFB/encryptionCFB/encryptDatabase.diff
  *** Start: encryptDatabase jdk1.5.0_03 encryptionCFB:encryptionCFB 2005-09-21 10:05:39 ***
  119 del
  < ij> 
  119 add
  > ij> Exception in thread "derby.rawStoreDaemon" java.lang.NullPointerException
  > Exception in thread "derby.rawStoreDaemon" java.lang.NullPointerException
  > Exception in thread "derby.rawStoreDaemon" java.lang.NullPointerException
  Test Failed.
  *** End:   encryptDatabase jdk1.5.0_03 encryptionCFB:encryptionCFB 2005-09-21 10:05:43 ***

I guess rawStoreDaemon tries to access one of the variables I set to
null in ContextService after the the ContextService is stopped.

Although this has happened twice with the Tinderbox test, none of the
nightly tests (six platforms) have had problems with the patch.

-- 
Knut Anders


Re: [jira] Resolved: (DERBY-23) just booting jdbc driver and shutting down seem to leak memory

Posted by Kathey Marsden <km...@sbcglobal.net>.
Knut, What do you think of this one for 10.1.2?