Memory leak with dwr 1.1.4

View: New views
2 Messages — Rating Filter:   Alert me  

Memory leak with dwr 1.1.4

by Maulin Rathod :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi,

 

We are using DWR 1.1.4. We using class level variable in our DWR classes. Can it cause any memory leak issue? We have not defined scope attribute in dwr.xml. What will be default scope?

 

DocInfoDWR.java

 

public class DocInfoDWR {

 

private XMLConverter converter=new XMLConverter(); // class level variable

 

public DocInfoDWR() {

       

    }

 

}

 

dwr.xml

 

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE dwr PUBLIC

    "-//GetAhead Limited//DTD Direct Web Remoting 0.4//EN"

    "http://www.getahead.ltd.uk/dwr/dwr.dtd">

 

<dwr>

    <allow>

   <create

            creator="new"

            javascript="DocInfoDWR" class="DocInfoDWR"/>

 

  </allow>

</dwr>

 

Regards,

 

Maulin

 


Re: Memory leak with dwr 1.1.4

by Lance Java :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm 99% sure that the default scope is application (ie singleton). No-one's ever mentioned a memory leak issue.

2009/10/30 Maulin Rathod <mrathod@...>

Hi,

 

We are using DWR 1.1.4. We using class level variable in our DWR classes. Can it cause any memory leak issue? We have not defined scope attribute in dwr.xml. What will be default scope?

 

DocInfoDWR.java

 

public class DocInfoDWR {

 

private XMLConverter converter=new XMLConverter(); // class level variable

 

public DocInfoDWR() {

       

    }

 

}

 

dwr.xml

 

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE dwr PUBLIC

    "-//GetAhead Limited//DTD Direct Web Remoting 0.4//EN"

    "http://www.getahead.ltd.uk/dwr/dwr.dtd">

 

<dwr>

    <allow>

   <create

            creator="new"

            javascript="DocInfoDWR" class="DocInfoDWR"/>

 

  </allow>

</dwr>

 

Regards,

 

Maulin