• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI Memory leak?  RSS feed

 
David Duran
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've got an RMI client/server setup. The client code resides on a JSP page on a Tomcat server and it requests for a remote object and makes a few remote method calls. The server is just running an RMI activateable server app. I'm doing some load testing using JMeter and I've noticed that the memory on the RMI server machine goes down without ever being reclaimed. After several tests of ~100 hits on the JSP server, the memory on the RMI server is substantially low and the only way it seems that it can be restored is by rebooting it.
Do I have a memory leak? The client/server code is based on the Java RMI tutorial code but I've recently read about unexporting objects, deactivating servers, etc. that isn't in the tutorial so I'm afraid I'm missing something.
Should I be taking those things- deactivation, unexporting, dgc, etc.- into account?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!