Upon more profiling, I figured that I have lots of apache.axis objects that
are not garbage collected.

The way I am making SOAP calls is through axis1.4 generated stubs. Eg.

MyDAO {
    protected MyPortType getAPIConnection() throws Exception {
        MyPort port;
        try {
            MyServiceLocator service = new MyServiceLocator();
            port = service.getMy(“http://someendpoint.com”);
        } catch (Exception e) {
            throw new MyException(“Exception occured”);
        }
        return port;
    }
}

public class AccountDAOImpl extends MyDAO implements AccountDAO {
    public AccountTO fetchAccount(User user) throws MyException {
        AccountTO account;
        try {
            MyPort port = fetchAPIConnection();
            account = port.fetchAccount(user);
        } catch (Exception e) {
           throw new MyException(“Exception occured”)
        }
        return account;
    }
}

Shouldn't the 'port' object get collected once ?
-- 
View this message in context: 
http://www.nabble.com/Understanding-GC-Logs-tp23862354p23984169.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to