Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

When I try to stop tomcat , it is giving warning like xap-space-router-threadpool] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread

When I try to stop tomcat , it is giving warning like xap-space-router-threadpool] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread

asked 2017-09-26 10:59:16 -0600

brahma gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

Hi,

Here is the explanation for what needs to be done in code where the tomcat shutdown is called:

All communication related resources in XAP are shared between all the XAP components at the Java classloader level. If you’re using the GigasSpaces service grid to run your XAP application you do not need to handle communication resources cleanup explicitly. If your application runs in a standalone environment or another hosted environment (e.g. a JEE application server) you will need to explicitly clean up those resources. You need to shutdown these resources explicitly when your application no longer uses the XAP components (e.g. when it’s un deployed from the application server). This is done by calling the static shutdown() method on the LRMIManager. Note that if the JVM process is shut down anyway, you do not need to do explicitly shut down the communication resources.

Example:

SpaceProxyConfigurer urlConfigurer = new SpaceProxyConfigurer("space"); //.... urlConfigurer.destroy();

LRMIManager.shutdown();

See more information in this page: https://docs.gigaspaces.com/xap/12.2/...

Please let us know if that help

Thanks, Inbar

answered 2017-09-27 03:49:28 -0600

inbarc gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-09-26 10:59:16 -0600

Seen: 727 times

Last updated: Sep 27